Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Hongling Zeng <zenghongling@kylinos.cn>
Cc: dennis@kernel.org, tj@kernel.org, cl@gentwo.org,
	linux-mm@kvack.org, kernel@vger.kernel.org,
	zhongling0719@126.com
Subject: Re: [PATCH RESEND v2] mm/percpu-internal.h: optimise pcpu_chunk struct to save  memory
Date: Tue, 12 May 2026 15:03:40 -0700	[thread overview]
Message-ID: <20260512150340.c8ae97f9299918a1f12f3e7d@linux-foundation.org> (raw)
In-Reply-To: <20260511070309.44044-1-zenghongling@kylinos.cn>

On Mon, 11 May 2026 15:03:09 +0800 Hongling Zeng <zenghongling@kylinos.cn> wrote:

> Using pahole, we can see that there are some padding holes
> in the current pcpu_chunk structure,Adjusting the layout of pcpu_chunk
> can reduce these holes,decreasing its size from 192 bytes to 128 bytes
> and eliminating a wasted cache line.
> 
> With allmodconfig (CONFIG_PERCPU_STATS + NEED_PCPUOBJ_EXT)
> Before:
>  /* size: 256, cachelines: 4, members: 19 */
> 
> After:
>  /* size: 192, cachelines: 3, members: 19 */

Thanks, I'll add this to mm.git for testing, but I'm not planning on
taking it further until Dennis has taken a look.



  reply	other threads:[~2026-05-12 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11  7:03 [PATCH RESEND v2] mm/percpu-internal.h: optimise pcpu_chunk struct to save memory Hongling Zeng
2026-05-12 22:03 ` Andrew Morton [this message]
2026-05-13  8:23   ` Dennis Zhou

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=20260512150340.c8ae97f9299918a1f12f3e7d@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=cl@gentwo.org \
    --cc=dennis@kernel.org \
    --cc=kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=tj@kernel.org \
    --cc=zenghongling@kylinos.cn \
    --cc=zhongling0719@126.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