# nmbrs-host
Readings of the machine nmbrs runs on, for the session sampler
(`sysmon=`) and the `host` adapter. See
[SRD-118](../../docs/SRD/118_host_measurement.md) ยง9.
Each subsystem has a module that holds its counters, the parser of
the kernel files it reads, and the arithmetic between two readings:
| `cpu` | `/proc/stat` |
| `mem` | `/proc/meminfo`, resctrl memory bandwidth |
| `disk` | `/proc/diskstats`, `/proc/mounts`, statvfs |
| `net` | `/proc/net/dev` |
| `pressure` | `/proc/pressure/*` |
| `process` | `/proc/<pid>/stat`, `/proc/<pid>/io` |
| `cgroup` | `/sys/fs/cgroup/<group>/{cpu.stat,memory.current,io.stat}` |
| `du` | a directory tree, counted as `du` counts |
`category` names the subsystems and says what each needs of the host.
`snapshot` reads chosen categories once, as named measures.
The parsers take text, so they are tested on fixtures. The readings
are available on Linux only; the directory walk works on any Unix.
This crate depends on no other nmbrs crate.