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-22-2010
Stopping as many process as possible?

The other option is to add some swap space either by adding more raw disk space or else using the swapon(1m) command to make a swapfile in a volume with spare space although that is not as quick as real swapfs swap space.
# 3  
Old 03-22-2010
Quote:
Originally Posted by TonyFullerMalv
Stopping as many process as possible?
Which is conceptually similar to rebooting the OS.
Quote:
The other option is to add some swap space either by adding more raw disk space or else using the swapon(1m) command to make a swapfile in a volume with spare space although that is not as quick as real swapfs swap space.
Unlike most if not all Unix/Unix like variants, swapon isn't the Solaris way. Use instead:
Code:
swap -a <file or device>

Anyway, I'm confused as I already replied to that very same question here but it seems these postings have vanished ...

Just found you posted again the very same question in a new thread, this is pointless and unconstructive. Please follow up in the original one:
Releasing the swap space Solaris

Last edited by jlliagre; 03-22-2010 at 08:17 PM..
# 4  
Old 03-22-2010
swapon was a SunOS command, that was quite a while ago!
# 5  
Old 03-22-2010
Double post. Continued here.

Last edited by Scott; 03-22-2010 at 09:10 PM..
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... (6 Replies)
Discussion started by: Paarth
6 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