Skip to content

RFC Cmpxchg and xchg support for cpu ops

Christoph Lameter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8percpu: generic this_cpu_cmpxchg() and this_cpu_cmpxchg_double supportinclude/linux/percpu.h+257 -10 replies
2/8--- include/linux/percpu.h | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-)include/linux/percpu.h+3 -280 replies
2/8Fallback to atomic xchg, cmpxchginclude/linux/percpu.h+3 -280 replies
3/8x86: this_cpu_cmpxchg and this_cpu_cmpxchg_double operationsarch/x86/Kconfig.cpu arch/x86/include/asm/percpu.h arch/x86/lib/Makefile +1 more+238 -43 replies
4/8irq_work: Use per cpu atomics instead of regular atomicskernel/irq_work.c+9 -90 replies
5/8vmstat: User per cpu atomics to avoid interrupt disable / enablemm/vmstat.c+87 -140 replies
6/8Lockless (and preemptless) fastpaths for slubinclude/linux/slub_def.h mm/slub.c+219 -140 replies
7/8slub: Add PageSlubPartialinclude/linux/page-flags.h mm/slub.c+17 -100 replies
8/8slub: [RFC] Partially lockless freepath slowpathmm/slub.c+37 -280 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [rfc: cpuops adv V1 0/8] Cmpxchg and xchg support for cpu ops

This is a patchset on top of the thiscpuops upgrade patchset. It adds cmpxchg and xchg support and uses that to improve various kernel subsystem.

For vm statistics we can avoid interrupt enable/disable which reduces the latencies of the vm counter updates to a fraction.

The slub fastpaths and slowpaths can decrease their cycle count. In particular it is possible to improve the performance of the free slowpath.