I installed a new system (16GB RAM, 512 GB SSD) with the bookworm installer, >took the guided disk partitioning and selected use full disk with single >partition (which is I think recommended for beginners in the installer). With >that setup hibernate does not seem to work reliably, if e.g. 4 GB of the RAM >are used, hibernate does not work anymore. I think it is because the installer
created a swap partition on 1 GB in size. For me that seems ways to small to >make hibernate work. [...]
Many thanks for the quick and very helpful response. I also followed
up there, indeed it is sad that not even a simple workaround to
mitigate the problem made it into bookworm :-/
Hi,
Am 9. Juli 2023 13:18:24 MESZ schrieb Rainer Dorsch <ml@bokomoko.de>:
I installed a new system (16GB RAM, 512 GB SSD) with the bookworm >installer, took the guided disk partitioning and selected use full disk >with single partition (which is I think recommended for beginners in the >installer). With that setup hibernate does not seem to work reliably, if >e.g. 4 GB of the RAM are used, hibernate does not work anymore. I think it >is because the installer created a swap partition on 1 GB in size. For me >that seems ways to small to make hibernate work. [...]
There is already a bugreport https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987503
about this (which also has some background infos).
Sadly, nothing has happened prior the release of Bookworm.
Am Sonntag, 9. Juli 2023, 16:55:49 CEST schrieben Sie:^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Rainer Dorsch <ml@bokomoko.de> (2023-07-09):
Many thanks for the quick and very helpful response. I also followed
up there, indeed it is sad that not even a simple workaround to
mitigate the problem made it into bookworm :-/
Don't allocate the whole space at the LVM step, then expand the swap
using some of that free space?
You can do that, if you realize that the recommended setup for beginners
does not produce a reasonable partition scheme and if you are expert
enough to understand that swap partition size and hibernate are
connected. 100% of the beginners I know, would probably not be able to
make that connection.
What for most of them probably would work, is a question if they want to
use hibernate or if they install for a laptop/desktop or a server.
Probably desktop/laptop should be default since the admin of a Debian
server is probably not a beginner anymore either. But this would give an
easy option for him.
I remember in the early Linux days the recommendation was
swap partition size = 2x RAM size, here
https://wiki.debian.org/de/Hibernate
is says for hibernation, swap should be half the RAM size.
For me it is easy to reinstall an create a bigger swap partition. I understand
from the page above another option might be to create a swap file
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 80:18:57 |
Calls: | 6,696 |
Calls today: | 1 |
Files: | 12,229 |
Messages: | 5,347,668 |