Expand description
Allocator inspection and stress tests for the kernel shell.
Commands such as heap live print task ids, addresses, and source locations
from vmalloc attribution : useful for debugging but sensitive if the
serial console is exposed; restrict shell access accordingly.
Enumsยง
- Stress
Outcome ๐
Constantsยง
- HEAP_
USAGE ๐ - MAX_
LIVE_ ๐LIMIT - STRESS_
MAX_ ๐BLOCKS - Maximum number of pointers held on the stack during a slab stress test. Sized to cover the densest class (8 B, 509 blocks/page) over 1 page.
- STRESS_
WORKLOAD_ ๐EXIT_ TIMEOUT_ TICKS - STRESS_
WORKLOAD_ ๐OBSERVE_ TICKS - VMALLOC_
FRAG_ ๐COUNT
Functionsยง
- cmd_
heap heap: allocator telemetry and diagnostics.- cmd_
heap_ ๐fail - cmd_
heap_ ๐live - cmd_
heap_ ๐stress heap stress [rounds]: exercise allocator smoke paths and one bounded userspace workload path.- cmd_
heap_ ๐summary - cmd_
heap_ ๐vmalloc - page_
base ๐ - stress_
slab_ ๐frag - stress_
slab_ ๐reclaim - stress_
telemetry ๐ - stress_
userspace_ ๐workload - stress_
vmalloc_ ๐cycle - stress_
vmalloc_ ๐frag - stress_
wait_ ๐until