[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iL9u-dWpgNF7YGrQ4RQ5M_BwmS8Hqq3DPeWJunKRbu-PA@mail.gmail.com>
Date: Sun, 13 Mar 2022 14:27:48 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: Vlastimil Babka <vbabka@...e.cz>,
kernel test robot <oliver.sang@...el.com>,
Mel Gorman <mgorman@...hsingularity.net>,
0day robot <lkp@...el.com>, Michal Hocko <mhocko@...nel.org>,
Shakeel Butt <shakeelb@...gle.com>,
Wei Xu <weixugc@...gle.com>, Greg Thelen <gthelen@...gle.com>,
Hugh Dickins <hughd@...gle.com>,
David Rientjes <rientjes@...gle.com>,
LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
"Huang, Ying" <ying.huang@...el.com>,
"Tang, Feng" <feng.tang@...el.com>, zhengjun.xing@...ux.intel.com,
fengwei.yin@...el.com, Eric Dumazet <eric.dumazet@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-mm <linux-mm@...ck.org>
Subject: Re: [mm/page_alloc] 8212a964ee: vm-scalability.throughput 30.5% improvement
On Sun, Mar 13, 2022 at 2:18 PM Matthew Wilcox <willy@...radead.org> wrote:
>
> On Sun, Mar 13, 2022 at 02:10:12PM -0700, Eric Dumazet wrote:
> > @@ -3065,6 +3062,12 @@ static int rmqueue_bulk(struct zone *zone,
> > unsigned int order,
> > */
> > __mod_zone_page_state(zone, NR_FREE_PAGES, -(i << order));
> > spin_unlock(&zone->lock);
> > + list_for_each_entry_safe(page, tmp, list, lru) {
> > + if (unlikely(check_pcp_refill(page))) {
> > + list_del(&page->lru);
> > + allocated--;
> > + }
> > + }
>
> ... you'd need to adjust __mod_zone_page_state() too, right?
Probably !
This was only to show the basic idea, as I said, not even compiled or tested :)
Powered by blists - more mailing lists