Skip to main content

Module process

Module process 

Source
Expand description

Per-process measures from /proc/<pid> (SRD-118 §3.8): CPU in cores, resident memory, threads, and bytes read from and written to storage.

nmbrs itself is always one of the processes, named nmbrs: how much of the host the load generator takes is part of reading any result. sysmon_procs= names others, such as a server under test on the same host.

Structs§

ProcCounters
The cumulative counters and current sizes of one process.
ProcReading
What one process did over a sample window.
ProcTarget
One process to watch, and the name its series carry.

Enums§

ProcSource
How a watched process is found.

Constants§

OWN_NAME
The name nmbrs’s own process is reported under.

Functions§

parse_io
read_bytes and write_bytes of /proc/<pid>/io.
parse_procs
Parse sysmon_procs=: a comma list of name:pid or name:/path/to/pidfile. A name is letters, digits, _ and -, is given once, and is not nmbrs.
parse_stat
The fields of /proc/<pid>/stat the measures need. The command name is in parentheses and may hold spaces and parentheses, so the fields are counted from the last ): state is the first after it, which makes utime the 12th, stime the 13th, num_threads the 18th and rss the 22nd.
reading
One process’s reading between two sets of counters dt_s apart.