Releasing the swap space Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Releasing the swap space Solaris
# 1  
Old 03-20-2010
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 checking df -hk , i could see that /tmp space which is also the swap space becomes full . on checking /tmp directory i could see there was nothing in that , thus i realized that this was due toh the long activity of backup done before and the server is not releasing this space .

In order to release this space i rebooted the system and the /tmp space was empty and probelm was fixed .

Can anybody suggest any other way of releasing the /tmp space ?

I am using Solaris 10 .
# 2  
Old 03-20-2010
/tmp being full is likely only a side effect, not the root cause. Either there is a memory leak in your backup software or your swap is undersized.
Are the backup processes finished when the problem occurs ?
# 3  
Old 03-20-2010
Earlier problem only used to occur after the backup was complete .

Currently i am not backing up the server but the /tmp is becoming full and when we are running the many processes on the server it use to throw the error like :

fork not enough space ..

the RAM size of my server is 8Gb and the swap space is 15 GB with this .

I guess it was due to less memory and more processes running at a time however now even i have killed several processes still /tmp space is not getting released to server .
# 4  
Old 03-20-2010
Again, /tmp available space is a side effect, not the root cause.

What you describe is simply a system with not enough virtual memory (aka swap). Just add some swap or identify what processes are allocating that much memory.
# 5  
Old 03-20-2010
Yes you are correct my server memory is not much , also i can t allocate more swap space .

As menioned by you i have already checked the processes which take more memory and have killed them ..

Now the question is even after killing many processes the swap space stilll shows the same , thus it is not getting released by itself . If i will reboot the server it releases this swap space .

Is there any other way to release this swap space then to reboot the server ?

Thanks in advance !!!
# 6  
Old 03-20-2010
Processes using swap space is managed by the kernel. You have to take away the processes that use the space, not the other way around.
If you need the additional swap space and have available disk space, you can create a swap file or files.
# 7  
Old 03-21-2010
Quote:
Originally Posted by Paarth
Yes you are correct my server memory is not much
Not much what ?
Please post "vmstat 2 2", "swap -l", "swap -s" and "prtdiag | grep Memory" output.
Quote:
also i can t allocate more swap space.
Why ? Adding a swap area is quite a simple operation.
Quote:
As menioned by you i have already checked the processes which take more memory and have killed them ..
What processes are these ? Please post ps or prstat output.
Quote:
Now the question is even after killing many processes the swap space stilll shows the same , thus it is not getting released by itself .
Post the commands you use to measure it.
Quote:
If i will reboot the server it releases this swap space .
Obviously, but that's pretty extreme.
Quote:
Is there any other way to release this swap space then to reboot the server ?
Sure, but you have to understand first why do processes exhaust all your virtual memory first. Killing them blindingly is not the right approach.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Swap space in Solaris box

Hello Team, By the way of introduction, I am new member in this forum and proud too :) 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... (3 Replies)
Discussion started by: piyush_28
3 Replies

2. 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

3. AIX

AIX 6.1: Releasing Memory and Page Space

Hi everyone, i have a question about the Memory Management in AIX 6.1. I have - 128 GB RAM and - 70 GB Page Space. The application i am running on this machine is doing some operations in perl. These are done only once a day and uses both memory and paging space. My problem... (1 Reply)
Discussion started by: Haichao
1 Replies

4. 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

5. 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

6. 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

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... (4 Replies)
Discussion started by: Paarth
4 Replies

8. Linux

ext3 file system not releasing space

Hi all i am facing a problem with ext3 file system df -h is showing 19gb is used even if there is not a single file on the mount point /dev/mapper/vg01-archive 55G 19G 33G 36% /archive_log OS == Linux cdrsvr 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007... (1 Reply)
Discussion started by: ajays
1 Replies

9. 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

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