[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hibernate and swap partition size (newbie question)



On 22/02/2008, Bob Proulx <bob@proulx.com> wrote:
> Jimmy Wu wrote:
>  > From what I've read online, I get the general idea that in order to be
>  > able to hibernate/suspend to disk properly, the swap partition has to
>  > be big enough to hold all of the RAM inside it, right?
>  >
>  > Is it possible to hibernate if my swap partition is smaller than my
>  > RAM?  I have 2 GB of RAM, and when I installed Debian, I figured I
>  > would hardly ever need that much, so I made swap 1.4 GB.
>
>  IIRC the ram image is compressed using lzw compression.  Therefore it
>  actually depends upon how well things compress.  If you have good
>  compression then it would fit.  But if not then it wouldn't.  But it
>  is data dependent upon what is in ram at the moment.  Using lzw is not
>  really intended to reduce the amount of disk needed but is done as a
>  way to speed up the hibernate process.  Writing disk is slow and if
>  that can be reduced then hibernation is faster.  But it might work to
>  your advantage anyway.

Is it me or you also need big enough /tmp. I installed lenny 64 with
/tmp of 512mb with ram of 2gb suspend/hibernate would not work. On a
reinstall (for some other reason)  I made /tmp 2.5gb now both work.
Puzzled...

-- 
Regards,
Sudev Barar

Read http://blog.sudev.in for topics ranging from here to there.


Reply to: