refault-probe

command
v0.18.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Command refault-probe is a field diagnostic for the §9 page-cache pressure sensor (internal/engine/memory/pressure_os.go). It prints, once per second, the raw workingset_refault counter this process can see next to the sensor's sampled rate and active state — same process, same instant, so a moving counter with a flat sensor rate indicts the sensor, not the environment.

With --thrash <file> it also generates workingset refaults itself: the file is mmap'd and pages are touched in a random order, twice per sweep, so pages join the kernel's workingset before eviction — run it inside a memory-capped cgroup smaller than the file and the eviction/re-touch cycle registers as refaults (a sequential cat loop does not: streamed pages never activate).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL