6-Stable: swapinfo has wrong output?
Robert Watson
rwatson at FreeBSD.org
Thu Nov 17 11:32:43 PST 2005
On Thu, 17 Nov 2005, Rob wrote:
> I have upgraded to 6-Stable.
> The swapinfo command gives wrong output:
>
> Device 1K-blocks Used Avail Capacity
> /dev/md0 131072 11848 131072 9%
>
> I guess, the math should be:
> "1K-blocks" = "Used" + "Avail"
>
> However, "1K-blocks" = "Avail", irrespective of what is used.
>
> In case of more than one swap device, then the Total line shows the
> right numbers.
>
> Is this a bug?
Very much so. I've committed a fix to HEAD as pstat.c:1.96, which I'll
MFC to 6-STABLE in a few days. Thanks!
Robert N M Watson
More information about the freebsd-stable
mailing list