Re: How do I determine appropriate swapspace settings? And other partitioning questions.

From: Paul Sherwin (paulSPAM_at_paulsherwin.co.uk)
Date: 02/09/05


Date: Wed, 09 Feb 2005 14:54:56 GMT

On Tue, 8 Feb 2005 17:28:04 -0800, Sir Jackery <root@jackery.com>
wrote:

>I agree, except you left out that X and its applications use huge amounts
>of memory. All of my servers each have a 128m swap partition and run with
>about 256-512m RAM. They NEVER swap, but there is no point in not having a
>health size swap partition because it is very easy to reclaim the space.
>With the cost of hdd space these days, why not allocate a 512m swap
>partition? It could come in handy in the future. If your computer starts
>to use it, do what morningdew says and add more memory. If your system is
>steadily using your swap it will bottleneck systems performance
>substantially.

Sure, it's a false economy to run with no swap at all, given the cost
of HD space. I think 256-512 RAM is pretty typical for a current Linux
desktop machine and they won't swap much even running big X desktops.
I usually configure 128m and keep an eye on things for the first few
hours. I've never had to add more swap yet :-)

You'll soon notice if your system is hitting the swap partition hard -
it'll run like a dog.

Best regards, Paul

--
Paul Sherwin Consulting     http://paulsherwin.co.uk


Relevant Pages

  • Re: OT (slightly) swap limits
    ... influence your decision on how much swap was enough. ... processes due to lack of memory. ... I've run machines with 1Gig or more RAM with NO SWAP. ... Linux possible when before on Unix it wasn't? ...
    (Debian-User)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... >> memory and hence causes the kernel to 'thrash' thus slowing down the ... 4GB physical RAM + 4GB swap area) the application will think that it can ... You've said in another message that your app is ...
    (comp.os.linux.setup)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... >> memory and hence causes the kernel to 'thrash' thus slowing down the ... 4GB physical RAM + 4GB swap area) the application will think that it can ... You've said in another message that your app is ...
    (comp.os.linux.misc)
  • Re: fedora-list Digest, Vol 10, Issue 167
    ... Well, I have two 433 MHz Celerons and 288 MB RAM, and no performance ... > The memory usage is always around 400MB. ... I'd like to introduce you to the vmstat command. ... > I know that SWAP should be double the Physical RAM but I don't have ...
    (Fedora)
  • Re: FreeBSD data size tuning
    ... It seems there is a memory issue in 4.9 where they adapted 5.x things ... RAM and using 2500MB of swap on ide disk, ... With 1GB of RAM you should be able to run squid without any ...
    (freebsd-performance)