[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#987503: swap partition only 1 GB instead of at least 1 x RAM size



On Thu, 8 Dec 2022 13:05:48 +0100 Bastian Blank <waldi@debian.org> wrote:
>
> The current default is suitable.  Hibernation does not work on any
> modern x86 machine and you don't want to have huge swap on desktop
> machines as it only adds latency.
>
> Bastian
>

I recently ran into this issue while considering Debian for desktop and laptop usage and would also like to request increasing the swap default to at least the size of RAM.

Hibernation works just fine on all of my modern x86_64 machines when the swap space is sufficient. Could you elaborate on why you believe it doesn't?

If the primary objective was reducing memory latency I would suggest instead modifying the default vm.swappiness which would actually affect how often swap is used. I agree that in many cases swap causes degraded performance for modern systems. However, hibernation is a good use for it.

In my experience when hibernation fails Debian appears less battery efficient on laptops due to the need to retain power to memory when the lid is closed. Ensuring the default  swap size is sufficient to support hibernation helps improve this experience.

Reply to: