Bug 27913

Summary: swapinfo/pstat -s does not work.
Product: Base System Reporter: Jim.Pirzyk <Jim.Pirzyk>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Jim.Pirzyk 2001-06-06 22:00:09 UTC
	swapinfo does display any information.    This is true for
	both i386 and alpha platforms.

Fix: 

Not yet found.
How-To-Repeat: 
snoopy# swapinfo
Device          1K-blocks     Used    Avail Capacity  Type
snoopy#
Comment 1 tmoestl 2001-06-06 22:49:12 UTC
On Wed, 2001/06/06 at 13:59:43 -0700, Jim.Pirzyk@disney.com wrote:
> System: FreeBSD snoopy 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Tue Jun 5 10:55:54 PDT 2001 root@snoopy:/auto/roy/dist/pub/FreeBSD/CURRENT/src/sys/compile/UP_WORKSTATION i386
> 
> 	pstat.c 1.57
> 
> >Description:
> 	swapinfo does display any information.    This is true for
> 	both i386 and alpha platforms.
> 
> >How-To-Repeat:
> 
> snoopy# swapinfo
> Device          1K-blocks     Used    Avail Capacity  Type
> snoopy#

The interface for sysctl exports of swap information from the kernel
was changed recently. Are you sure that your kernel and userland
(specifically, libkvm) are in sync? If so, I'd be very interesting in
debugging information, since I am probably guilty of breaking things
then (works for me, though ;).

	- thomas
Comment 2 Thomas Moestl freebsd_committer freebsd_triage 2001-06-19 17:08:11 UTC
State Changed
From-To: open->closed

This was probably the effect of libkvm being out of sync with the 
kernel or of a source update at a bad time. The originator reports 
that it is solved after a rebuild with newer sources.