The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 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
About swap Ty3 UNIX for Dummies Questions & Answers 1 01-06-2006 10:31 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 04-03-2002
macdonto macdonto is offline
Registered User
  
 

Join Date: Jul 2001
Location: Corvallis
Posts: 61
Swap

When i re-updated my system i set my swap at 500 MB. I have 256 in ram and have never even gone into the 250 mb of swap that i had originally configured. How do I reduce the swap?
  #2 (permalink)  
Old 04-03-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
What OS are you running, that is very important to the answer.

Is this just UNIX box for personal use? Do you need that 250MB back for something else?

Depending on what OS you are running, you can remove swap by editing the /etc/fstab file. I would just comment it out and leave it there if you change you mind in the future. If this new swap area is separate from the orginal 250MB and then reboot.

If not, like in HPUX, there should be an Admin tool that will allow you to manage the swap and reduce or add it. Some systems you must go into single user mode to alter swap and then reboot.

No matter what you do it will require you to reboot when you are done.

Although it is only recommended, most major UNIXs like HP, AIX, Compaq recommend strongly that you have double your memory in swap. This is including root swap and secondary swap.
  #3 (permalink)  
Old 04-04-2002
macdonto macdonto is offline
Registered User
  
 

Join Date: Jul 2001
Location: Corvallis
Posts: 61
RH 7.2

I went to to fstab and removed one of the 2 swap entries, but it did not reclaim the once used MB.
  #4 (permalink)  
Old 04-04-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Redhat (and other linux variants) use a seperate swap partition. You'd have to fdisk those partitions as linux native, then mke2fs the partition.
Unless your disk is really small, however, it'd be safer, less of a pain, and probably a good idea to just keep the swap there, and keep using it (even if you rarely do).
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:55 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