From owner-freebsd-current Tue May 25 22:39: 0 1999 Delivered-To: freebsd-current@freebsd.org Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (Postfix) with ESMTP id B786D15224 for ; Tue, 25 May 1999 22:38:56 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.3/8.8.5) id XAA08124; Tue, 25 May 1999 23:38:38 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199905260538.XAA08124@panzer.plutotech.com> Subject: Re: kvm_getswapinfo is broken In-Reply-To: <83379.927696837@axl.noc.iafrica.com> from Sheldon Hearn at "May 26, 1999 07:33:57 am" To: sheldonh@uunet.co.za (Sheldon Hearn) Date: Tue, 25 May 1999 23:38:38 -0600 (MDT) Cc: ache@nagual.pp.ru (Andrey A. Chernov), current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn wrote... > > > On Wed, 26 May 1999 09:08:11 +0400, "Andrey A. Chernov" wrote: > > > Just check 'swapinfo' in recent -current, it shows "/dev/(null)" as swap > > device, it means that devinfo() call in kvm_getswapinfo() returns NULL, > > i.e. called with wrong argument which is swinfo.sw_dev > > Are you sure it isn't simply because kvm_getswapinfo is being asked for > totals, and not per-device stats? i.e: Are you getting /dev/(null) for > multiple swap devices? {panzer:/usr/home/ken:2:0} pstat -s Device 1K-blocks Used Avail Capacity Type /dev/(null) 327552 0 327552 0% Interleaved /dev/(null) 393088 0 393088 0% Interleaved Total 720640 0 720640 0% That's with -current as of Friday. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message