Date: Thu, 10 Jun 2021 21:13:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256542] vmstat -z output columns are not aligned Message-ID: <bug-256542-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256542 Bug ID: 256542 Summary: vmstat -z output columns are not aligned Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ghuckriede@blackberry.com Created attachment 225717 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D225717&action= =3Dedit Potential Fix vmstat -z currently has: - a missing space in the column header between SIZE and LIMIT - a missing space in the column header between FAIL and SLEEP - inconsistent column spacing between header and values for REQ, FAIL, SLEE= P, and XDOMAIN columns The included diff uses the following column sizes: - REQ is 8 bytes (could also be 4 bytes if libxo doesn't mind having values sized differently than 'requests' field name) - SLEEP is 5 bytes (to fit column name) - XDOMAIN is 7 bytes (to fit column name) N.B. Could also make SLEEP and XDOMAIN column sizes be 6 and 8, but then the default length would exceed 80 characters. Current output: # vmstat -z ITEM SIZE LIMIT USED FREE REQ FAILSLEEP XDOMAIN <SNIP> mbuf_packet: 256, 0, 0, 0, 0, 0, 0, = 0 mbuf: 256, 4946937, 1, 14, 1, 0, 0, = 0 mbuf_cluster: 2048, 772959, 0, 0, 0, 0, 0, = 0 mbuf_jumbo_page: 4096, 386479, 0, 0, 0, 0, 0, = 0 mbuf_jumbo_9k: 9216, 114512, 0, 0, 0, 0, 0, = 0 mbuf_jumbo_16k: 16384, 64413, 0, 0, 0, 0, 0, = 0 <SNIP> Output with diff applied: # vmstat -z ITEM SIZE LIMIT USED FREE REQ FAIL SLEEP XDOMAIN <SNIP> mbuf_packet: 256, 0, 0, 0, 0, 0, 0,= =20=20=20=20=20 0 mbuf: 256,4946937, 1, 14, 1, 0, 0,= =20=20=20=20=20 0 mbuf_cluster: 2048,772959, 0, 0, 0, 0, 0,= =20=20=20=20=20 0 mbuf_jumbo_page: 4096,386479, 0, 0, 0, 0, 0,= =20=20=20=20=20 0 mbuf_jumbo_9k: 9216,114512, 0, 0, 0, 0, 0,= =20=20=20=20=20 0 mbuf_jumbo_16k: 16384, 64413, 0, 0, 0, 0, 0,= =20=20=20=20=20 0 <SNIP> --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256542-227>