Skip to main content

Module sampler

Module sampler 

Source
Expand description

Sampling the machine on demand: what to measure, for whom, and how often. docs/reports/REPORT_SYSINFO_REWRITE_AND_MODERN_MONITOR_2026_10_13.md section 5.5.

Re-exports§

pub use schedule::Scheduler;
pub use schedule::SourceId;
pub use schedule::SourceSpec;

Modules§

late_tick
The sampler’s own lateness, as a log line. A chart draws a break after 3 s without a sample, and the sampler runs on the same runtime as everything else, so a tick that comes late is that runtime (or the machine) not running it. Without a record, whether chart gaps happen, and how often, is a guess. docs/analysis/ANALYSIS_SRV_HTTP_STALL_IO_DRIVER_STARVATION_2026_09_26.md section 9.
own_processes
panes
Each pane’s CPU and memory for its stats badge, taken from Tower’s sample (backend::tower::sampler), so the badge and Tower count the same processes the same way: a pane’s Job Object or cgroup, which nothing it starts can leave, else its shell’s process tree. A Tower pane open at the same time shares the process snapshot (Tower reuses one taken within the last second). The badge’s tooltip (blockstats.detail) reads the same task from tower_snapshot, so it lists the processes the badge counts. docs/reports/REPORT_SYSINFO_REWRITE_AND_MODERN_MONITOR_2026_10_13.md section 5.5.
schedule
Which sources to sample now, and how soon to look again.
thread
The sampler’s own thread. The sampler used to be a task on srv’s runtime, so when the runtime stopped running tasks (the log’s runtime-stall: lines), the tick that measures the machine waited with everything else, and the CPU chart showed a hole exactly when the machine was busiest. On its own OS thread, with a runtime of its own that holds nothing else, the tick is only as late as the operating system is.