From owner-freebsd-stable@FreeBSD.ORG Thu Nov 17 19:32:43 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A798C16A420 for ; Thu, 17 Nov 2005 19:32:43 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 665A143D46 for ; Thu, 17 Nov 2005 19:32:43 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 31B0E46BC0; Thu, 17 Nov 2005 14:32:42 -0500 (EST) Date: Thu, 17 Nov 2005 19:32:42 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Rob In-Reply-To: <20051117161259.90967.qmail@web36203.mail.mud.yahoo.com> Message-ID: <20051117193152.S1109@fledge.watson.org> References: <20051117161259.90967.qmail@web36203.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Stable Subject: Re: 6-Stable: swapinfo has wrong output? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 19:32:43 -0000 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