Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Harry Yoo <harry@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>,
	 Vlastimil Babka <vbabka@kernel.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	 Suren Baghdasaryan <surenb@google.com>,
	Michal Hocko <mhocko@suse.com>,
	 Brendan Jackman <brendan.jackman@linux.dev>,
	Zi Yan <ziy@nvidia.com>,
	 Mel Gorman <mgorman@techsingularity.net>,
	linux-mm@kvack.org, kernel-team@meta.com, rientjes@google.com
Subject: Re: [PATCH 0/3] mm/page_alloc: drop the pcp lock before re-enabling IRQs
Date: Tue, 1 Dec 2026 16:56:09 +0000	[thread overview]
Message-ID: <aw73gaSOfrUoe0u3@thinkstation> (raw)
In-Reply-To: <20261201161138.294531-2-joshua.hahnjy@gmail.com>

On Tue, Dec 01, 2026 at 08:24:31AM -0800, Joshua Hahn wrote:
> On Tue, Dec 01, 2026 at 01:40:08AM +0000, Harry Yoo wrote:
> > Hi Joshua!
> 
> Hi Harry, I hope you're doing well, thanks for taking a look at this!

No problem :-)

> > On Wed, Nov 25, 2026 at 01:27:24PM -0800, Joshua Hahn wrote:
> Anyways, let me do some benchmarking to revisit the cost and the
> tradeoffs.

Thanks a lot Joshua!
Let's see where it goes. 

There is a page allocator benchmark [1] posted recently from David Rientjes
[1] https://lore.kernel.org/linux-mm/20261129212551.1812084-2-rientjes@google.com

which could be helpful here.

It might add few tens of CPU cycles but IMHO in this case some
regression in microbenchmark isn't that critical...

Looking at commit messages from Mel apparently there are a couple of his
favourite macrobenchmarks in mmtests [2] that would be more useful to
measure a bit more realistsic performance impact of this.

[2] https://github.com/gormanm/mmtests

It might slightly impact performance but likely it'd be in (IMHO)
a acceptable range in terms of justifying complexity.

... of course we don't know before actually measuring it :P

> It would essentially be a revert of Mel's commit but I think
> there's been a lot of changes on top of it over the years, it might
> be a bit more plumbing than a simple revert.

Yeah I can imagine that... :) again thanks for working on this!
I'm happy to review further development of this.

> Thanks for going through and gathering all the context for this Harry.
> I hope you have a great day!

Have a nice day too Joshua, thanks.

> Joshua

-- 
Cheers,
Harry / Hyeonggon


      reply	other threads:[~2026-12-01 16:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 21:27 [PATCH 0/3] mm/page_alloc: drop the pcp lock before re-enabling IRQs Joshua Hahn
2026-11-25 21:27 ` [PATCH 1/3] mm/page_alloc: drop the pcp lock before enabling IRQs after a drain Joshua Hahn
2026-11-26 21:27   ` sashiko-bot
2026-11-25 21:27 ` [PATCH 2/3] mm/page_alloc: drop the pcp lock before enabling IRQs after a refill Joshua Hahn
2026-11-25 21:27 ` [PATCH 3/3] mm/page_alloc: disable IRQs around the remaining pcp drains Joshua Hahn
2026-12-01  1:40 ` [PATCH 0/3] mm/page_alloc: drop the pcp lock before re-enabling IRQs Harry Yoo
2026-12-01 16:24   ` Joshua Hahn
2026-12-01 16:56     ` Harry Yoo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw73gaSOfrUoe0u3@thinkstation \
    --to=harry@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.jackman@linux.dev \
    --cc=hannes@cmpxchg.org \
    --cc=kernel-team@meta.com \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@suse.com \
    --cc=rientjes@google.com \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox