Re: [LKP] Re: [mm/memcg] bd0b230fe1: will-it-scale.per_process_ops -22.7% regression

From: Linus Torvalds
Date: Thu Nov 26 2020 - 12:39:46 EST


On Tue, Nov 24, 2020 at 10:24 PM Feng Tang <feng.tang@xxxxxxxxx> wrote:
>
> And with the following patch to relayout these members, the regression
> is restored and event better. while reducing 64 bytes of sizeof
> 'struct mem_cgroup'

Thanks, applied.

I do wonder if somebody on the hardware side inside Intel might not
perhaps want to look at that load pattern and at why performance
regressed so much. Maybe teach the prefetcher to avoid adjacent cache
lines that end up showing ping-pong behavior..

Linus