memory limit for hibernation?

Derek Broughton news at pointerstop.ca
Sat May 6 21:19:49 UTC 2006


Florian Diesch wrote:

> mathieu vilaplana <ulist at gs1.ubuntuforums.org> wrote:
> 
>> It's normal.
>> Swsusp2 compress data in your ram and put it in your swap partition.
>> If you increased your ram memory, you need to also increase your swap
>> partition.
>> So if you have 1 GB of ram memory, you should have about 1GB of swap in
>> order to use suspend to disk (1 or 2).
> 
> It often works with less swap space than memory (I used 256MB swap and
> 768MB memory for some time) but suspeding often takes longer and some
> times doesn't work at all unless you close some apps.

aiui, it needs as much swap space as you have "dirty" _virtual_ memory -ie,
it flushes all the read-only pages first and unmodified pages first, then
writes the remainder to swap.  Once in a while, I run into problems, even
though I have only 512MB memory and 1GB of swap, because my total virtual
memory requirement exceeds 1GB.
-- 
derek





More information about the ubuntu-users mailing list