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? Rob. __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
-----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-----
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