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, Nov 26, 12:07 PM
Unknown Object (File)
Nov 22 2024, 1:58 PM
Unknown Object (File)
Nov 22 2024, 12:21 PM
Unknown Object (File)
Nov 14 2024, 9:18 AM
Unknown Object (File)
Nov 10 2024, 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
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