LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2005, 11:51 PM   #1
mushmaster
Member
 
Registered: Aug 2004
Location: USA - PA
Distribution: ubuntu
Posts: 63

Rep: Reputation: 15
swap?


when i partitioned for my linux installation, i set aside almost 2 GB for a swap partition. it's about 3 times as large as the machine's physical RAM (about 640 MB).

i have never seen the swap space used. sometimes it says that a single megabyte of swap is being used, but other than that, it doesn't seem like it ever gets any use.

is there something wrong with this, or is it a good thing? if i'm not using my swap partition, can i get rid of it?
 
Old 02-25-2005, 12:02 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Yeah, I have 700MB of swap which is just what was left over. it's never been used by I've got 1.5GB of RAM so that's not really much of a suprise.I wouldn't be getting rid of it all but you could easily cut that down to tops 512MB if you wanted.
 
Old 02-25-2005, 12:56 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
This is a good thing -- the less your swap partition is used, the better your performance will be, the reason being that access times within RAM are measured in nanoseconds, while access times from the hard drive (aka swap) are measured in milliseconds. That's 6 orders of magnitude. Yipes.

Personally, I'd say that as long as you have a reasonably modern PC (P3 equivalent or better, 256Mg RAM or better) then you're probably safe with a swap of 256Mg, regardless of the amount of RAM you have. In the past, there was a guideline that swap should be twice RAM, but that was in the days where having 64Mg RAM was considered leading edge. These days, RAM limitations are less of an issue, considering that the only time swap would even be called into use at all is when your RAM is pushed past capacity and your system is forced to write memory pages out to disk. If you've only got 32 or 64Mg of RAM that's not terribly hard to do, but if you've got 256Mg or more, it becomes increasingly unlikely.

As DJ P@ckman indicated, you may wish to consider reducing the size of your swap partition, but if your got disk space to burn, it's pretty much a non-issue. -- J.W.
 
Old 02-25-2005, 02:10 PM   #4
mushmaster
Member
 
Registered: Aug 2004
Location: USA - PA
Distribution: ubuntu
Posts: 63

Original Poster
Rep: Reputation: 15
ok... i want to shrink the swap partition and make my main partition bigger in its place. how do i do this without messing things up?
 
Old 02-25-2005, 02:31 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
http://www.gnu.org/software/parted/
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
Swap os2 Linux - General 1 03-18-2005 08:21 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM
Swap punker22 Linux - Newbie 3 10-14-2003 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration