path: root/sys/sys/vmmeter.h
diff options
authorJohn Baldwin <jhb@FreeBSD.org>2018-01-18 19:43:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2018-01-18 19:43:02 +0000
commit9a7a98a0dce867c473ca7a622f96a61c931a44d0 (patch)
tree7ee2988ecdca7007c43b6d1ef49c71e8c8fe5315 /sys/sys/vmmeter.h
parente6dd0a0e9251932e5c756687292d11c7d06cb30e (diff)
Update various statements in vmstat(8) to match reality.
- The process stats are actually thread counts rather than process counts. - Simplify various descriptions to remove mention of stats that are updated every 5 seconds (all VM related stats are now "instant", only the load average is updated every 5 seconds). - Don't make any mention of special treatment for processes that have been active in the last 20 seconds. We don't track that stat. - Rework the description of active virtual memory. Call it mapped virtual memory and explicitly point out it is not the same as the active page queue (which corresponds to "Active" in top(1)), and also hint at the possible bogusness of the value (e.g. if a process maps a single page out of a multiple GB file, the entire file's size is considered mapped). - Simplify a few descriptions that implied their output was a value per interval. All of the "rate" values are per-second rates scaled across the interval. - Update a few comments for 'struct vmtotal' along similar lines. Reported by: mwlucas (indirectly) Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13905
Notes: svn path=/head/; revision=328134
Diffstat (limited to 'sys/sys/vmmeter.h')
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index 33d96b26973b..901604aed808 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -41,7 +41,6 @@
#define MAXSLP 20
-/* Systemwide totals computed every five seconds. */
struct vmtotal {
uint64_t t_vm; /* total virtual memory */
uint64_t t_avm; /* active virtual memory */
@@ -53,12 +52,12 @@ struct vmtotal {
uint64_t t_armshr; /* active shared real memory */
uint64_t t_free; /* free memory pages */
int16_t t_rq; /* length of the run queue */
- int16_t t_dw; /* jobs in ``disk wait'' (neg
+ int16_t t_dw; /* threads in ``disk wait'' (neg
priority) */
- int16_t t_pw; /* jobs in page wait */
- int16_t t_sl; /* jobs sleeping in core */
+ int16_t t_pw; /* threads in page wait */
+ int16_t t_sl; /* threads sleeping in core */
int16_t t_sw; /* swapped out runnable/short
- block jobs */
+ block threads */
uint16_t t_pad[3];