A page fault is the processor’s trap into the kernel when a program touches a virtual page that is not yet backed by physical memory (a minor fault: the kernel allocates and zeroes a page) or whose contents are on disk (a major fault). Pre-faulting is touching every page of a buffer at start-up, so that no fault happens later on the hot path.
bench_alloc.py.