Page MenuHomeFreeBSD

Fix vmstat(8) output
ClosedPublic

Authored by trasz on Oct 29 2019, 10:49 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Oct 10 2023, 1:38 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