fn cmd_heap_stress(rounds_arg: Option<&String>) -> Result<(), ShellError>Expand description
heap stress [rounds] : exercise allocator smoke paths and one bounded
userspace workload path.
Each round runs:
slab_reclaim[S] : fill/drain slab classes without leaking.
slab_frag[256] : verify a page becomes partial after partial free.
vmalloc_cycle : alloc/free vmalloc ranges and verify live tracking.
vmalloc_frag : random-size allocs freed in random order; checks that
virtual fragmentation is observable and all pages are
returned after drain.
telemetry : sanity-check counters are self-consistent.
userspace_workload : launch /initfs/test_mem_stressed in a silo and
observe its lifecycle for a bounded period.