Page Fault & Virtual Memory Lab — minor vs major faults, RSS vs VSZ, copy-on-write and overcommit

local processing
Run a short script of memory operations and see what each does to VSZ, RSS and the minor and major page-fault counters: why malloc only reserves address space, why a read of untouched memory still faults, how fork shares pages and a write copies only what it touches, when overcommit refuses an allocation or a fork, how THP maps 512 pages per fault, and why a cold file costs a major fault. Counts are checked against a real Linux kernel. Runs in your browser.