SUMMARY: How to check swap space?

From: JFYEH (JFYEH@tsmc.com.tw)
Date: Fri Mar 03 2000 - 00:16:49 CST


Hi Managers,

     Sorry for late summary. Thanks for the quick replies from Authur Darren Dunham, Yizhong Zhou, Michael Stapleton, Aajix, Casper
Dik and Ray.

The answer is:

     Just forget "df -k".
     "swap -l" show the swap space on disk.
     "swap -s" show the combination of non-reserved physical memory and swap space on disk.

     So our system has 17.93 GB swap space on disk, and 6.49GB (24.42-17.93 ) non-reserved physical memory. (Our system actually has
8GB physical memory).

My original question is :

     I want to check the size of swap space. But got different results with different commands. Could any one help me to read these
data? My system is E4500 with Solaris 7.

     (1) Use "df" command, I got 20.28GB in the row of swap.
> df -k
          Filesystem kbytes used avail capacity Mounted on
          /proc 0 0 0 0% /proc
          /dev/dsk/c0t10d0s0 482023 68209 365612 16% /
          /dev/dsk/c0t10d0s6 1015679 677987 276752 72% /usr
          fd 0 0 0 0% /dev/fd
          /dev/dsk/c0t10d0s5 1015679 54496 900243 6% /opt
          /dev/dsk/c0t11d0s2 4124422 1818345 2264833 45% /ap
          /dev/dsk/c1t5d0s2 121640139 100951854 14606279 88% /opc
          /dev/dsk/c1t5d1s2 52128848 38102852 13504708 74% /opc2
          swap 21262600 1480 21261120 1% /tmp

     (2) Use "swap -s" command, I got "24.42GB" by add used sapce (4.14GB) to available space (20.28GB).

> /usr/sbin/swap -s
          total: 4332568k bytes allocated + 7056k reserved = 4339624k used, 21263120k available

     (3) Use "swap -l" command, I got "17.93GB" by totaling the 4 swapfiles' filesize.

> /usr/sbin/swap -l
          swapfile dev swaplo blocks free
          /dev/dsk/c0t0d0s1 32,1 16 17684112 15397744
          /dev/dsk/c0t10d0s1 32,73 16 3160064 1476496
          /dev/dsk/c0t12d0s1 32,89 16 8380784 6288944
          /dev/dsk/c0t13d0s1 32,97 16 8380784 6283856

     (4) Use "format" command to check the real disk space, I got "17.94GB".

     I am really confused with these results. Could anyone tell me the meaning of every numeral?

regards,

JFYeh



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:04 CDT