Swap space in Solaris box


 
Thread Tools Search this Thread
Operating Systems Solaris Swap space in Solaris box
# 1  
Old 10-11-2012
Swap space in Solaris box

Hello Team,

By the way of introduction, I am new member in this forum and proud too Smilie

Here is my questions:

In one of our Solaris Sparc v9 box, we are facing issues related to swap space. Our custom applications are using swap space even though physical memory is available.

From some of the forums what I read I understand, that in case of swap space Solaris behaves differently in comparison to other *NIX versions, like other OS tries to save/reserve swap space for future use and would be used only when physical memory is about to full or got full, whereas Solaris starts using the virtual memory (swap space) even though physical memory is not full.

My request you to please confirm if this understanding is correct, if yes are their any recommendations around this?

Thank you for your help

Rrgards
Piyush
# 2  
Old 10-11-2012
Your understanding is partially incorrect unless you confuse usage and reservation, and/or confuse virtual memory and swap area.

Solaris doesn't use (i.e. doesn't paginate from/to) the swap area if enough free RAM is available for all used memory to fit in it.

However, unlike Linux which overcommits memory, Solaris requires memory allocation to be backed by either free RAM or free swap area space.
# 3  
Old 10-11-2012
Thank you for replying.

So from the last statement, I understand that the memory allocation can be done wither on free RAM or on free swap space available.Please correct me if I have understood it wrong.

Because as I said in the problem statement, our application is eating up swap space though free RAM is available. In general memory usage is only 30-35%.

Thanks
Piyush
# 4  
Old 10-11-2012
You can have free but unusable RAM if your swap area is too small.

Please provide some concrete numbers to understand better the issue, if any.

Code:
swap -l
swap -s
echo ::memstat | mdb -k
vmstat 2 2
prstat -Z

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

2. Solaris

Swap issue on a Solaris10 box

One of our system is running 3 oracle db instances. And as per prstat o/p the system is approximately using 78G of swap memory # prstat -J -n 2,15 PROJID NPROC SWAP RSS MEMORY TIME CPU PROJECT 4038 557 31G 29G 22% 113:23:43 10% proj1 4036 466 20G 19G... (2 Replies)
Discussion started by: fugitive
2 Replies

3. Shell Programming and Scripting

calculate swap space usage in Solaris and converts it in Percentage

Hi Folks, I am looking for a way to write a script to calculate swap usage in Solaris so that the current usage will be shown in Percentage value. Thanks!! Based on 'swap -s' command # swap -s total: 1378936k bytes allocated + 1236880k reserved = 2615816k used, 2725104k available (2 Replies)
Discussion started by: jaapar
2 Replies

4. UNIX for Dummies Questions & Answers

Without using top, how to get swap space of a "subzone" on Solaris 5.10

Hi all, OS = Solaris 5.10 Without using top, can anyone please advise how to get the current swap space that is assigned to a sub-zone that is part of the Solaris zone? Some of the servers does not have the top command and I do not have access to run zone level commands either like zonecfg... (3 Replies)
Discussion started by: newbie_01
3 Replies

5. Solaris

Solaris 10 SWAP SPACE

We have a SPARC system which is running on Solaris-9 and Physical memory size is 16GB.We have allocated 32GB SWAP space(2 times of physical memory).But when we use df -h command it shows following output and SWAP space size shows more than our allocated space # df -h Filesystem size used... (2 Replies)
Discussion started by: cyberdemon
2 Replies

6. Solaris

Releasing the swap space Solaris

Hi Guys ! I have found this problem many times that the swap space (/tmp space more precisely )of my Server becomes full specially when i run a complete back up of the server . once the /tmp space is full I am not able to run simple commands as i get error like : fork no space on... (4 Replies)
Discussion started by: Paarth
4 Replies

7. Solaris

Releasing the swap space Solaris

Hi Guys ! I have found this problem many times that the swap space (/tmp space more precisely )of my Server becomes full specially when i run a complete back up of the server . once the /tmp space is full I am not able to run simple commands as i get error like : fork no space on... (6 Replies)
Discussion started by: Paarth
6 Replies

8. UNIX for Advanced & Expert Users

allocating swap space on solaris 9

Hi, I have a solaris 9-sparc box, which after bouncing is giving swap space related error messages(that swap space is not enough). could it be possible that there was some command issued or setting made before bouncing, which was lost after bouncing? please let me know how i can add swap space... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

9. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

10. UNIX for Dummies Questions & Answers

creating swap space under Solaris 2.6

I just finished installing Solaris 2.6 and several applications just to realize that I made a bonehead mistake during the install. When setting up the filesystems, I entered /tmp and no swap! Is it possible to permanantly declare the entire /tmp partition as swap? I am guessing an entry in the... (4 Replies)
Discussion started by: 98_1LE
4 Replies
Login or Register to Ask a Question