Hello all,

On Sun, 25 Apr 2021 17:33:28 +0000 Martin <deba...@debian.org> wrote:
On 2021-04-24 21:40, Steve McIntyre wrote:

There is no such thing as a "correct" formula, though. The old formula
was similarly causing lots of hassle for people installing on servers
who didn't want to waste hundreds of gigabytes on swap space.

There may not be a correct formula, but there are saner values than others. AFAIK, "swap size = RAM size" is considered a sane default for hibernation so e.g. I think that 16 GB swap in 500 GB disk space with 16 GB RAM is saner than 1 GB in most cases. On the other hand 1 GB swap in 8 GB disk space with 256 MB RAM is insane (yes I still have one such machine).

What about something like "swap size = min(RAM size, disk space * R%)" (with R to be defined) ?

Also I assume, that desktop PCs are more oftenly installed
relying on d-i defaults, while servers are typically installed
by experienced admins.

I agree and am afraid that the new swap size will bite many users who want hibernation on desktop or laptop PCs and use guided partitioning. Besides, I cannot even imagine anyone using guided partitioning on a server.

I'ld prefer the solution suggested in #780208, because it helps
in other cases, too.

Guided partitioning using LVM allows to reserve some free space in the volume group, which can be used later to extend logical volumes.

Reply via email to