Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 1999 09:42:16 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        current@FreeBSD.ORG
Subject:   Re: kvm_getswapinfo is broken
Message-ID:  <19990526094215.A23880@nagual.pp.ru>
In-Reply-To: <83379.927696837@axl.noc.iafrica.com>; from sheldonh@uunet.co.za on Wed, May 26, 1999 at 07:33:57AM %2B0200
References:  <19990526090810.A23737@nagual.pp.ru> <83379.927696837@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, May 26, 1999 at 07:33:57AM +0200, 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?

I have only one swap device.
I got line like this (tested on two -current machines):
> swapinfo
Device      1K-blocks     Used    Avail Capacity  Type
/dev/(null)     82800     6144    76656     7%    Interleaved
I.e. all other parameters here excepting device name are right.

'systat -swap' show the same picture, i.e. "(null" as device name.
Yes I rebuild everything including /var/run/dev.db


-- 
Andrey A. Chernov
http://nagual.pp.ru/~ache/
MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990526094215.A23880>