LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-21-2002, 09:06 AM   #1
kato678
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?

boot
swap
/


or
boot
/
swap

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

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 09:15 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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, 09:47 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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-21-2002, 11:58 PM   #5
neo77777
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, 12:08 AM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
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.

Cheers,

Finegan
 
  


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 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 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 - Software

All times are GMT -5. The time now is 10:43 AM.

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