Solved

Swap space on Solaris

Posted on 1998-07-22
3
394 Views
Last Modified: 2013-12-27
Hi..
We are continoudly getting messages on the console that our systems is running low on space..
The config. of our system is :
Machine hardware:   sun4u
OS version:         5.5
Processor type:     sparc
Hardware:           SUNW,Ultra-1

i triied giving swap -s  and got the following results :

total: 142392k bytes allocated + 57544k reserved = 199936k used, 21704k available

swap - l gives the following resuly :
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   32,1      16 262944  24592

Could somebody suggest as to how do we manage swap space on a UNIX system...Is it allocated  at the time of system setup and would always remain the same no matter what is the amount of data available on the hard disk...

Does the swap space get re-initialized after system reboot -- and not doing system reboot occassionally causes the swap space to go full...



0
Comment
Question by:sanjaychopra
3 Comments
 
LVL 2

Accepted Solution

by:
seedy earned 20 total points
ID: 2009135
> We are continoudly getting messages on the console that our systems is running low on space.
Guess you mean swap space, right?

Swap space is like an extention of your computer's physical memory, not on a chip but on a disk.  The OS uses the swap space when it runs out of physical memory.

Normally, you decide on the swap space when you install the os. You would decide on the swap size depending on various factors, like the applications(databases, etc) you likely to run,  number of users, etc.  Another important input to decide the swap size is the physical memory size.  Sun documentation like (Solaris 2.5.1 Hardware)Installation Notes describe this process.

Solaris supports two kinds of swap files. Raw device swap or regular file.   You can add aditional swap files if you wish at any point in time.  You can also add the swap file entries to /etc/vfstab to add the swap areas every time the machine boots.

Read swap man pages for more info.

Yes, the swap space is re-initialized every time the system is booted.  
0
 

Expert Comment

by:obkb
ID: 2009136
Please post the actual message seen on the console. A very common message would be that a particular filesystem is out of space especially if it's where your log files are kept and you don't have a person or program checking those files and truncating them periodically.
0
 

Author Comment

by:sanjaychopra
ID: 2009137
we have been able to resolve the problem..thanks for all ur help...
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Shell script errors 10 133
change HISTFILE for root user on AIX 3 79
How can i set a Environment Variable in my Unix script ? 3 68
add some character at the end of line in vi 7 79
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question