Wednesday, November 6, 2013

Swap Management

www.unixbabuforum.inHow to increase the swap size for a particular process in solaris??? 



www.unixbabuforum.inThere is no option for that, but you may put that process in to a 
project and allocate virtual memory for that project.


 www.unixbabuforum.in*Adding temporary swap capacity* 

If you don't have a spare partition available, then you can create one or 
more files, which you can temporarily add into the available swap pool. Most 

systems even let you use swap files on NFS mounted filesystems, which can be 

used when you have no local disk space available. 

To use a file for swap space, first create a suitable file. The 
mkfile command is most appropriate here, as it provides a simple way of 
creating 
large files. You specify the filename and filesize on the command line: 

$ mkfile 512m /export/data/swapfile 

You can then add the file as you would a partition: 

$ swap -a /export/data/swapfile 
or 
$ swapon /export/data/swapfile 

Swap files used in this way are *never generally a long-term solution* to 
the problem for swap space. You should configure a dedicated partition for 
swap space as soon as possible. 


www.unixbabuforum.inThere may be some other option like you can set "ulimit" option for the user 
who owned that process. 

Take a look at this link and you ll come to know about virtual memory 
management. 

http://docs.sun.com/app/docs/doc/816-7751/6mdo2so04?l=en&a=view

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM