Bug 272438 - vmstat: "in" column overflows its width
Summary: vmstat: "in" column overflows its width
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-09 21:55 UTC by John F. Carr
Modified: 2023-07-12 21:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.