latestversion
December 23rd, 2012, 03:35 PM
In order to ensure hibernation works I've read that swap partition needs to be at least the same size as physical RAM. I just installed Ubuntu 12.10 using the default install where I don't set up the partitions myself (LVM and full disk encryption enabled) and ran the 'free -m' command and saw the following:
total
Mem: 7985
Swap: 8087Why did it choose a higher number? Is there a certain amount by which swap partition must be higher than physical RAM for things like hibernate to work, or if I did manual partition setup could I have set swap partition to be exactly 7985 instead of 8087?
I ask because for future installations on a different machine where I need to set up partitions manually during the installation (to have more partitions under root partition), how can I know how much to set the swap size (without it being too much, i.e. I could have set swap to be 10GB even though I know my RAM is only 7-8GB).
total
Mem: 7985
Swap: 8087Why did it choose a higher number? Is there a certain amount by which swap partition must be higher than physical RAM for things like hibernate to work, or if I did manual partition setup could I have set swap partition to be exactly 7985 instead of 8087?
I ask because for future installations on a different machine where I need to set up partitions manually during the installation (to have more partitions under root partition), how can I know how much to set the swap size (without it being too much, i.e. I could have set swap to be 10GB even though I know my RAM is only 7-8GB).