Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-21-2002, 10:06 AM   #1
LQ Newbie
Registered: Feb 2002
Location: New Hampshire
Distribution: redhat 7.2
Posts: 24

Rep: Reputation: 15
Unhappy How much swap?, and .....

Hi . Im new to Linux and am installing it to 5gigs of my 30gig HDD.
win98 on 1st partition and Redhat 7.2 on second. My question is
basically how much swap should I have? A webtutorial said minumum of "twice" your available RAM. Well I have 512MB. Do I have to waste over a GIG on swapspace?

Also what order Do I put the partitions?



thnks alot
Old 02-21-2002, 10:14 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
the thing with twice-your-ram is an archaic rule of thumb goingn back to when you either had kids or bought some new ram... personally, i'd say you'd never need more than 100mb, but playing it safe, say about 200, and you'll not get near filling it all ever. as to the order, it's farily irrelevant, may as well stick the swap at the end of the drive tho.
Old 02-21-2002, 10:15 AM   #3
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
It shouldn't matter which order you put your partitions, but Windows normally prefers to be the 1st on the harddisk. As for swap, it seems that these tutorials were based on a time when 16Mb was a good amount of RAM. There is a thread somewhere around here (fairly recently) on how much SWAP is needed, but most peeps seem to be fairly happy with an equal amount of SWAP to their RAM (so in your case, this would be 512). Personally, I have chosen to have my SWAP=2xRAM (which, funnily enough, gives me 512Mb as well), but I don't have space constraints.
Old 02-21-2002, 10:47 AM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
to tell you the truth.. i always put my /boot first followed by the swap.. then all the rest in no particular order... that way if i do use my 100 meg swap, its at the beginning of the drive for faster access that the human eye wouldn't be able to detect the performance anyways.. hope that helps..
Old 02-22-2002, 12:58 AM   #5
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You can get away without swap at all if you plan to use you llinux box for use at home, nothing fancy like movie editing, and running tons of GUI apps at the same time.
Old 02-22-2002, 01:08 AM   #6
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 59
I remember that the last time this came up, Dave Phillips (on of the mods), did a stress test at home to see if the 2/1 rule held true. He oppened enough photos in gimp, StarOffice, and other RAM pig apps to get RedHat to barf twice and choke out. I think he was running with something like 256Mb of swap on 512 RAM. If I remember right he repeated the same experiment on Slack and the X-server just choked and died.

I get by with 512Ram and something like 300Mb of swap and haven't noticed a problem; with RedHat, Slackware, LFS (hehe its fast!) and Mandrake.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
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 01:57 PM
Swap os2 Linux - General 1 03-18-2005 09:21 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM
Swap punker22 Linux - Newbie 3 10-14-2003 01:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 AM.

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