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

Re: Reasonably simple setup for 1TB HDD and 250GB M.2 NVMe SSD




On 10/12/2021 04:53, David Wright wrote:
On Thu 09 Dec 2021 at 17:12:01 (-0000), Curt wrote:
On 2021-12-09, hdv@gmail <hdv.jadev@gmail.com> wrote:
Swap is where a laptop stores RAM during suspend-to-disk, the long
term hibernation suspension. Without at least as much swap as
RAM, you are limited to suspend-to-RAM.

In a more perfect world, the space for suspension would not
otherwise be treated as swap space.
It certainly was the reason why I always had swap at least as big as RAM
in the past on my laptops. However, I have not had any trouble
suspending or hibernating my laptops in the years since I reduced swap
to 2GB. That is just my experience, and it may not be the same for
others. But it might help the thread starter to know this is a feasible
option (depending on their use case).
It's only that there is a distinction between suspend-to-RAM and
suspend-to-disk, the latter using zero power consumption until the
machine is powered on.

Anyway, you probably already knew that (I didn't).
Aka hibernation, it's also incompatible with random-encrypted swap
(recommended in https://lists.debian.org/debian-user/2021/12/msg00239.html,
and by me, if you have sensitive information on your laptop).

It's a shame that TuxOnIce (aka Software Suspend 2) seems to have disappeared. That was a mostly-userspace hibernation solution that developed some quite neat tricks such as:

 * Mounting a swap device prior to hibernation

 * Graphical progress of hibernation

I seem to recall that, because it *was* a userspace solution, you needed to boot a certain amount of kernel and userspace before you could start resuming from hibernation, so there should have been a point where you could handle decryption (although, you would need a known key to decrypt the swap device, I suppose).



Cheers,
David.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: