Skip to main content

BUDDY_ALLOC_FAIL_COUNTS

Static BUDDY_ALLOC_FAIL_COUNTS 

Source
static BUDDY_ALLOC_FAIL_COUNTS: [AtomicUsize; 12]
Expand description

Per-order allocation failure counters.

BUDDY_ALLOC_FAIL_COUNTS[order] counts how many times a request for order failed to find a free block at order or any higher order. These are incremented in alloc_from_zone when the loop exhausts all orders without finding a free block.

Read via buddy_alloc_fail_counts_snapshot() for diagnostics.