Hibernate ~ Lenovo E325

The standard install of 12.3 created a swap partition of 2GB (if I remember correctly?) However, I have 8GB of RAM. Does the swap partition have to equal 8GB (like Ubuntu) to hibernate? The laptop rapidly flashes but never enters hibernation.

Yes, it should be at least as large as your RAM if you want to hibernate, because for hibernation the whole content of your RAM is copied to the swap partition.

Hmm, then how is it possible to hibernate on 2GB swap file when I have 3GB RAM, and has worked that way on 12.2, 12.3 at least? :\

On 2013-12-02 15:06, consused wrote:
>
> wolfi323;2604498 Wrote:
>> Yes, it should be at least as large as your RAM if you want to
>> hibernate, because for hibernation the whole content of your RAM is
>> copied to the swap partition.
> Hmm, then how is it possible to hibernate on 2GB swap file when I have
> 3GB RAM, and has worked that way on 12.2, 12.3 at least? :\

Chance :slight_smile:

It is possible because it is stored compressed, and because you are
using little or no swap at the start.

That’s why you can try with a small swap. The system tries to hibernate,
and when it can not fit the used RAM inside, it bails out.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Yes, it resumes from a compressed image, and informs the console about that. Who wants to be running a home system with loads of swap file usage anyway, especially with 8GB RAM available? (rhetorical question :D)

On 2013-12-02 15:56, consused wrote:
>
> robin_listas;2604519 Wrote:

> Yes, it resumes from a compressed image, and informs the console about
> that. Who wants to be running a home system with loads of swap file
> usage anyway, especially with 8GB RAM available? (rhetorical question
> :D)

Oh, I have 8 GiB RAM (the maximum for my board), and swap is used.


> cer@Telcontar:~> free -h
>              total       used       free     shared    buffers     cached
> Mem:          7,8G       4,6G       3,2G         0B       225M       2,0G
> -/+ buffers/cache:       2,5G       5,4G
> Swap:          20G       2,4G        18G
> cer@Telcontar:~>

And consider: if that swap was not allocated, I could not have 2 on
cache and 3 free. The system would be slower with no swap, contrary to
what is the common belief.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)