Solved

Swap space on Solaris

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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 …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 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

20 Experts available now in Live!

Get 1:1 Help Now