• Bookworm Installer and Hibernate

    From Rainer Dorsch@21:1/5 to All on Sun Jul 9 13:50:01 2023
    Hello,

    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. 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.

    I would have expected that for an installation recommended for beginners, the basic features like hibernate would work, but the usage of the resources (SSD) might not be optimal (e.g. with a larger swap partition that needed for a tailored setup). I might miss something though on how the user/beginner should make hibernate work in bookworm.

    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

    https://wiki.debian.org/Hibernation?action=show&redirect=Hibernate

    (although that the page starts with references to Debian Lenny and Jessie
    raise some doubts if that still is the way to go).

    Any hint or feedback is welcome, in particular if it is an issue where to report it, that this gets improved.

    Thanks
    Rainer
    --
    Rainer Dorsch
    http://bokomoko.de/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to All on Sun Jul 9 15:30:01 2023
    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.


    Holger

    --
    Sent from /e/ OS on Fairphone3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Cyril Brulebois@21:1/5 to All on Sun Jul 9 17:00:01 2023
    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?


    Cheers,
    --
    Cyril Brulebois (kibi@debian.org) <https://debamax.com/>
    D-I release manager -- Release team member -- Freelance Consultant

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmSqymoACgkQ/5FK8MKz VSBy/w//Uzz3Dv0Wyb9Fu0uacTkpPSfhuCvEBd704hr088rVOvnfHe9y8rBvDgRq Igkg7cOZpSgQc3lLTIj9t4cKDQm2BzpW3QZKv/M13RHuWEtg5d/ARhYfSF3BP3B+ IFlKYmMDnqHTVbXlY5R3HilXzZmq25hAexTpjskxNDcO19WhrAUW1Kn2OBPoBccu q4oIMI+RyPt3zgcrl0zby4oiqzGHL/TCZtxCtOPrtft2isdTmk620QxD2ygD0D2f yfFOaFWoIEJVHN5gkMmmC1YQWQkCawk9X5KUWuBV7yCypXROJB+t14n6GULv5T89 WnW1yUnjZJuwVscJSt+xIdBTiLQ0sdB1b7YkU8hRU1SRGcHQqkxoWTp3JLcEiRAV VmHC8erCZOxlMaa4XgVUYuOpM7Jli9jAeNB5KXVtCqdWzREhW4Vgt7ym1eg/mWsn 8dXEIA3Necf+kQfNvuLqjZOMlnG1vdAxysWJHqnxdJOzaAPPH3pylg73ohhVZbbx UfpaSRM1TSqA0otilyeFqgh/PW6soOtT770BFVZOnqllHAJSGE+iVRUX5sMmPe5G +OqtD52p0VA+XNE6wDYnAKEQittVJb7l1qH/8aPolvn5oMjBXOyrIj30b/6cUUVz XNpeSJFBMo3YSN6prFWdrMaHjGpAx6J/7pF67xBA/aww7Dss3gw=
    =lbt3
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    *
  • From Rainer Dorsch@21:1/5 to All on Sun Jul 9 16:50:01 2023
    Am Sonntag, 9. Juli 2023, 15:26:05 CEST schrieb Holger Wansing:
    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.


    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 :-/

    Rainer
    --
    Rainer Dorsch
    http://bokomoko.de/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Cyril Brulebois@21:1/5 to All on Sun Jul 9 18:00:01 2023
    Putting the list back in the loop, and quoting in full.

    Rainer Dorsch <ml@bokomoko.de> (2023-07-09):
    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?

    → Simple workaround.

    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.

    There's no definitive answer as to what “the recommended setup for beginners” would be.

    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.

    Maybe, but that's totally orthogonal to the point I was making.


    Cheers,
    --
    Cyril Brulebois (kibi@debian.org) <https://debamax.com/>
    D-I release manager -- Release team member -- Freelance Consultant

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmSq2V8ACgkQ/5FK8MKz VSB1NxAAwLBPzqLIjF62ouPeQHjnG2fWuuJLd5EpoVPRoNhlr2q4C+Wj7fFtYFx/ Fe/rB3qeSuCN8p0C2j+K+Mknodx3BCs77TMOb6FZxpvhQ1OkHEWnM8zj0s/M2/ox s8PJiiWDpi4mtaMtvJjiHUlpdmwHp+/su+GQMFquR+6NGNerej7F3FN+Z8JG0Iqa z3PNkVjlJDBJmnLwMIrHOowngGYeEjOqjpLx8Cmmy1adNkZeX6DVICv1vvZWYJ4Q d/D3e/TF6nPLQYSVj0oL+EVw2rmA6EEutE4BWF6ZWKnnz/WN9kOdozKZvo3zk1+2 GKS3m3Rg7a5JdIMAovYoZW9El9/W/ZdBplN3hdLSWGVHIJ3P3j57eOOnjE6MjoSL DRUMpoFSIlmc2hevFLmuXNL5aGMDDIVPm4JPrdqnrY6gGHWDzorEmNNU16W71a1y JHK8tXVhboI39hfUhaeOe5AlayTjsf4qW/ph9DpxgM2rTgxGvCD+FKgCl3k5fH84 KaX3Qz7naveb+yU0LucxchomXAqzi083907XeTQpXWR2HN1rsADzX1lHJXjnI+nh 6SA/wgW4UAgrqUd7KLi3adM50WasHd7a8GknHMWLGosCBiAi6kXwNiRUrX/qrjtS XC4M9F/4QwKFybu2Axi2R9t+R7VVdSUfZJg/8pMWzMxm4PfBip0=
    =VLha
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    *
  • From Pascal Hambourg@21:1/5 to Rainer Dorsch on Mon Jul 10 00:10:01 2023
    Hello,

    On 09/07/2023 at 13:18, Rainer Dorsch wrote:
    I remember in the early Linux days the recommendation was
    swap partition size = 2x RAM size, here

    That was when computers did not have enough RAM.

    https://wiki.debian.org/de/Hibernate

    is says for hibernation, swap should be half the RAM size.

    It may be unsufficient. IIUC a hibernation image is limited to half the
    RAM size, but extra data still need to be swapped out before creating
    the image, and the swap area may already contain swapped data.

    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

    The described method uses uswsusp which was removed from Debian a long
    time ago. Using a swap file with the regular kernel hibernation is not convenient (you must pass the underlying device and file offset for
    resume). Not sure this is supported by Debian's initramfs config.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)