Skip to content

Multi-core cache-line bouncing

Step 3 of 8Problem
NUMA SCALE
poor
ATOMICS
serialized
64 CORES
stalled
LATENCY
spiking
  • CPU hook write
  • userspace read / poll
  • ringbuf event stream
Maps & Data Sharing, step 3 of 8

When 64 CPU cores increment the same counter in a shared HASH or ARRAY map, every core needs atomic __sync_fetch_and_add or bucket spinlocks.

That forces the CPU cache line to bounce across NUMA sockets on every packet or softirq, burning cycles on coherence traffic instead of real work.

Type to search…

↑↓ navigate↵ selectEsc close