Re: [PATCH v4 0/8] Multibyte memset variations

From: Matthew Wilcox
Date: Tue Jul 25 2017 - 09:08:24 EST


On Tue, Jul 25, 2017 at 03:27:38PM +1000, Michael Ellerman wrote:
> Matthew Wilcox <willy@xxxxxxxxxxxxx> writes:
>
> > From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
> >
> > A relatively common idiom we're missing is a function to fill an area
> > of memory with a pattern which is larger than a single byte. I first
> > noticed this with a zram patch which wanted to fill a page with an
> > 'unsigned long' value. There turn out to be quite a few places in
> > the kernel which can benefit from using an optimised function rather
> > than a loop; sometimes text size, sometimes speed, and sometimes both.
> > The optimised PowerPC version (not included here) improves performance
> > by about 30% on POWER8 on just the raw memset_l().
>
> Is the plan that Andrew will merge this series, or are you planning to
> put them in a tree of yours?

I'm hoping Andrew will take it, but I can put it in my own tree if he
doesn't want to take it.