SWAP Question?

Hakan Koseoglu hakan at koseoglu.org
Tue Aug 11 12:11:47 UTC 2009


On Tue, Aug 11, 2009 at 12:36 PM, Jarl Friis<jarl at gavia.dk> wrote:
> Hakan Koseoglu <hakan at koseoglu.org> writes:
>> In reality if you are swapping that much in and out, your server
>> performance will be quite severely effected.
> Correct, but in that situation the alternative to have swap available,
> would be that the application would hit a memory-shortage and crash
> with core dump
I definitely agree. Just debugged an issue with an Oracle server where
12GB of RAM was in use and then an addition of 10GB of swap because of
a memory leak issue. Especially in the days of terabyte disk storage
days, setting a couple of GB aside for swap file has no harm.

If you select a too small swap partition size end up in a situation
where you need more, you can always extend it with using an additional
swap file. In the past there were performance implications, not that
much of an issue these days.
-- 
Hakan (m1fcj) - http://www.hititgunesi.org




More information about the ubuntu-server mailing list