LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-26-2010, 04:39 AM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Rep: Reputation: 17
Question Swapr Space


Hi,

It is normal practise that we are creating double of RAM as Swap partition.

I would like to know if I am having sufficient amt of RAM then in that case wheather we can create SWAP partiton 100% of RAM.


Regards,

Manoj
 
Old 04-26-2010, 05:28 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
That was once a "rule of thumb" but it never made much sense -- you need as much swap as you need (ha!) and that varies from system to system. Now memory is relatively cheap some systems run without swap at all -- and some people claim a performance improvement. One thing you need swap for is to suspend; then it needs to be a little bigger than RAM; if you are constructing a robust system you dedicate that "swap" space to suspending and don't use it for normal swapping.

If you want to watch your system to see how much swap space it needs, you can swap to file instead of partition; this is very flexible.
 
Old 04-26-2010, 05:34 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
I have found that RedHat systems don't create more than 2GB swap on a default install.
Either on a machine with 4GB RAM or 8GB RAM, only 2GB of swap is created.
So as long as you have 2GB of swap, and plenty of RAM I would say that was the most you might need for normal purposes.
Of course others may disagree.
It largely depends on what type of work you are doing.
http://lissot.net/partition/partition-04.html#SwapSize
 
  


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
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM
Do we have any chance of calling user space callback function from kernel space? ravishankar.g Linux - Newbie 1 09-22-2009 07:14 PM
how to call socket prog code written in user space from kernel space???HELP kurt2 Programming 2 07-15-2009 09:56 PM
LXer: Worms in space: NASA confirms International Space Station infected LXer Syndicated Linux News 0 08-28-2008 09:40 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:35 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