[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



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

Actually, it's not that simple.  Instead, suspend-to-disk needs to store
into the free part of the swap the non-cache part of the RAM.  And it
usually compresses that data along the way.  So if you have 8GB of RAM
and say 6GB of it is dedicated to caches, suspend-to-disk only needs to
save 2GB of data into the swap, and with compression you can expect that
to use up less than 1GB of your swap.

But note that even with a 16GB swap partition suspend-to-disk may fail
for lack of swap space, if more than 15GB of the swap space was already
in use [ Admittedly, using 15GB if swap space while having 6GB of cache
in your RAM is quite unlikely, but it can happen.  ]


        Stefan


Reply to: