Skip to content

Per cpu atomics in page allocator, modules, cleanup and optimized inc/dec

Christoph Lameter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v9 Latest7 patches 6 repliesIn review

Changes in v9 from the cover letter

- Split patches for the module logic differently.
- Fix spurious free in module patch.
- Drop ringbuffer stuff. Needs more discussion.
- Drop slub patches (already in Pekka's tree and in -next)
- Add SPARC cleanup patch.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Remove cpu_local_xx macrosarch/alpha/include/asm/local.h arch/m32r/include/asm/local.h arch/mips/include/asm/local.h +3 more+0 -1480 replies
2/7Module handling: Use this_cpu_xx to dynamically allocate countersinclude/linux/module.h kernel/module.c+29 -360 replies
3/7Move local.h include to ringbuffer.c and ring_buffer_benchmark.cinclude/linux/module.h kernel/trace/ring_buffer.c kernel/trace/ring_buffer_benchmark.c+2 -10 replies
4/7Generic inc / dec percpu instructionsarch/x86/include/asm/percpu.h+86 -142 replies
5/7this_cpu_ops: page allocator conversioninclude/linux/mm.h include/linux/mmzone.h mm/page_alloc.c +1 more+92 -1353 replies
6/7this_cpu ops: Remove pageset_notifiermm/page_alloc.c mm/vmstat.c+1 -270 replies
7/7Remove leftover local.harch/sparc/kernel/nmi.c+0 -10 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchMel Gorman
1/7
2/7
3/7
4/7
5/7R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [this_cpu_xx V9 0/7] Per cpu atomics in page allocator, modules, cleanup and optimized inc/dec

Leftovers from the earlier patchset rediffed to 2.6.33-rc2.
Mostly applications of per cpu counters to core components and cleanup patches.

After this patchset there will be only one user of local_t left: Mathieu's trace ringbuffer.

V8->V9
- Split patches for the module logic differently.
- Fix spurious free in module patch.
- Drop ringbuffer stuff. Needs more discussion.
- Drop slub patches (already in Pekka's tree and in -next)
- Add SPARC cleanup patch.

V7->V8
- Fix issue in slub patch
- Fix issue in modules patch
- Rediff page allocator patch
- Provide new this_cpu ops needed for ringbuffer [RFC state]

V6->V7
- Drop patches merged in 2.6.33 merge cycle
- Drop risky slub patches

V5->V6:
- Drop patches merged by Tejun.
- Drop irqless slub fastpath for now.
- Patches against Tejun percpu for-next branch.

V4->V5:
- Avoid setup_per_cpu_area() modifications and fold the remainder of the patch into the page allocator patch.
- Irq disable / per cpu ptr fixes for page allocator patch.

V3->V4:
- Fix various macro definitions.
- Provide experimental percpu based fastpath that does not disable interrupts for SLUB.

V2->V3:
- Available via git tree against latest upstream from
git://git.kernel.org/pub/scm/linux/kernel/git/christoph/percpu.git linus
- Rework SLUB per cpu operations. Get rid of dynamic DMA slab creation for CONFIG_ZONE_DMA
- Create fallback framework so that 64 bit ops on 32 bit platforms can fallback to the use of preempt or interrupt disable. 64 bit platforms can use 64 bit atomic per cpu ops.

V1->V2:
- Various minor fixes
- Add SLUB conversion
- Add Page allocator conversion
- Patch against the git tree of today