On 4 June 2015 at 16:27, Trent W. Buck <trentbuck@gmail.com> wrote:
Craig Sanders <cas@taz.net.au> writes:

> [...] to be able to suspend to disk
> [...] you need at least as much swap as RAM.

AIUI in a situation like this,
I'd need 256MiB (not 2GiB) of swap to suspend-to-disk.

    $ free -m
                 total       used       free     shared    buffers     cached
    Mem:          1884       1178        706        269          0        966
    -/+ buffers/cache:        211       1673

...but I guess the space saved is not worth the cost of being unable to
suspend-to-disk when firefox is open.


Curious as to how you came to that conclusion?

I found a couple of references to /sys/power/image_size as being the factor that deteremines how big the suspend-to-disk image will be.  According to https://www.kernel.org/doc/Documentation/power/interface.txt it's set to 2/5 of availanble RAM by default, as is the case on my home media server where it's set to 2/5 of 16Gb i.e. 6641303552 bytes.

You can change of course and apparently setting it to zero causes the kernel to create the smallest image possible.



--