Skip to main content

COMPACTION_FRAGMENTATION_THRESHOLD

Static COMPACTION_FRAGMENTATION_THRESHOLD 

Source
static COMPACTION_FRAGMENTATION_THRESHOLD: AtomicUsize
Expand description

Fragmentation score threshold for triggering compaction-assist.

When a higher-order allocation fails and the zone’s fragmentation score exceeds this threshold, the allocator drains per-CPU caches before retrying. The value is expressed as a percentage (0-100). Lower values make compaction more aggressive; higher values make it more conservative.

Default: 35 (35% of free pages trapped below the requested order).