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. The sampler’s sysmon_procs= and the host op’s procs:
name others, such as a server under test on the same host.
Structs§
- Proc
Counters - The cumulative counters and current sizes of one process.
- Proc
Reading - What one process did over a sample window.
- Proc
Target - One process to watch, and the name its series carry.
- Watched
- A watched process between samples: the process it was last found as, and that process’s counters then.
Enums§
- Proc
Source - How a watched process is found.
Constants§
- OWN_
NAME - The name nmbrs’s own process is reported under.
Functions§
- parse_
io read_bytesandwrite_bytesof/proc/<pid>/io.- parse_
procs - Parse a list of processes: a comma list of
name:pidorname:/path/to/pidfile. A name is letters, digits,_and-, is given once, and is notnmbrs. An error does not name the setting it was read from; the caller does. - parse_
stat - The fields of
/proc/<pid>/statthe 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. - read_
counters - Read one process’s counters.
Nonewhen the process is not there. - reading
- One process’s reading between two sets of counters
dt_sapart. - resolve_
pid - The process id a source stands for now.
Nonewhen a pidfile cannot be read or does not hold a number. - units
- Clock ticks per second and bytes per page.