From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F5EC606A322 for ; Tue, 1 Dec 2026 16:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AO9CwNI2 Received: by kanga.kvack.org (Postfix) id 27BF26B05E9; Tue, 1 Dec 2026 11:56:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2553C6B064A; Tue, 1 Dec 2026 11:56:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 183B56B064B; Tue, 1 Dec 2026 11:56:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id E744C6B05E9 for ; Tue, 1 Dec 2026 11:56:14 -0500 (EST) Received: from smtpin04.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 74E10C0FB1 for ; Tue, 1 Dec 2026 16:56:14 +0000 (UTC) X-FDA: 85496017068.04.9EC4BDB Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by imf23.hostedemail.com (Postfix) with ESMTP id CAF05140002 for ; Tue, 1 Dec 2026 16:56:12 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=AO9CwNI2; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf23.hostedemail.com: domain of harry@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=harry@kernel.org ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796144172; b=MNiddJsJgO7TI981rSIKj6J+XSGHtdw2lQUboPAhdP1bDqVAptjRFvtOTqUVMTokSCNQsc 6TW5yXtYlnGwjA0vnntFtmHTe/TAE+D7B3NdLWsU5K77z+ZmkdSo6wQOqd/91eiProKR1+ cyWb9QwZ3E/3FJoBQDXaiQTfiL5Cpn8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796144172; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QQ8X0O5n0tFsPN3nspZWa4ZJVzjpBhyClUuT31PvhGo=; b=YiIicxU0sSWkxQIiWM/VO44+2NcLI1UhInwC4Cbs/r/2LYQST8TY5FqVorbEMk7hy59IgE s4HUxkcNMqrzKO3XwMto/owiLmuh2O/o0iMN7Xz2dVusKYANTW2sgLw08SSxD32Y8VFpHj VV/e5l4pJb+MDJ46ZBSVd5XNjKOA5pc= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=AO9CwNI2; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf23.hostedemail.com: domain of harry@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=harry@kernel.org Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 3FC516255A; Tue, 1 Dec 2026 16:56:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 476C21F00893; Tue, 1 Dec 2026 16:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796144171; bh=QQ8X0O5n0tFsPN3nspZWa4ZJVzjpBhyClUuT31PvhGo=; h=Date:From:To:Subject:References:In-Reply-To; b=AO9CwNI264PiLCzsgkbJYJh7ztetr3aK2m8tqcAb6+IUTf9vI0rzJBP7tKssFQ3dm 8k28Jeo/hAkQBrlYSHWgv42AuWHoycQicOdBtQT6xZ95/S23QPeNqeLml9uPiE2UmE ZvVf+Qc7yDFs2gL3bM18wAtMtk8pcuP0FYfTpZvslxICuUPBeRgbr27iXhprUNxh8y XJkfTGN+zWhPp7XE0czAb/9oWzMU62/ZUa25YswS1Xadov6Vc7CfbwhkUFgV7sRTg8 i82foRJpx4yy3wNp1G9wabm6mOU6stU7IPv9tbhCJFx8+OEe6IAzSXxkIGb6+Vb0I1 N4oKMQ/Oz8tfw== Date: Tue, 1 Dec 2026 16:56:09 +0000 From: Harry Yoo To: Andrew Morton , Vlastimil Babka , Johannes Weiner , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Zi Yan , Mel Gorman , 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 Message-ID: References: <20261125212730.1128631-1-joshua.hahnjy@gmail.com> <20261201161138.294531-2-joshua.hahnjy@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201161138.294531-2-joshua.hahnjy@gmail.com> X-Rspam-User: X-Rspamd-Queue-Id: CAF05140002 X-Stat-Signature: 1o1ehifz3dgmw9o3if1pio7w66tznbiq X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Rspamd-Server: rspam06 X-HE-Tag: 1796144172-813091 X-HE-Meta: U2FsdGVkX1/5psS9trJcWY1JrRUc9aHJihKJ9RJzpsOvocQG8oCFynen4MeVaonDlR0qxMZhqp5ctB8Y3fo/Cv5MXeVOWmZ+a8LEeIBxdnwNBxgVu8njFtFVXtO91yuGl1DbyyimPlc3d3oMeaHz5LxZW38TEe0HpAEgrDGivH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HRFrr4QElRzz+Ou2Mez2oHFXiLrH7MTdNJUwgbYK5zvLFlCEj1xytue5CopRyriGPlmaOtrvdNOCcxll18hCwoSUPpUTpRS0A+TVrxUIIJMHdvkGuDuwfmMg5js7iCc44TQdtZVJLjYJpEs7GRfgMk0DEJPHkx2VPnZ2IAAr2XU0lOuKhyJDVKbHHFyUCk0oRR4YibXGaN0ntyIInrTvCac9TtpvxYPbl0YBBAivrTUlZY0KN/Zo3OKbwrmgUrPaw7mMNJbXK5DbDKepDBhvb/FV4Z6SVH7Pyn1avchGIxAFvy70ZPdhhX2Gwyj/k3g/tJA+4yWd2HpwdCGzJy9AAATX+yZQ== Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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