LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-31-2005, 12:19 PM   #1
davesbedroom
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
2 GB of ram, do I need a swap partition?


I am rolling with RAID 0 + 1 and 2 GB of ecc ram.

Do I need a swap partition? Isn't it just for people that can't afford 2GB of ram?
 
Old 03-31-2005, 12:28 PM   #2
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
No technically you don't need a swap partition but if you system ever get close to using 2GB or ram bad things will happen. I believe the 2.4 kernel memory system will drop the most memory intensive app, which could be anything... your kernel... crash.

The 2.6 kernel has an option that you can include to tell it what to kill.

Although if you never approach more than 2GB of ram then no you don't need a swap and even if you had one it would never be used.

But since you are rich and can afford 2GB or ram, I bet you have two 200 GB hard drives so what is a gig or two of swap going to hurt? lol.
 
Old 03-31-2005, 12:43 PM   #3
iscurrah
Member
 
Registered: Jan 2005
Location: Szeged, Hungary
Distribution: Slackware 10
Posts: 35

Rep: Reputation: 15
You might also want a swap partition (but less than 2Gb will usually do) if you want to setup your PC to suspend to disk.
In this case, the suspend script saves the barest minimum of your allocated physical ram to your swap partition - things such as cached files, buffers etc are ignored. When you next boot, the startup procedure cheks your swap partition for a suspended system and if it finds one, loads restores it.

AFAIK you cannot use a suspend file to achieve this, it must be a swap partition.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use RAM as swap??? oneandoneis2 Linux - General 3 08-19-2004 05:48 AM
How to enter swap partition when installing suse8.2 with only 40mb ram cirelj Linux - Newbie 8 02-27-2004 07:06 PM
16 GB of RAM and Linux still uses over 1 GB of a 2 GB swap partition!? lumberjack77 Linux - Software 8 09-25-2003 02:07 PM
Swap Partition - RAM?? jt1020 Linux - General 7 04-30-2003 09:02 AM
Swap and RAM ? mikeshn Linux - General 1 09-18-2002 10:33 PM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration