6-Stable: swapinfo has wrong output?

Michael Butler imb at protected-networks.net
Thu Nov 17 08:23:59 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob wrote:
| Hi,
|
| 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?

Yes - I noticed it because the nagios plug-in ceased to give me sensible
numbers - I *always* have 100% swap available ;-)

	Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDfK55iJykeV6HPMURAouiAJwNHf+11/3f4elXIfxi1+ipza9S/QCg/gK8
zMALDxTY9R9MQBDAqI3n9W8=
=ZFnw
-----END PGP SIGNATURE-----


More information about the freebsd-stable mailing list