---
title: "Memory caps and ring drops"
---

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

# Memory caps and ring drops

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.

> **Watch out:** Always increment a per-CPU drop counter whenever bpf_ringbuf_reserve() returns NULL. Silent ring overflows look like missing traffic.

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