How swap is getting 12GB as its size as per the below output: Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 7.9G 2.1G 5.7G 27% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 12G 1.2M 12G 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object sharefs 0K 0K 0K 0% /etc/dfs/sharetab /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 7.9G 2.1G 5.7G 27% /platform/sun4u-us3/lib/libc_psr.so.1 /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 7.9G 2.1G 5.7G 27% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 fd 0K 0K 0K 0% /dev/fd /dev/md/dsk/d3 7.9G 386M 7.4G 5% /var swap 512M 216K 512M 1% /tmp swap 12G 40K 12G 1% /var/run /dev/md/dsk/d6 30G 766M 29G 3% /u02 /dev/md/dsk/d2 9.9G 92M 9.7G 1% /u01 /dev/md/dsk/d7 12G 3.8G 7.9G 33% /u03 /dev/md/dsk/d8 30G 1.1G 28G 4% /u04 /dev/md/dsk/d40 290G 2.0G 285G 1% /appdata /dev/md/dsk/d4 12G 1.4G 10G 13% /opt/ems /dev/dsk/c1t0d0s7 7.9G 1.5G 6.3G 20% /export/home /dev/lofi/1 1.8G 1.8G 0K 100% /cdrom
ems15:~# swap -l swapfile dev swaplo blocks free /dev/dsk/c1t0d0s1 32,1 16 16790384 16790384 ems15:~# swap -s total: 1861848k bytes allocated 421304k reserved = 2283152k used, 12779832k available ems15:~# prtconf -v | grep -i mem Memory size: 8192 Megabytes Queries: ? How swap size is populating it as ?12GB?. ? If we see the swap ?s output, total swap space is (2283152k used 12779832k available = 14.37 GB). Theoretically we know that swap space is sum of hard disk allocated for swap space during partition and few portion of real memory i.e. RAM. If that is the scenario, in the above system we are having 8GB real memory. My question is how much percentage of real memory is allocated for swap space. Is there any command to find that? Why swap is not showing this 14.37 GB as its size in df ?h output rather its showing 12GB. Rgrds, Ram. -- This message posted from opensolaris.org
