Ranbunta_Bantubunt
June 14th, 2020, 07:45 AM
Hi, I'm about to do an install of ubuntu onto a laptop with 64gb ram. I am using the (almost)-full disk encryption method specified here:
https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019
Regarding size of the swap space, the guide indicates:
I am also creating a 4GiB LV device for swap which, as well as being used to provide additional memory pages when free RAM space is low, is used to store a hibernation image of memory so the system can be completely powered off and can resume all applications where they left off. The size of the swap space to support hibernation should be equal to the amount of RAM the PC has now or is is expected to have in the future.
For this device (which will have a 2TB M.2 flash drive for storage, so swap can be big), I am wondering how large to make the swap space. I would like to use the hibernation feature.
Since the machine will have 64gb, according to the guide swap should be 64gb. However, what if the swap space is already being used for something else? I plan to run several VMs simultaneously which is why the machine needs 64gb ram. Maybe swap should actually be 70 gb, in case 6 gb of swap are being used for other things, plus I hibernate?
Also I would hesitate to make the swap space exactly 64GB as these days, there could be differences in how a "GB" is calculated that I fear might lead to it being slightly smaller than the actual amount of ram, even if both "Swap" and "RAM" are nominally 64 in the category of "GB", or maybe some overhead is needed on top of the actual memory in RAM, who knows, seems like it would be prudent to pad it just a little bit to be sure.
Any tips?
Thanks
https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019
Regarding size of the swap space, the guide indicates:
I am also creating a 4GiB LV device for swap which, as well as being used to provide additional memory pages when free RAM space is low, is used to store a hibernation image of memory so the system can be completely powered off and can resume all applications where they left off. The size of the swap space to support hibernation should be equal to the amount of RAM the PC has now or is is expected to have in the future.
For this device (which will have a 2TB M.2 flash drive for storage, so swap can be big), I am wondering how large to make the swap space. I would like to use the hibernation feature.
Since the machine will have 64gb, according to the guide swap should be 64gb. However, what if the swap space is already being used for something else? I plan to run several VMs simultaneously which is why the machine needs 64gb ram. Maybe swap should actually be 70 gb, in case 6 gb of swap are being used for other things, plus I hibernate?
Also I would hesitate to make the swap space exactly 64GB as these days, there could be differences in how a "GB" is calculated that I fear might lead to it being slightly smaller than the actual amount of ram, even if both "Swap" and "RAM" are nominally 64 in the category of "GB", or maybe some overhead is needed on top of the actual memory in RAM, who knows, seems like it would be prudent to pad it just a little bit to be sure.
Any tips?
Thanks