One small nit Stan ...
I think proc.psinfo.threads should have the semantics of PM_SEM_INSTANT
rather than PM_SEM_DISCRETE ... the number of threads can go up and down
during the life of the process, which is a better semantic match to
PM_SEM_INSTANT.
PM_SEM_DISCRETE is intended for metrics that once observed are very
unlikely to change over time, e.g. the number of CPUs in a system or the
kernel's hz value.
The only case where it makes a difference is when the metric appears in
an archive, for PM_SEM_DISCRETE there are no interpolated values beyond
the last observed value (playing forwards) nor before the first observed
value (when playing backwards). But for PM_SEM_DISCRETE provided the
value appears once in the archive, then a value is available from the
start of the archive to the end of the archive.
On 15/05/13 07:23, Stan Cox wrote:
This adds VmSwap and Threads to linux_proc as proc.memory.vmswap and
proc.psinfo.threads.
...
|