The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swap space manoj.solaris Linux 1 08-22-2007 07:11 AM
Swap space used??? Lestat UNIX for Dummies Questions & Answers 1 02-17-2005 11:51 AM
swap space / paging space aaronh AIX 2 05-19-2004 11:06 AM
pageing space vs swap space VeroL UNIX for Dummies Questions & Answers 1 01-22-2004 11:54 AM
SWAP SPACE SmartJuniorUnix UNIX for Dummies Questions & Answers 5 11-13-2000 12:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-11-2004
TRUEST TRUEST is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 144
Swap space is LOW

I checked the server and issued various command to investigated. but from teh output of swap -s and swap -l,

i received the following


swap -l

swapfile dev swaplo blocks free
/dev/vx/dsk/swapvol 197,7 16 4194800 4127696
/dev/vx/dsk/swap2 197,8 16 12582896 12517072
/dev/vx/dsk/appdg/swap4 197,115021 16 8388592 8323856


swap -s

total: 2202456k bytes allocated + 13441848k reserved = 15644304k used, 25064k available


i mean, how do i know what the threshold is for the swap space. and also, i tried to create a swap file in the /tmp directory which had quite a lot of space but the mkfile command returned an error saying "not enough space left on device".

from the top command, the top command says theres about 12G of swap space free.

what can i do??
  #2 (permalink)  
Old 02-12-2004
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
adding swap in solaris

first of all.... what OS are you using??
based on the in and outputs it looks like solaris... so what can you do:
if you make a file in /tmp it makes no sense because in solaris /tmp is a tmpfs so you make the swap in swap like a loop..
choose a partition where you've got enough space
root@sun # df -k
now create a file with the needed size:
root@sun # mkfile 500m swapfile.1
now add this file to the swap
root@sun # swap -a /bla/swapfile.1
have a look how it works:
root@sun # swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 118,1 16 4194800 4194800
/opt/swapfile - 16 1023984 1023984

This addition is temporary until the next reboot. swap -d <file> unconfigures the additional swap space

now let's add it permanently:
insert this line into your /etc/vfstab
/bla/swapfile.1 - - swap - no -

that's all.....
greetings Preßy
  #3 (permalink)  
Old 02-12-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,126
We really need to know exactly was OS you're using. And the total physical memory.

If you're using SunOS, do a "dk -k /tmp". You will probably find that it is mounted on swap. You can't create a swap area on swap like that.

top is confused because it does not understand your OS's concept of reserved. Think like this:
free swap = available swap + reserved swap
and I think that the numbers will make sense for you.

If that available swap hits zero, you will be in trouble. And it looks rather close.
  #4 (permalink)  
Old 02-12-2004
TRUEST TRUEST is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 144
Quote:
Originally posted by Perderabo
We really need to know exactly was OS you're using. And the total physical memory.

If you're using SunOS, do a "dk -k /tmp". You will probably find that it is mounted on swap. You can't create a swap area on swap like that.

top is confused because it does not understand your OS's concept of reserved. Think like this:
free swap = available swap + reserved swap
and I think that the numbers will make sense for you.

If that available swap hits zero, you will be in trouble. And it looks rather close.

The operating system am using is SunOS 5.8

After the server did its scheduled daily reboot, swap space was back to normal and there weren't any more alerts.

nonetheless, i'm glad you guys explained to me not to create swap in a swap (tmp)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0