LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-29-2011, 10:34 AM   #1
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Rep: Reputation: 7
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.
 
Old 04-29-2011, 10:43 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
Old 04-29-2011, 10:54 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
Old 04-29-2011, 11:02 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by druuna View Post
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.
Old 04-29-2011, 11:24 AM   #5
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
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.
 
Old 04-29-2011, 11:26 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Hibernation and suspend to RAM are two different things. Linux is without the need to reconfigure hibernation totally able to suspend to RAM.
 
Old 04-29-2011, 03:47 PM   #7
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Rep: Reputation: 25
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.
 
  


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
[SOLVED] How much swap space do I need for Linux Mint 64 bit? catilley1092 Linux - Desktop 6 02-28-2010 01:23 PM
What is the recommended swap space for 32 bit Linux the_gripmaster Linux - Hardware 18 07-14-2009 08:46 PM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 04:20 AM
How to disable swap space entry for a process (Sticky bit?) Pandamatak Linux - General 3 09-25-2006 07:17 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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