Skip to content

Memory caps and ring drops

Step 7 of 8Trade-off
SIZING
fixed max
OVERFLOW
evict / drop
RING FIX
var-length
ACCOUNTING
memcg
  • CPU hook write
  • userspace read / poll
  • ringbuf event stream
Maps & Data Sharing, step 7 of 8

Every map declares a fixed max_entries at creation (bounded by cgroup memory on Linux 5.11+). If a plain HASH fills, inserts fail; an LRU_HASH silently evicts cold keys.

If user space drains a RingBuf too slowly—or reserves fixed worst-case slots instead of variable-length records—events drop. In our own probe lab, switching to variable-length rings eliminated a 38.8% drop rate at 290 Mbit/s.

Type to search…

↑↓ navigate↵ selectEsc close