Bug 272438

Summary: vmstat: "in" column overflows its width
Product: Base System Reporter: John F. Carr <jfc>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221290
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256542

Description John F. Carr 2023-07-09 21:55:39 UTC
The "in" column of vmstat output is not made to fit within its 4 character width.

# vmstat 1
 procs    memory    page                      disks     faults       cpu
 r  b  w  avm  fre  flt  re  pi  po   fr   sr ad0 da0   in   sy   cs us sy id
 1  0  1 523M 233M 7.7K   9   6   1 8.4K  530   0   0 4214 6.4K 3.0K 52  9 39
 2  0  1 523M 233M    0   0   0   0    0    5   0 115 16441  32K  24K 23 42 35
 2  0  1 523M 233M    0   0   0   0    0    5   0  27 9921  24K  13K 21 54 25
 2  0  1 523M 233M    0   0   0   0    0    5   0 139 17027  25K  24K 23 45 32
 2  0  1 523M 233M    0   0   0   0    0    5   0  31 11108  26K  15K 18 55 27

The five digit numbers should be reduced with K suffixes, 16441 -> 16K, 17027 -> 17K, 11108 -> 11K.