fresh 15.4, with fde, with swap, then adding ram - new swap size neede?

Support, a rather fresh 15.4, with a single nvme drive, was a fresh clean install of 15.4 on it. the machine had lower ram back then. the yast installer occupied the whole disk, creared FDE, I am not very familiar with all these snapshots and lvme and mapper and such terms though. bottom line is, the machine has gotton more ram by now, double the size. the swap partition is exactly the old ram size, at the end of the disk it seems. the yast partitioner shows: /dev/system is LVM is the full disk size (except for the efi system partition at the very front). this dev/system consists of root still almost the full disk, minus the swap behin it, which is the old ram size. now I wonder if i need to enlarge the swap area and how I would do that? can this root stuff be shrunk again to make space for more swap? the machine is a laptop which might not only run sleep and shutdown but maybe also hibernate. i think this hibernate involves the memory being dumped to swap or am i completely wrong? maybe I am. do i need to worry about the swap size? ty.

On 2022-08-14 12:19, cagsm wrote:
If you intend to hibernate your machine, then yes, you should enlarge swap. My rule of thumb is "somewhat bigger than the ram". Although the kernel uses compression, and often it works with less. There is no exact figure, some day it may need more and it is not available... thus my rule of thumb. How you can do it, when LVM is involved, I can not say. I'm not fluent with lvm. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)

On 2022-08-14 12:19, cagsm wrote:
If you intend to hibernate your machine, then yes, you should enlarge swap. My rule of thumb is "somewhat bigger than the ram". Although the kernel uses compression, and often it works with less. There is no exact figure, some day it may need more and it is not available... thus my rule of thumb. How you can do it, when LVM is involved, I can not say. I'm not fluent with lvm. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
participants (3)
-
Axel Braun
-
cagsm
-
Carlos E. R.