From: Paul Sherman <shermanpauldylan@gmail.com>
To: linux-mm@kvack.org
Cc: tj@kernel.org, vbabka@suse.cz, dennis@kernel.org,
akpm@linux-foundation.org
Subject: Re: [PATCH] mm/percpu: allow embed allocator when total size fits in vmalloc
Date: Sat, 18 Jul 2026 22:59:28 -0700 [thread overview]
Message-ID: <20260719055928.1939-1-shermanpauldylan@gmail.com> (raw)
In-Reply-To: <20260717231616.9126-1-shermanpauldylan@gmail.com>
Andrew,
Thank you for the encouraging words on the initial submission.
Tejun,
Further testing on SG2042 (Sv39, 4 NUMA nodes, 128GB) showed that
the proposed change allows the embedded first chunk to be created
successfully, but later dynamic chunk population consistently fails
in pcpu_populate_chunk(), with warnings originating from
__vmap_pages_range_noflush(). Reverting the patch eliminates those
warnings on the same hardware.
Looking through the code, my current understanding is that dynamic
chunks inherit the first chunk's layout through the shared
pcpu_unit_offsets[] table, while vmalloc reservations are driven by
pcpu_group_offsets[]. That led me to wonder whether I've encountered
a fundamental allocator invariant rather than merely an implementation
detail.
Is the requirement that all chunks share a single pcpu_unit_offsets[]
layout fundamental to the percpu allocator design, or is there an
intended mechanism for decoupling the embedded first-chunk layout from
dynamic chunk vmalloc mappings?
The answer will help determine whether the correct next step is to
withdraw the patch and instead document the existing invariant, or
whether there's a larger design direction worth investigating.
Thanks,
Paul
prev parent reply other threads:[~2026-07-19 5:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 23:16 [PATCH] mm/percpu: allow embed allocator when total size fits in vmalloc Paul Sherman
2026-07-18 0:23 ` Andrew Morton
2026-07-18 17:49 ` Paul Sherman
2026-07-19 5:59 ` Paul Sherman [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=20260719055928.1939-1-shermanpauldylan@gmail.com \
--to=shermanpauldylan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dennis@kernel.org \
--cc=linux-mm@kvack.org \
--cc=tj@kernel.org \
--cc=vbabka@suse.cz \
/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