Page MenuHomeFreeBSD

Fix vmstat(8) output
ClosedPublic

Authored by trasz on Oct 29 2019, 10:49 PM.
Tags
None
Referenced Files
F103243612: D22185.id63771.diff
Fri, Nov 22, 1:58 PM
F103235997: D22185.diff
Fri, Nov 22, 12:21 PM
Unknown Object (File)
Thu, Nov 14, 9:18 AM
Unknown Object (File)
Sun, Nov 10, 7:53 AM
Unknown Object (File)
Sep 24 2024, 5:26 PM
Unknown Object (File)
Sep 24 2024, 5:26 PM
Unknown Object (File)
Sep 24 2024, 5:26 PM
Unknown Object (File)
Sep 23 2024, 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fix layout for one disk setups.

trasz added a reviewer: allanjude.
usr.bin/vmstat/vmstat.c
796 ↗(On Diff #63791)

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

845 ↗(On Diff #63791)

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

usr.bin/vmstat/vmstat.c
796 ↗(On Diff #63791)

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

845 ↗(On Diff #63791)

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