Date: Thu, 17 Nov 2005 19:32:42 +0000 (GMT) From: Robert Watson <rwatson@FreeBSD.org> To: Rob <spamrefuse@yahoo.com> Cc: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: 6-Stable: swapinfo has wrong output? Message-ID: <20051117193152.S1109@fledge.watson.org> In-Reply-To: <20051117161259.90967.qmail@web36203.mail.mud.yahoo.com> References: <20051117161259.90967.qmail@web36203.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051117193152.S1109>