nmbrs-host 0.7.3

Host readings for nmbrs: CPU, memory, disks, network, pressure, processes, control groups and directory sizes
Documentation
  • Coverage
  • 63.1%
    118 out of 187 items documented0 out of 77 items with examples
  • Size
  • Source code size: 89.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.7 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nosqlbench/nmbrs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jshook

nmbrs-host

Readings of the machine nmbrs runs on, for the session sampler (sysmon=) and the host adapter. See SRD-118 §9.

Each subsystem has a module that holds its counters, the parser of the kernel files it reads, and the arithmetic between two readings:

Module Reads
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.