vmstat is not aware of field width in RHEL 6
Issue
-
With the growing amount of memory that systems have, some of the reporting tools such as vmstat need to become aware of and adapt to these new bigger numbers.
-
For example:
# vmstat 5 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 1 62 0 97759648 7516 157848576 0 0 0 24 7 4 0 0 100 0 0 0 63 0 97415184 7520 158177408 0 0 0 63204 1356 136 0 2 75 23 0 0 63 0 97071552 7520 158504272 0 0 0 66224 1365 136 0 2 75 23 0 0 63 0 96737176 7520 158822816 0 0 0 64718 1352 125 0 2 75 23 0
-
Note what is being reported in free, buff, cache, bo, in, and the CPU fields. The larger numbers are throwing off the column alignment and making the output harder to read. It should look more like the following:
# vmstat 5 procs ------------memory------------ ---swap--- ----io---- --system-- ------cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 1 62 0 97759648 7516 157848576 0 0 0 24 7 4 0 0 100 0 0 0 63 0 97415184 7520 158177408 0 0 0 63204 1356 136 0 2 75 23 0 0 63 0 97071552 7520 158504272 0 0 0 66224 1365 136 0 2 75 23 0 0 63 0 96737176 7520 158822816 0 0 0 64718 1352 125 0 2 75 23 0
Environment
Red Hat Enteprise Linux 6 Beta1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.