A laptop will use hibernation.
Design enough backing storage to save memory state before power-off and restore it later.
Which sizing consideration is appropriate?
There is no universal swap ratio for hibernation. Consider RAM, actual peak use, compression, and the kernel/initramfs restore implementation.
Detailed explanation
Correct. RAM, workload, compression, and implementation requirements must be considered together.
Correct. RAM, workload, compression, and implementation requirements must be considered together.
Incorrect. CPU core count does not determine hibernation image size.
Incorrect. CPU core count does not determine hibernation image size.
Incorrect. The ESP is for EFI files and is not a substitute for hibernation storage.
Incorrect. The ESP is for EFI files and is not a substitute for hibernation storage.
Incorrect. Hibernation commonly uses swap or another configured backing store.
Incorrect. Hibernation commonly uses swap or another configured backing store.
Try it yourself
An example you can run in a temporary verification environment.
printf 'MemTotal: '; awk '/^MemTotal:/ {print $2, $3}' /proc/meminfo; swapon --show --bytes 2>/dev/null || trueExpected result
RAM総量と現在のswap構成。適正容量は用途と実装を別途評価するKey points
- Do not rely on one fixed ratio
- The hibernation image needs storage
- Resume configuration also matters
Notes
- Environment: Linux / procfs・util-linux swapon
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.