Skip to content

Per cpu atomics in core allocators, cleanup and more this_cpu_ops

Christoph Lameter lkml 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest16 patches 21 repliesIn review
  2. v78 patches 30 repliesSuperseded
  3. v67 patches 48 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v518 of 19 patches38 repliesSuperseded
v319 patches4 repliesSuperseded
v420 patches44 repliesSuperseded
v219 patches28 repliesSuperseded
v111 patches17 repliesSuperseded

Changes in v8 from the cover letter

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

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16this_cpu_ops: page allocator conversioninclude/linux/mm.h include/linux/mmzone.h mm/page_alloc.c +1 more+92 -1350 replies
2/16this_cpu ops: Remove pageset_notifiermm/page_alloc.c mm/vmstat.c+1 -270 replies
3/16Use this_cpu operations in slubinclude/linux/slub_def.h mm/slub.c+49 -1591 reply
4/16SLUB: Get rid of dynamic DMA kmalloc cache allocationinclude/linux/slub_def.h mm/slub.c+21 -220 replies
5/16this_cpu: Remove slub kmem_cache fieldsinclude/linux/slub_def.h mm/slub.c+17 -610 replies
6/16Make slub statistics use this_cpu_incmm/slub.c+20 -230 replies
7/16Module handling: Use this_cpu_xx to dynamically allocate countersinclude/linux/module.h kernel/module.c kernel/trace/ring_buffer.c+31 -3811 replies
8/16Remove 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
9/16Allow arch to provide inc/dec functionality for each size separatelyinclude/linux/percpu.h+90 -63 replies
10/16Support generating inc/dec for this_cpu_inc/decarch/x86/include/asm/percpu.h+47 -00 replies
11/16Generic support for this_cpu_cmpxchginclude/linux/percpu.h+99 -06 replies
12/16Add percpu cmpxchg operationsarch/x86/include/asm/percpu.h+12 -00 replies
13/16Generic support for this_cpu_xchginclude/linux/percpu.h+95 -00 replies
14/16x86 percpu xchg operationarch/x86/include/asm/percpu.h+21 -00 replies
15/16Generic support for this_cpu_add_return()include/linux/percpu.h+90 -00 replies
16/16x86 support for this_cpu_add_returnarch/x86/include/asm/percpu.h+35 -00 replies

Reviews trailers per patch

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

PatchMel Gorman
1/16R-b
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

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

Read the v8 thread

Cover letter [this_cpu_xx V8 00/16] Per cpu atomics in core allocators, cleanup and more this_cpu_ops

Leftovers from the earlier patchset rediffed to 2.6.33-rc1. Mostly applications of per cpu counters to core components.

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

I added some patches that define additional this_cpu ops in order to help Mathieu with making the trace ringbuffer use this_cpu ops. These have barely been tested (boots fine on 32 and 64 bit but there is no user of these operations). RFC state.

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