The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Swap config - Mirror swap or not? BG_JrAdmin SUN Solaris 3 01-06-2008 10:25 PM
swap -l Farbegas SUN Solaris 6 11-16-2007 07:05 AM
/tmp as swap csaunders SUN Solaris 5 06-20-2007 01:27 PM
aix swap jabberwocky AIX 6 02-16-2006 10:17 AM
'make' problems (compliation problems?) xyyz UNIX for Advanced & Expert Users 5 11-05-2001 10:47 PM

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 09-17-2008
cromohawk cromohawk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 48
swap problems...

hi friends,
how do i check swap space in Redhat Enterprise 4?
if the treshold is above 95% how do i reduce it?
  #2 (permalink)  
Old 09-17-2008
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,777
You can view your current swap with:


Code:
swapon -s

You can make more swap with:


Code:
mkswap

You can add the swap you just made with,


Code:
swapon /swap/you/just/made

You can also install more memory.
  #3 (permalink)  
Old 09-17-2008
cromohawk cromohawk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 48
thanks ...anyways i can see the swap usage in percentage other than ;

used memory
------------ X 100 ???
total memory
  #4 (permalink)  
Old 09-17-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
Quote:
Originally Posted by cromohawk View Post
thanks ...anyways i can see the swap usage in percentage other than ;

used memory
------------ X 100 ???
total memory
multiply the amount of used by 100, and divide that for the total swap
  #5 (permalink)  
Old 09-17-2008
cromohawk cromohawk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 48
hi,
any other commands to find the swap usage in percentage?

just want to make myself clear here,i understand that the only ways of reducing an exceeded swap treshold is either to kill some process or extend the swap space.
am i correct??

please advise.thanks...
  #6 (permalink)  
Old 09-17-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
free
top
vmstat

then you use maths to get percentage
  #7 (permalink)  
Old 09-17-2008
cromohawk cromohawk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 48
ok...thanks..guess i will manage...
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:57 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