Skip to content

Cpu alloc V5: Replace percpu allocator in modules.c

Christoph Lameter linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

V4->V5 from the cover letter

- Fix various things pointed out by Pekka.
- Remove page alignment check from module.c and put it into cpu_alloc.c

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Make the per cpu reserve configurableDocumentation/kernel-parameters.txt include/linux/percpu.h init/main.c+22 -12 replies
2/4percpu: Rename variables PERCPU_ENOUGH_ROOM -> PERCPU_AREA_SIZEarch/ia64/include/asm/percpu.h arch/powerpc/kernel/setup_64.c arch/sparc64/kernel/smp.c +5 more+14 -150 replies
3/4cpu alloc: The allocatorarch/ia64/kernel/setup.c arch/powerpc/kernel/setup_64.c arch/sparc64/mm/init.c +7 more+244 -45 replies
4/4cpu alloc: Use cpu allocator instead of the builtin modules per cpu allocatorinclude/linux/module.h kernel/module.c+12 -1620 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/4] Cpu alloc V5: Replace percpu allocator in modules.c

Just do the bare mininum to establish a per cpu allocator. Later patchsets will gradually build out the functionality.

The most critical issue that came up on the last round is how to configure the size of the percpu area. Here we simply use a kernel parameter and use the static size of the existing percpu allocator for modules as a default.

The effect of this patchset is to make the size of percpu data for modules configurable. Its no longer fixed at 8000 bytes.

Changes:
V4->V5:
- Fix various things pointed out by Pekka.
- Remove page alignment check from module.c and put it into cpu_alloc.c

V3->V4:
- Gut patches to the bare essentials: Only replace modules.c percpu alloocator
- Make percpu reserve area configurable via a kernel parameter