Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-29-2011, 10:34 AM
|
#1
|
Member
Registered: Mar 2011
Posts: 90
Rep:
|
Does linux 2.6.37 64-bit really need swap space anymore?
Before I start a flame war, I'd like to qualify my question with...I have a boatload of ram and a VERY thin install.
(CLI openSuse 11.4-64)
If I'm running the most baseline, text-only-install...and the whole system install is like 2GB or less, and I have 8GB of ram (which I could easily upgrade to 16). At install time...do I really need a swap partition at all? What purpose could a swap serve if I have that much ram in such a trimmed down environment?
Thanks.
|
|
|
04-29-2011, 10:43 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
Linux does not absolutely require a swap partition or a swap file. The need for a swap partition is strictly related to the workload of the machine. If your workload requires more RAM than your machine has got installed then you need to install a swap partition or a swap file. Otherwise swap space is not required.
|
|
|
04-29-2011, 10:54 AM
|
#3
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Although stress_junkie's reply is 100% technically correct, it might be important to know that certain applications demand swap space (of a certain size) to be present when installing. Oracle's application server is one of those and I bet there are more around.
This might not be an application that the OP will install, but it is not 100% clear what the OP runs on his box.
Just to be sure: The average home user will not need swap when having sufficient RAM.
|
|
1 members found this post helpful.
|
04-29-2011, 11:02 AM
|
#4
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by druuna
Just to be sure: The average home user will not need swap when having sufficient RAM.
|
There is one exception to this rule. If you want to use hibernation you need a swap partition.
|
|
2 members found this post helpful.
|
04-29-2011, 11:24 AM
|
#5
|
Member
Registered: Mar 2011
Posts: 90
Original Poster
Rep:
|
Very cool. Thanks for the help!
Out of academic curiosity, could one reconfigure linux to hibernate/suspend to ram instead of using swap space? It's not for me - I'm not hibernating, but..I wonder how that's configured and programed and such.
|
|
|
04-29-2011, 11:26 AM
|
#6
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Hibernation and suspend to RAM are two different things. Linux is without the need to reconfigure hibernation totally able to suspend to RAM.
|
|
|
04-29-2011, 03:47 PM
|
#7
|
Member
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152
Rep:
|
I think there is always a need for swap. Whether you use it or not is a different matter.
Say you have a webserver with plenty of ram. One day you have 50x the amount of visitors. Without swap your server has a very high chance of crashing, heck, even with a decent amount of swap it will probably throw its lunch up.
|
|
|
All times are GMT -5. The time now is 12:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|