LinuxQuestions.org
Help answer threads with 0 replies.
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 05-13-2005, 12:12 PM   #1
Aphex_Twin2
Member
 
Registered: May 2005
Posts: 54

Rep: Reputation: 15
How much swap?


I keep hearing the recommented ammount of swap space for Linux is somewhere around 2 x the RAM. Now... if you have 128 Mb RAM you need 256 Mb swap. But this makes little sense... What if I have 1 Gb, 2 Gb, do I need 2-4 Gb of swap? Or is Linux hardwired to use the swap related to the ammount of RAM.

BTW, I have 512 Mb RAM and use 500 Mb of swap. Is that sensible? So far it's worked, but do I have to increase it? I haven't run any memory-intensive applications (generally because these are 3d games and these are hard to find for Linux).
 
Old 05-13-2005, 12:23 PM   #2
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
The 2xRAM rule-of-thumb was a popular guideline when most systems had much less RAM than is now the case. Large swap partitions >500MB now are mostly useful for systems used for editing large images, video files, etc., and large compiles and other memory-intensive tasks. Busy file or database servers might also benefit from quicker reads from swap than from data spread around the drive.
 
Old 05-13-2005, 12:53 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
use as much swap as needed, its a slow substitute for RAM ... i use 1gb of swap (i have lots of disk space), but, with 512mb RAM, i don't think i ever see swap get past half filled at most (only time was when a program ran that ate all memory ..... trying to load pcm (audio) data in memory, stupid program, i don't have a few gig of memory to spare!!)
 
  


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 01:29 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