Page MenuHomeFreeBSD

systat: Adjust column width for sleeping processes
Needs ReviewPublic

Authored by se on Sep 30 2020, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 2 2024, 12:23 AM
Unknown Object (File)
Jan 1 2024, 5:07 PM
Unknown Object (File)
Dec 26 2023, 4:47 PM
Unknown Object (File)
Dec 20 2023, 6:14 AM
Unknown Object (File)
Dec 19 2023, 5:38 PM
Unknown Object (File)
Nov 9 2023, 8:41 PM
Unknown Object (File)
Nov 2 2023, 12:28 PM
Unknown Object (File)
Sep 30 2023, 7:08 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

systat -vm does not show useful data on a system with more than 1000 sleeping threads.
On my system it showed "1," for a value of 1180 threads (might also be a problem in humanize numbers, but "1,k" or "1k" are also not very informative).

Widening the field width for "s" from 3 to 4 characters allows to display values of up to 9999.
There is enough free space to the right of these values to allow shifting them one place to the right.

Other fields in this row are unlikely to have values > 999 and thus can stay at a width of 3 characters.

Test Plan

Build systat with the attached patch.
Verify "systat -vm" output on a system with more than 1000 sleeping threads.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 33906