Solved

Swap space on Solaris

Posted on 1998-07-22
3
392 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 …
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now