From: "Harry Yoo (Meta)" <harry@kernel.org>
To: vbabka@kernel.org, akpm@linux-foundation.org, Hao Li <hao.li@linux.dev>
Cc: kernel-team@meta.com, cl@gentwo.org, rientjes@google.com,
roman.gushchin@linux.dev, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/slab: don't set SLAB_MAY_ACCOUNT for KMALLOC_PARTITION_CACHES
Date: Mon, 23 Nov 2026 14:48:19 +0000 [thread overview]
Message-ID: <179544526759.3606123.1000047458494853310.b4-ty@b4> (raw)
In-Reply-To: <20261111125628.375624-1-hao.li@linux.dev>
On Wed, 11 Nov 2026 20:49:10 +0800, Hao Li wrote:
> An allocation with __GFP_ACCOUNT set (without __GFP_DMA or
> __GFP_RECLAIMABLE) is redirected to KMALLOC_CGROUP and will never hit
> KMALLOC_NORMAL or KMALLOC_PARTITION_CACHES. Consequently, neither of
> these caches requires objcg slots in obj_exts.
>
> While KMALLOC_NORMAL already skips setting SLAB_MAY_ACCOUNT,
> KMALLOC_PARTITION_CACHES still carries it unnecessarily.
>
> [...]
Applied to mm/slab.git for-next, thanks!
[1/1] mm/slab: don't set SLAB_MAY_ACCOUNT for KMALLOC_PARTITION_CACHES
commit: ec81fa8f7dbcf89d9b4112544f76f47c8eb5c725
--
Cheers,
Harry / Hyeonggon
next prev parent reply other threads:[~2026-11-23 14:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 12:49 Hao Li
2026-11-11 13:08 ` Vlastimil Babka (SUSE)
2026-11-12 7:54 ` Hao Li
2026-11-23 14:48 ` Harry Yoo (Meta) [this message]
2026-11-23 14:53 ` Harry Yoo
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=179544526759.3606123.1000047458494853310.b4-ty@b4 \
--to=harry@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=cl@gentwo.org \
--cc=hao.li@linux.dev \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=vbabka@kernel.org \
/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
all inboxes | Powered by JetHome®