Hibernation fails

John Hubbard ender8282 at yahoo.com
Tue Apr 15 23:55:49 UTC 2008


Ioannis Vranos wrote:
> John Hubbard wrote:
>   
>> I am confused about what the swap partition is. I thought that it was 
>> the place that data got written to if you ran out of ram. I usually set 
>> up my swap partition so that it is the same size as system mem. I 
>> thought that this meant that (for a performance hit) my computer with 
>> 1GB of ram would behave like it had 2GB of ram.
>> If my above understanding is correct wouldn't it generally be unsafe to 
>> save to your mem to the swap partition? If your memory was full and you 
>> had anything written in swap you would run out of space. I am not sure 
>> how often memory is 'full' but it seems like it would just be too unsafe 
>> to risk.
>>     
>
>
> Interesting thought. Perhaps the solution to this is, if there isn't
> enough space to swap partition for whatever reasons, hibernation fails.
> So perhaps we should define our swap partition to 4 times more than our
> RAM approximately with 4 GBs at least, or something like that.
>
>   
At 4GB you are less likely to fill it up but you are never GUARANTEED to 
have the space in your swap. The only way that you can get that 
guarantee is to have space somewhere that is permanently set aside for 
hibernate.
Unless I am missing something...

-- 
-john

To be or not to be, that is the question
                2b || !2b
(0b10)*(0b1100010) || !(0b10)*(0b1100010)
        0b11000100 || !0b11000100
        0b11000100 || 0b00111011
               0b11111111
        255, that is the answer.






More information about the ubuntu-users mailing list