Page MenuHomeFreeBSD

Fix vmstat(8) output
ClosedPublic

Authored by trasz on Oct 29 2019, 10:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 14, 12:28 PM
Unknown Object (File)
Nov 23 2023, 11:06 PM
Unknown Object (File)
Nov 11 2023, 3:42 PM
Unknown Object (File)
Nov 11 2023, 2:38 PM
Unknown Object (File)
Nov 11 2023, 9:44 AM
Unknown Object (File)
Nov 9 2023, 2:28 AM
Unknown Object (File)
Oct 10 2023, 10:12 PM
Unknown Object (File)
Oct 10 2023, 2:42 PM
Subscribers

Details

Summary

Humanize more columns in the vmstat(8) output and adjust widths. The few that are not humanized are usually 0. This makes the output mostly aligned.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27268
Build 25532: arc lint + arc unit

Event Timeline

Fix layout for one disk setups.

trasz added a reviewer: allanjude.
usr.bin/vmstat/vmstat.c
796

Don't we need the space here, between the two values?

845–860

Why did you decide not to humanize the # of interrupts?

usr.bin/vmstat/vmstat.c
796

No, prthuman() seems to insert whitespace by itself.

845–860

There's no room to extend it from 4 to 5 chars. Same with pi, po, and disk iops :-( I skipped those that seem mostly under four characters wide in (my) typical workloads.

This revision is now accepted and ready to land.Nov 7 2019, 4:53 PM