code wiki / (root) / nx_vsz_pig.nx

nx_vsz_pig.nx

buildroot/runtime/nx_vsz_pig.nx

899 B19 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind orphan librarytopic vsz
docsdependenciesstructsconstsfunctions

about

nx_vsz_pig.nx -- TEST FIXTURE for the VSZ watchdog's live kill-path proof: balloons its own VSZ to ~40GB of VIRTUAL address space (anonymous mmap, untouched pages -> near-zero RSS, harmless) then sleeps forever. The watchdog, given a conf row "nx_vsz_pig 30", must kill THIS and nothing else. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_vsz_pig.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

5const K_MAGIC_1073741824: i64 = 1073741824
6const K_MAGIC_60000: i64 = 60000

functions

8func main() -> i64