[SunHELP] swap not seen...

Leslie V Brigance brigance at us.ibm.com
Mon Feb 4 09:47:40 CST 2002


This is from a 4000 running 5.8:

[devenv(root)]/etc>#

grep swap /etc/vfstab
/dev/dsk/c0t0d0s3       -       -       swap    -       no      -
swap    -       /tmp    tmpfs   -       yes     -

swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s3   32,3      16 1025984 1023952

swap -s

total: 724864k bytes allocated + 333664k reserved = 1058528k used, 2388912k
available


looks like your supposition is correct - swap space is not configured
correctly.

swap -g

/tmp               (swap              ):         8192 block size
8192 frag size
 5511936 total blocks    4815056 free blocks  4815056 available
360614 total files
  351259 free files            2 filesys id  /tmp
   tmpfs fstype       0x00000004 flag             255 filename length

HTH

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
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list