Expand description
Readings of the host nmbrs runs on (SRD-118 §9).
The session sampler (sysmon=) and the host adapter both read
the host through this crate, so each subsystem is read and parsed
in one place.
category: the subsystems’ names and what each needs of this host.cpu,mem,disk,net,pressure,process,cgroup: each subsystem’s counters, the parser of its files, and the arithmetic between two readings.snapshot: one reading of chosen categories, as named measures.du: the disk space a directory takes.
The parsers take text, so the arithmetic is tested on fixtures;
only the read_* functions, the watchers of a process or a control
group, and the directory walk touch the filesystem.
Modules§
- category
- The host’s subsystems by name (SRD-118 §3), and what each needs of
this host. The sampler’s
sysmon=and the host op’sread:name categories from this one list. - cgroup
- A control group’s CPU, memory and storage I/O, from the unified (version 2) hierarchy (SRD-118 §3.9).
- cpu
- CPU utilization from
/proc/stat: the mean, the hottest core and the per-core quartiles (SRD-118 §3.1). - disk
- Disks: how busy the busiest device is and how much each device
reads and writes, from
/proc/diskstats; and how full the fullest filesystem is, from statvfs (SRD-118 §3.2, §3.5). - du
- The disk space a directory takes (SRD-118 §6.2): a walk of
everything under it, counted as
ducounts. - mem
- Memory utilization from
/proc/meminfo, and memory bandwidth from resctrl (SRD-118 §3.3, §3.4). - net
- Network throughput per interface, from
/proc/net/dev(SRD-118 §3.6). - pressure
- Pressure stall information from
/proc/pressure(SRD-118 §3.7): the share of time tasks were stalled for want of CPU, memory or I/O. - process
- Per-process measures from
/proc/<pid>(SRD-118 §3.8): CPU in cores, resident memory, threads, and bytes read from and written to storage. - snapshot
- One reading of chosen categories, as named measures (SRD-118 §6.6).