How much portion of RAM is allocated to Swap space?


 
Thread Tools Search this Thread
Operating Systems Solaris How much portion of RAM is allocated to Swap space?
# 1  
Old 11-19-2009
How much portion of RAM is allocated to Swap space?

How swap is getting 12GB as its size as per the below output:
Code:
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.
# 2  
Old 11-19-2009
looks like you already got your answer here:

General Solaris 10 Discussion - How swap space is getting allocated
frustin
# 3  
Old 11-19-2009
For your reading on swap space in Solaris 10. Its hard to explain in words though and it takes time to absorb how it works. Not to worry, the configuration of swap space was made as to the recommendation. You can physically check the partition table under the format utility.

Installation - Solaris 10 swap space
Informix RESIDENT and Solaris 8 and 10 swap usage - comp.databases.informix | Google Groups

Solaris* uses the concept of virtual swap space, a layer between anonymous memory pages and the physical storage (or disk-backed swap space) that actually back these pages. A system's virtual swap space is equal to the sum of all its physical (disk-backed) swap space plus a portion of the currently available physical memory.
# 4  
Old 11-20-2009
Quote:
Originally Posted by ramnagaraj
My question is how much percentage of real memory is allocated for swap space. Is there any command to find that?
Yes, the following command split out RAM usage:
Code:
echo ::memstat | mdb -k

Everything non kernel is part of "swap", a.k.a. virtual memory.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to sum up the space allocated to filesystems

Hi , I Would like to know the space allocated by adding up all the allocated space to group of filesystems .. example , df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies

2. Red Hat

more swap and ram used in application

Hi All, I have a RAM of around 11 gig and swap of around 18 G in my Linux Server. But at some times , I find that All the RAM and 5 gig of swap is used in server...and i also got some advice from our discussion forums to increase the RAM . But nowadays what happens is the all the RAM... (1 Reply)
Discussion started by: jegaraman
1 Replies

3. Solaris

Out of swap but RAM available

Hi all, The environment we're using is a T5440 running Solaris 10 LDOMs and zones configured within the LDOM. The LDOM has 32Gb of RAM and 32Gb of swap. Last week, we had an issue where the MQ server on zone 3 crashed as it ran out of swap, apparently caused by zone 2 usage. I understand that... (7 Replies)
Discussion started by: JerryHone
7 Replies

4. UNIX for Dummies Questions & Answers

How to find the disk space allocated.

Hello, I need to find the total allocated disk space for the home directory. How can i find that in unix?(in GB). Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies

5. Solaris

Increasing allocated space to a mount - possible?

Hey guys, I am somewhat new to Solaris - and very new when it comes to mounts. My problem is that when I installed Solaris, I allocated way too little diskspace to my / mount (it first became obvious now, however, because of new needs). bash-3.00# df -h Filesystem size ... (25 Replies)
Discussion started by: brightstorm
25 Replies

6. Solaris

Solaris Disk based portion of swap.

Using 'swap -l' I can get the disk based portion of swap. What if the swap (/usr/bin/swap) command isn't available. What are my options then? Could I get this number with kstat? From /etc/vfstab, I can see the partitions that are reserved for swap. /dev/dsk/c0d0s1 using df however not... (3 Replies)
Discussion started by: Devyn
3 Replies

7. Solaris

Can be changeed the allocated space

i am working with solaris 9 and my disk usages are # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 2148263 1902721 202577 91% / /proc 0 0 0 0% /proc mnttab 0 0 0 ... (3 Replies)
Discussion started by: smartgupta
3 Replies

8. UNIX for Dummies Questions & Answers

df+du=Total space allocated(for a file system)

Hi All, Will df+du=Total space allocted for a file system?? Is the above correct. Please correct me If iam wrong. In one my programs the above is not happening. Please help me out. Many thanks. Regards, Manas (2 Replies)
Discussion started by: manas6
2 Replies

9. Solaris

RAM and SWAP confusion

Hi Folks, This is my first post here - so nice to meet u all :-) Recently i was trying to dig a little bit into the memory structure of my machine and due to the lack of concept, cannot figure out a calculation. This is how it goes: 1) My swap slice is at the usual /dev/dsk/c0t1d0s1... (0 Replies)
Discussion started by: s4g3
0 Replies

10. UNIX for Dummies Questions & Answers

Swap space used greater than allocated using top

Hi there, When I run top on my machine it says I have 497M swap space in use, and 380M swap space free, but I have only allocated 512M swap space to the machine!!!! Does anyone know how swap used is calculated in the top command? Thanks... (1 Reply)
Discussion started by: chorgan
1 Replies
Login or Register to Ask a Question