Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Swap space on Solaris

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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 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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

837 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