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

From: Michael Ellerman
Date: Tue Jul 25 2017 - 01:27:52 EST


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?

cheers