Module pid1

Module pid1 

Source
Expand description

§pid1 module

pid1 uses procfs to get some statistics on Linux’s more important process pid1. These metrics can help ensure newer systemds don’t regress or show stange behavior. E.g. more file descriptors without more units.

Structs§

Pid1Stats
Process-level statistics for PID 1 (systemd) read from procfs. These metrics help detect regressions or anomalies in the init process itself. Ref: https://manpages.debian.org/buster/manpages/procfs.5.en.html

Enums§

MonitordPid1Error

Functions§

get_pid_stats
Get procfs info on pid 1 - https://manpages.debian.org/buster/manpages/procfs.5.en.html
update_pid1_stats
Async wrapper than can update PID1 stats when passed a locked struct