LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2006, 01:15 AM   #1
tofee
Member
 
Registered: Mar 2006
Posts: 41

Rep: Reputation: 15
Why Swap is double of RAM ?


hi ,

i have a query..

why the size of Swap partition has to be double of RAM ? why it is not same as the size of the ram or thrice etc.? why double ?

thanks.

tofee
 
Old 03-23-2006, 01:20 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by tofee
hi ,

i have a query..

why the size of Swap partition has to be double of RAM ? why it is not same as the size of the ram or thrice etc.? why double ?

thanks.

tofee
thats old thumb rule buddy.
size of swap = size of RAM X 2

old b'coz of the days when systems didn't had much RAM.
But now a days when people are generally having 512 and 1024 Mb of RAM, this thumb rule fails.
i've 256 Mb of RAM and keeping only 200 Mb of swap.
Ok, i don't use very heavy applications which consumes memory but still 512 Mb and 1024 Mb of RAM is not a small thing.

so just to be on safer side leave some space for swap.

regards
 
Old 03-23-2006, 01:22 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I've seen statements on swap anywhere from "you dont need it" to 2X RAM. I use 1.5 because that's what I read most often.
I doubt if you are going to get a definitive answer to this.
 
Old 03-23-2006, 01:27 AM   #4
tofee
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
hi there ,

ok ... thank you.
 
Old 03-23-2006, 01:56 AM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
If you have 256MB of RAM I'd have the same in swap. 1GB RAM you might be able to get away with no swap. 2GB+ you won't need swap unless it's on a server of some shape or description running an app that will use it.
 
Old 03-23-2006, 02:05 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by cs-cam
If you have 256MB of RAM I'd have the same in swap. 1GB RAM you might be able to get away with no swap. 2GB+ you won't need swap unless it's on a server of some shape or description running an app that will use it.
agreed with your concept.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap double size of the RAM zillah Fedora 3 12-24-2005 08:13 AM
Swap double size of the RAM zillah Solaris / OpenSolaris 3 11-22-2005 12:30 PM
RAM and Swap shiny_spoon Linux - General 5 01-13-2004 03:27 PM
No SWAP but all RAM!! hari_seldon99 Linux - General 3 01-13-2004 11:48 AM


All times are GMT -5. The time now is 07:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration