Cannot Hibernate, Not Enough Swap

Home » CentOS » Cannot Hibernate, Not Enough Swap
CentOS 2 Comments

The last couple time I tried to hibernate, I got an error message:

I find that hard to believe:
[hennebry@localhost doc]$ free -m
total used free shared buffers cached Mem: 3833 1124 2709 0 51 286
-/+ buffers/cache: 786 3047
Swap: 11453 356 11097
[hennebry@localhost doc]$
1124+786+356″66< 11097 How do I figure out what is going on and fix it?

2 thoughts on - Cannot Hibernate, Not Enough Swap

  • 4G.

    In any case, for whatever reason, hibernate likes me now. It let me hibernate after the free -m given and also just now.

    but nothing to show how much swap it thought it needed. In the future, I will run free -m before trying to hibernate.

  • FWIW, I create 2xmemory for swap size. My theory is if all the memory is used, then probably some of the swap is as well, so there better still be as much unused swap as memory. So far I have not failed to hiberate with this approach.