From 463ed0049c537da3a66aed70a7daa3c03b306d15 Mon Sep 17 00:00:00 2001 From: Robert Bowmaker Date: Sat, 23 Jun 2018 08:07:47 +0000 Subject: [PATCH] Fix error in vmstat documentation. Inspection of vmstat.c and experimentation with the binary itself both confirm that the units of the swap (si/so) fields are controlled by the --unit option. References: procps-ng/procps!69 procps-ng/procps#100 Signed-off-by: Craig Small --- vmstat.8 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vmstat.8 b/vmstat.8 index 420d9f39..a4f180c0 100644 --- a/vmstat.8 +++ b/vmstat.8 @@ -71,8 +71,8 @@ Switches outputs between 1000 .RI ( m ), or 1048576 .RI ( M ) -bytes. Note this does not change the swap (si/so) or block (bi/bo) -fields. +bytes. Note this does not change the block (bi/bo) fields, which are always +measured in blocks. .TP \fB\-t\fR, \fB\-\-timestamp\fR Append timestamp to each line @@ -98,6 +98,7 @@ b: The number of processes in uninterruptible sleep. .PP .SS .B "Memory" +These are affected by the \-\-unit option. .nf swpd: the amount of virtual memory used. free: the amount of idle memory. @@ -109,6 +110,7 @@ active: the amount of active memory. (\-a option) .PP .SS .B "Swap" +These are affected by the \-\-unit option. .nf si: Amount of memory swapped in from disk (/s). so: Amount of memory swapped to disk (/s).