Swappiness default
Hakan Koseoglu
hakan at koseoglu.org
Mon May 23 14:51:32 UTC 2011
On 23 May 2011 15:46, Rashkae <ubuntu at tigershaunt.com> wrote:
>> If you ask me, I'd say as long as you have enough RAM, setting it to 0
>> is the best. If you ask others, you'll get a completely different
>> answer (http://kerneltrap.org/node/3000?page=1).
> Actually, if you have enough RAM, leaving at default 60 would be best, as
> low disk performance would be greatly helped by the extra cache. The
Setting the swappiness to 0 delays any swaps until you've run out of
RAM completely and only then it starts writing to disk. As a result if
you have a lot of RAM, it's preferrable. On the other hand, when you
run out of memory, it will start heavily swapping immediately (depends
on how many processes want to grab the lot).
If you set it to a high number, the system will housekeep very often
and you will experience slow downs when you really don't need any (I
have 2GB free, why are you swapping 1GB, oh the wise kernel?)...
--
Hakan (m1fcj) - http://www.hititgunesi.org
More information about the ubuntu-users
mailing list