Article View: linux.kernel.netdev
Article #26447Re: [PATCH slab/for-next v2 08/14] powerpc/mm: specify SLAB_MAY_ACCOUNT for pgtable caches
From: Hao Li
Date: Thu, 03 Dec 2026 14:55
Date: Thu, 03 Dec 2026 14:55
27 lines
11148 bytes
11148 bytes
On Wed, Nov 25, 2026 at 09:37:09PM +0000, Harry Yoo (Meta) wrote: > User page tables are allocated from PGT_CACHE() with > pgtable_gfp_flags(), which adds __GFP_ACCOUNT for non-kernel mms. > Specify SLAB_MAY_ACCOUNT when the object may be charged to a memcg. > __GFP_ACCOUNT without SLAB_MAY_ACCOUNT will not be allowed. > > Path: copy_process() -> mm_init() -> pgd_alloc() > -> kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), > pgtable_gfp_flags(mm, GFP_KERNEL)) > > Cc: Madhavan Srinivasan <maddy@linux.ibm.com> > Cc: Michael Ellerman <mpe@ellerman.id.au> > Cc: Nicholas Piggin <npiggin@gmail.com> > Cc: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org> > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Harry Yoo (Meta) <harry@kernel.org> > --- > arch/powerpc/mm/init-common.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Looks good to me. Reviewed-by: Hao Li <hao.li@linux.dev> -- Thanks, Hao
Technical Details
Message-ID:
<axGCrkl53C9R6qxj@fedora>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376688-linux-kernel-netdev=dewy.ruReferences:
<20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-0-7c680f02a734@kernel.org> <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-8-7c680f02a734@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376688-linux-kernel-netdev=dewy.ru From: hao.li@linux.dev (Hao Li) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH slab/for-next v2 08/14] powerpc/mm: specify SLAB_MAY_ACCOUNT for pgtable caches Date: Thu, 3 Dec 2026 14:55:06 +0000 Organization: Usenet Network Message-ID: <axGCrkl53C9R6qxj@fedora> References: <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-0-7c680f02a734@kernel.org> <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-8-7c680f02a734@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2520449"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:d6oSV6AJ4k/jzu0TXr97opaSYVw= sha256:Y1AuZNltiDdo7Tdlz15m1MCRpjOuRlp1CDQ1UxvDdV0= sha1:Mq9OK6Q6uAbKByTu7gE2+ZvRSoo= sha256:f0yA7SmQtp9N0GCqN0E5iRG4tPFtrxe+c3Uvpi7GPH8= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id EF5BB117996; Thu, 3 Dec 2026 17:56:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.299 X-Spam-Status: No, score=-3.299 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nT829wmXe9S1; Thu, 3 Dec 2026 17:56:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-376688-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 21E95117970; Thu, 3 Dec 2026 17:55:55 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id D96C023D90; Thu, 3 Dec 2026 14:55:50 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796309746; b=1e0bO8aGF/66Jg96Zp7cIH7UtD1eSWIoKbuV5MISs5eZX9iOZqGe6hgyimpmH14cu86f i35/q+O18g2jNgi1T+5FkiG69YPVEooBMLd+Efgfb9/XGzKP+14T5dN3Dbw4utQjPRFYc VFH2Mrj9e41MOKSC8wtTYsxkq+Jhtdc1d/fdBBb/X/mvY/D9khVJA7Wiy0XY8We0MtU6w Qv4EjiMALPlL7C+lrT3WddwuZrCisIganIOf0bXwvgOmoCkdd6uOYERkQOOKe/3p96Yr7 Egugh9dMq8hmyGfS8rvOpF0HZJdsp7CO+MOttCj3ZwNIMW8RbEzGk8Br0r2mM+ZC2MA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796309746; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=V7SCrIhwujnY2HkOncONxs7M7ohZk3fLlk6xY4QxqXs=; b=UYnVYhmDGvF/X/VYTAsXesffNmMJf/wANvdXPs7DrFkhvDK1xMWyH4TaqvfxXlTlRlOo DYVwb2M0A9FQQ2vyOI6dAelFk/xiMvUqMVYHVRl+Yoqdc1nXXJsmW8nwo0t0CBXuaIpHK pWxJJz6cDNXXGPgItZ6S0qSfLqLML3HMSjDNqDfJqQX9gertfZt1AHGdzBykzeG+GiCi9 Ivuw1uHQPcEcglIih0tG0+9a/eC5yvMM54/nHLxfHGGZ69EhT7jfcpLa7PC03kZUus5Gb T3KVB7iDNGoee1dXaWESreD1atnFHD9xCb/GtJyUTeQkwLJssnuakgoM+zLyPpIOjMQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=oiO4Wpa6; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7B1C606A682; Thu, 3 Dec 2026 14:55:46 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=oiO4Wpa6 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.120 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796309745; b=SVpnwZhdGPCZUPlzIRlW2zsYYrxnwRERq5qVUmGaNbYwTmUUqtaEsmrOy0IEVYjMmUtR +kWlN1Dz1+AOhOluxbQsxm5M4csHQqa1tp/sVUrNWfUTTuotz+y4+TYFbnsJ+3J5ShMu7 hFXG/27laC5iscp7skoxPOo3nG57pxToTntH/bz1AzHxhWwn4H7xip1Nwv0jNxLLBMJdn Rv7G+sqMurOkBX1TwRAGlI4bXDn0z0hXQ4y2ct+gX00tiUFViHTonoubDfjC+TO5TdR70 fqGf/p70TUwfyBSzl2GydHXBtMidPA0qpEP1MIFuJOzRFVywTkj0RVUOYdqZx5mDFug== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796309745; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=V7SCrIhwujnY2HkOncONxs7M7ohZk3fLlk6xY4QxqXs=; b=WspNr9qcz/QRnvjjglS3vwFKsL5Db0x0QVSy4SdUebsmRlWaG+514IzlnW61cejI93KZ hvSerzvoSCaxa/xzUzsmvjXJrLWwy76gC2fUg6gSLbSxQ9zkaUJVQwilUjNcOFdWaiLyi qiYRuyLVuyQ7eoL2HLruGrmEqmEQ8ROdUMh/PYwWf9hMvBRIzrT4TdL71tDy518bSIvZT Sab1GGj6cP6Uuxtdx8dQ9NxUG1x9k7FQqZzdOZiKfsbokhgzDUG0P1NG/Ft8+6v9iS8bX dSUw4jqeWmxcjKUZqPfmB4YW+kl+iwk5Y5NvXbuzFL9N7EBaNkUSURX7e+1F/y0+rlw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=oiO4Wpa6; arc=none smtp.remote-ip=95.215.58.120 X-Received: from mta1.migadu.com (out-120.mta1.migadu.com [95.215.58.120]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40FB0606A32D for <netdev@vger.kernel.org>; Thu, 3 Dec 2026 14:55:44 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 40FB0606A32D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=dBh6ss7iklwS2EJhIWOEtKnA5Hkr2R2LiT8MgTp818I=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796309743; v=1; x=1796914543; b=oiO4Wpa6cR2EHv2Xuh7kL26eRoiKqxwn0w0dGYn5DD32J6nLweyNtNpeEruIseL5VL3SSBVV E8zL2mYMo/TA+PHJf/tVo70YsS52ch6BkSNAhz80SiNmvBtVuqNfFYy1iTL19vQCT1y24rlnHeQ XXmStE9Xm5mQgr5H9j5WrVGI= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id d411ee7e151e7e23; Thu, 03 Dec 2026 14:55:42 +0000 X-Mizu-Trace-ID: d411ee7e151e7e23 X-Migadu-Flow: FLOW_OUT X-Cc: Vlastimil Babka <vbabka@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Suren Baghdasaryan <surenb@google.com>, Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Shakeel Butt <shakeel.butt@linux.dev>, Roman Gushchin <roman.gushchin@linux.dev>, Christoph Lameter <cl@gentwo.org>, David Rientjes <rientjes@google.com>, Muchun Song <muchun.song@linux.dev>, Hao Ge <hao.ge@linux.dev>, Pedro Falcato <pfalcato@suse.de>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, "Liam R. Howlett" <liam@infradead.org>, Alice Ryhl <aliceryhl@google.com>, Andrew Ballance <andrewjballance@gmail.com>, Matthew Wilcox <willy@infradead.org>, linux-fsdevel@vger.kernel.org, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Jiayuan Chen <jiayuan.chen@linux.dev>, netdev@vger.kernel.org, Kees Cook <kees@kernel.org>, David Hildenbrand <david@kernel.org>, Lorenzo Stoakes <ljs@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Madhavan Srinivasan <maddy@linux.ibm.com>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Robin Murphy <robin.murphy@arm.com>, "Joerg Roedel (AMD)" <joro@8bytes.org>, Amir Goldstein <amir73il@gmail.com>, Casey Schaufler <casey@schaufler-ca.com>, Paul Moore <paul@paul-moore.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com>, linux-security-module@vger.kernel.org, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Johannes Berg <johannes@sipsolutions.net>, Eric Dumazet <edumazet@kernel.org>, "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>, linuxppc-dev@lists.ozlabs.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261125-memalloc-prof-dont-waste-slabobj-ext-metadata-v2-8-7c680f02a734@kernel.org>