Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Swap space on Solaris

Posted on 1998-07-22
3
Medium Priority
?
404 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 40 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.
Suggested Courses

810 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