On Thursday 22 April 2010 18:24:08 Stefan G. Weichinger wrote:
> Am 22.04.2010 17:50, schrieb Alan McKinnon:
> >> Shouldn't the kernel *swap* then ?
> > 
> > No, the OOM killer kicks in when the kernel has no more virtual memory,
> > including swap. Either way, more RAM is the answer. Or fidn the app with
> > the memory leak if you are unlucky enough to have one of those running
> > around.
> 
> The added swapfile with one GB won't help here for a start?

It will certainly help. If your core problem is simply not enough RAM, then 1G 
more might be all you need. You'd have to run checks and do some monitoring to 
see if performance is affected. 

I haven't followed the full thread so I don't know what you are running; and 
some daemons perform really badly if they have to touch swap. Apache for 
example, a busy MTA for another - disks are thousands of times slower than 
RAM, so if a webserver has to swap memory back in from disk, it almost 
instantly brings the server to a grinding halt.

On my web and mail servers I have no swap at all, they do have lots and lots 
of RAM; my Sybase database servers have enormous amounts of swap. Each server 
has been profiled so it is set up to be as close to ideal as I can determine.

-- 
alan dot mckinnon at gmail dot com

Reply via email to