Hibernation Swap Planner

Work out whether the swap on disk can hold a hibernation image, how much headroom is left, and how much RAM the swap would cover.

Count only swap that survives a power-off: a swap partition or swap file on a real disk. zram swap keeps its pages in RAM, so its size is not part of this budget. The kernel limits the image to about two-fifths of available RAM by default, which is the 40 % target.

Swap left after the image
—
Set the RAM, the swap on disk and the image target above.

— image target— swap left
The budget at this target
RAM
Swap on disk
Image target
Headroom after the image
Largest RAM this swap covers
Highest target this swap covers
If the target were set to
TargetImageSwap left
Example setup
—

The kernel writes the image into swap, so the budget is simply swap against the largest image the kernel will write, set by /sys/power/image_size and by default around two-fifths of RAM. The image is compressed and usually lands below that ceiling, which is why this check treats the target as the worst case rather than a measurement. It does not test whether your machine can hibernate at all: resume from swap needs resume= on the kernel command line (plus resume_offset= for a swap file), a kernel and firmware that support the state, and a swap area whose contents are never touched between suspend and resume. Everything is computed in your browser; nothing is sent anywhere else.