Re: hibernate and swap partition size (newbie question)



On 22/02/2008, Bob Proulx <bob@xxxxxxxxxx> 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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • hibernate and swap partition size (newbie question)
    ... be big enough to hold all of the RAM inside it, ... Is it possible to hibernate if my swap partition is smaller than my ... I am trying to figure out if my swap partition size has anything to do ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: hibernate and swap partition size (newbie question)
    ... able to hibernate/suspend to disk properly, ... be big enough to hold all of the RAM inside it, ... Is it possible to hibernate if my swap partition is smaller than my ...
    (Debian-User)
  • Re: Games consoles and energy consumption
    ... uses almost exactly the same energy as your PC will use whilst ... "hibernate" is "write contents of RAM to disk and ... then read contents of RAM back in when powering up". ... "Suspend to Disk" under Linux. ...
    (uk.games.video.misc)
  • Re: timed start pooter and seti tuits
    ... throwing power at the RAM, there's a light on the front that keeps flashing. ... I dislike standby, generally, and while hibernate is clever ... in windoze, AFAIK, hibernate takes a snapshot of the ram and saves it to ... disk, then shuts down more or less. ...
    (uk.rec.sheds)
  • Re: hard drive partition sizes
    ... > digital 120gig hard disks. ... Most people recommend using double your RAM space, ... I have 4GBytes RAM on this machine and since I have lots of disk space, ... I have a 2GByte swap partition on each of 4 hard drives, ...
    (comp.os.linux.misc)

Loading