Re: Swap: Location&Size

On 2013-08-27 13:06, Knurpht wrote:
>
> I don’t use swap at all. First I don’t use suspend/hibernate, second I
> found out a couple of years that the swap space on both my server and my
> laptop had never been touched.

I have seen my desktop with 8 GiB of ram and using close to 4 GiB of swap.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 08/27/2013 08:54 AM, Carlos E. R. wrote:
> On 2013-08-27 13:06, Knurpht wrote:
>>
>> I don’t use swap at all. First I don’t use suspend/hibernate, second I
>> found out a couple of years that the swap space on both my server and my
>> laptop had never been touched.
>
> I have seen my desktop with 8 GiB of ram and using close to 4 GiB of swap.

Without swap, you may find processes silently disappearing as the out-of-memory
killer desperately tries to find some RAM to work with. That happened to me when
my swap partition got corrupted and could no longer be mounted. Firefox would
just be gone with no crash info. Creating a swap file or partition of 1 GB will
prevent that from happening.

I have also read, but no longer have a reference, that the scheduler works
better when swap is available, even if it is never used.

On 2013-08-27 17:46, Larry Finger wrote:
> On 08/27/2013 08:54 AM, Carlos E. R. wrote:

> Without swap, you may find processes silently disappearing as the
> out-of-memory killer desperately tries to find some RAM to work with.

Absolutely, I have seen it happening.

Also, I have seen processes eating more and more memory, till all ram is
used, and then they continue taking swap. The system crawls along, and
you may have time to kill it manually; but with no swap there is little
time to react.

> I have also read, but no longer have a reference, that the scheduler
> works better when swap is available, even if it is never used.

Dunno about that. :-?

What I have seen, after hibernate and thawing, is that a fair size of
swap remains in use because those chunks are not really used. If they
remain swapped out, there is more ram freed and the system is,
curiously, faster.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))