On 23/11/2024 at 12:03, Holger Wansing wrote:

I was a bit surprised when I did a quick Debian Stable install on my new
workstation (384 Gb RAM, 512 Gb ssd) and ended up with just 80 Gb usable
diskspace, thanks to a 400 Gb swap partition that the Debian installer
created. I think a warning/question when more than 25% of the disk is used as
swap-space would be in order. I would think that computer-owners who install
large amounts of memory carefully install enough memory to not swap excessively.

For such machines with that much RAM (which is a typical server setup) we have
just introduced a dedicated recipe ("server") for auto-partitioning, which
limits the swapsize to 1G.
That should do it here.

The "server" recipe also creates a big /srv partition and no separate /home, so it may not be suited for a typical workstation use case.

Actually this bug was already fixed in 2020 by the introduction of partman-auto/cap-ram limiting the swap size to 1GB by default. But this limitation affected hibernation and made little sense on the vast majority of systems with much more disk space than RAM. With the recent changes, the swap size is now limited to 100% RAM size and ~5% disk size except in the "server" recipe (servers usually do not need hibernation).

On the above workstation the swap size would now be limited to ~25GB (5% of 512GB disk size) by the standard recipes.

Reply via email to