Skip navigation.

How much RAM? How much SWAP?

This is my third blog post in a row about my new Linux box. See the two previous entries for details.

I asked on the Kubuntu forum:
http://kubuntuforums.net/forums/index.php?topic=3106998.0

Hello,

I am building a new Linux box which will be running Kubuntu 9.10.

I am not playing games. The most memory / cpu intensive things I'll do are: Blender 3D, compiz, file encryption with the archive tool dar, some simple video editing...

I am currently using an old box with a 1.5Ghz sempron and 750Mb RAM only. My new system will be based on AM3 PHENOM II x4 945 and plenty of RAM, so I'll be multiplying my main box computing power by at least 6 to 8!!!

My questions are how much RAM is reasonably enough? No need to waste money by purchasing more RAM for only marginal improvements. I am planning on getting 4Gb DDR3 1600 RAM. Is there any reason for me to get more? Beyond 4Gb, would more make a difference?

Also, it's been a long time I have partitioned a disk. Back in the time when 1GB RAM was considered a lot, it was said that the SWAP had to be twice as big as the amount of RAM. Is it still true today?
How much SWAP is recommended, nowadays?
Note: I'm planning to get a 32GB SSD for the root partition, for the OS. Maybe it's a good idea to put the SWAP on the SSD, too.

In case anybody is interested, are are links to other hardware for Linux posts:

ATI or nVidia graphic card for new Linux box?
http://masquilier.org/node/135
-> plenty of links and relevant quotes.

Graphic card recommendations to use for Blender / compiz:
http://blenderartists.org/forum/showthread.php?t=169177

Thanks.

Blessings,

Augustin.

How much RAM does my Ubuntu / Fedora Linux desktop PC have?

See here for a few useful tools reviewed:
http://www.cyberciti.biz/tips/how-much-ram-does-my-linux-system.html

command line:
$ free -mt

Linux: Should You Use Twice the Amount of Ram as Swap Space?

http://www.cyberciti.biz/tips/linux-swap-space.html

various interesting formulas to calculate the amount of SWAP necessary.

Linux: Is Swap Necessary?

http://kerneltrap.org/node/3202

The article is a bit old, but even more relevant today:

Following recent discussions about tuning swapiness and dynamically allocating swap as needed, a new discussion ensued on the lkml questioning the need for swap altogether when a system has "sufficient" ram.

Nick Piggin explained that swap can improve performance no matter how much RAM you have, "well it is a magical property of swap space, because extra RAM doesn't allow you to replace unused memory with often used memory. The theory holds true no matter how much RAM you have. Swap can improve performance. It can be trivially demonstrated." This said, numerous Linux users do report success running a swapless system.

As to why swap performance might be becoming more and more an issue over time, Rik van Riel suggested that this could be due to the growing gap between the speed of RAM and the speed of hard drives, "the speed of hard disks doesn't grow anywhere near as fast as the size of memory and applications. This means that over the last years, swapping in any particular application has gotten SLOWER than it used to be ... This means that even though the VM is way smarter than it used to be, the visibility of any wrong decision has increased."

Linux servers: swap, memory and how much of each

http://dev.eclipse.org/blogs/eclipsewebmaster/2008/10/09/linux-servers-s...

Another good post, with a short tutorial on how to better read the output from top (i.e. the command line top).

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • Allowed HTML tags: <a> <em> <strong> <blockquote> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically. (Better URL filter.)

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.