[Bug 228461] swapinfo(8) is not able to align the columns with longer names of devices

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 12 18:40:22 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228461

Benedict Reuschling <bcr at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |bcr at FreeBSD.org

--- Comment #2 from Benedict Reuschling <bcr at FreeBSD.org> ---
It is definitely valid, especially when you have your swap on zvols and/or GELI
encrypted swap. This easily overflows the space. Another misalignment happens
when you have multiple swap providers, like a swap file or a swap area on each
of many disks like this: 

$ swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/gpt/swap0.eli  16777216       0B      16G     0%
/dev/gpt/swap1.eli  16777216       0B      16G     0%
/dev/gpt/swap2.eli  16777216       0B      16G     0%
/dev/gpt/swap3.eli  16777216       0B      16G     0%
Total            67108864       0B      64G     0%

There is a patch in this PR here that might provide a solution:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223876

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list