pstat / swapinfo prints wrong output

David Rhodus drhodus at catpa.com
Fri Jan 2 11:20:14 PST 2004


Thats a little odd as I'm not seeing that on any of my machines
with various different source dates...
-DR

client-196# swapinfo
Device          1K-blocks     Used    Avail Capacity  Type
/dev/ad0s1b       3145600        0  3145600     0%    Interleaved
client-196# uname -a
DragonFly client-196.catpa.lex 1.0-CURRENT DragonFly 1.0-CURRENT #589: 
Wed Dec 31 11:00:08 EST 2003     
drhodus at xxxxxxxxxxxxxxxxxxxx:/usr/src/sys/compile/GENERIC  i386
client-196#

opteron# swapinfo
Device          1K-blocks     Used    Avail Capacity  Type
/dev/ad0s1b       1032520      112  1032408     0%    Interleaved
opteron# uname -a
DragonFly opteron.box.mil 1.0-CURRENT DragonFly 1.0-CURRENT #216: Tue 
Dec 30 22:19:23 EST 2003     
root at xxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/GENERIC  i386
opteron#

machdep# swapinfo
Device          1K-blocks     Used    Avail Capacity  Type
/dev/twed1s1b     4194176    13308  4180868     0%    Interleaved
machdep# uname -a
DragonFly machdep.com 1.0-CURRENT DragonFly 1.0-CURRENT #5: Tue Nov 25 
16:15:26 EST 2003     root at xxxxxxxxxxx:/usr/src/sys/compile/GENERIC  
i386
machdep#

On Jan 2, 2004, at 2:07 PM, Eirik Nygaard wrote:

[eirik at dfbsd sys]$ swapinfo
Device          1K-blocks     Used    Avail Capacity  Type
/dev/rad0s4b       307072        0   307072     0%    Interleaved
     ^
   Where does this 'r' come from?
[eirik at dfbsd sys]$ cat /etc/fstab| grep swap
/dev/ad0s4b             none            swap    sw              0      
 0

I also added some small debugging to src/sys/vm/vm_swap.c:swapon(...) 
and
it printed /dev/ad0s4b as the device that is used as the swapon device.

--
Eirik Nygaard
eirikn at xxxxxxxxxxxx






More information about the Bugs mailing list