---
title: "Multi-core cache-line bouncing"
---

> Documentation Index
> Fetch the complete documentation index at: https://example.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Multi-core cache-line bouncing

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.

> **Watch out:** Never use a plain shared HASH map for hot-path metrics on 64–128 core servers. Under bursty NET_RX traffic, atomic contention dominates hook cost.

Source: https://example.com/ebpf-field-guide/core-architecture/maps-and-data/contention/index.mdx
