[SunHELP] swap not seen...

TAG DBA dbatag at tatainfotech.com
Mon Feb 4 02:39:50 CST 2002


I was asked to look at the performance of a E250 serving as a database
server. The machine has 3 disks of 18 GB each. A 4 GB slice seems to
be used for swap. However swap -l does not show this physical disk swap.
Here is what I get when I run some commands :

# uname -a
SunOS agni 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-250
# swap -s
total: 61440k bytes allocated + 6552k reserved = 67992k used, 116648k available
# swap -l
No swap devices configured


# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/proc                      0       0       0     0%    /proc
/dev/dsk/c0t0d0s0    5043518 1223986 3769097    25%    /
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t0d0s3    8335201       9 8251840     1%    /backups
/dev/dsk/c0t0d0s1    4032142       9 3991812     1%    /swap
swap                  114888     288  114600     1%    /tmp
....
.... (output lines not shown)
....


# df -g
...
...
/swap              (/dev/dsk/c0t0d0s1 ):         8192 block size          1024 frag size
 8064284 total blocks    8064266 free blocks  7983624 available         490432 total files
  490428 free files      8388609 filesys id
     ufs fstype       0x00000004 flag             255 filename length

/tmp               (swap              ):         8192 block size          8192 frag size
  228992 total blocks     228416 free blocks   228416 available          26607 total files
   26589 free files            1 filesys id  /tmp
   tmpfs fstype       0x00000004 flag             255 filename length
...
...

#  cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s3       /dev/rdsk/c0t0d0s3      /backups        ufs     2       yes     -
/dev/dsk/c0t0d0s1       /dev/rdsk/c0t0d0s1      /swap   ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -
...
...
...

I dont know whats wrong - maybe the swap space (on disk ) has not been configured 
correctly. Could someone help me out ?
Thanks and Regards,
~aslam



More information about the SunHELP mailing list