Hibernation woes

NoOp glgxg at sbcglobal.net
Sat May 10 21:57:46 UTC 2008


On 05/08/2008 11:28 AM, Derek Broughton wrote:
> Ted Hilts wrote:

>> 
>> ted at Ubuntu:~$ free
>> total used free shared buffers cached
>> Mem: 2596008 1453768 1142240 0 268616 510000
>> -/+ buffers/cache: 675152 1920856
>> Swap: 854272 500192 354080
>> ted at Ubuntu:~$
>> 
>> The above is with 5 desktops with at least 1 very big application and a
>> dozen small applications and including VNC.
> 
> So you need a bigger swap partition (or perhaps just an extra one - I'm not
> sure if hibernate can handle split partitions).
> 
> You have ~1.4GB of memory in use, and ~0.8GB of total swap space.  Some
> compression occurs, and probably some memory that is known to be
> discardable will be left out of swap altogether, but there's still no
> chance that you can cram the memory being used for all that into your swap.
> 
> You've probably been misled by suggestions on the web that if you have so
> much real memory, you don't need a large swap space.  And for normal
> operation, that's true, because if you have more physical memory than you
> ever use you won't use swap.  But since hibernation essentially works by
> swapping out everything that's currently running, you need _at the very
> least_ as much swap space as you have physical memory.

Or perhaps it might be easier to use a swap file instead:

https://help.ubuntu.com/community/SwapFaq
[How do I add more swap?]

I've just done this on my old A21M laptop with only 128MB of memory and
a single partition on a 30GB drive. I didn't want to repartition/size to
increase the swap, so I just followed the instructions in the SwapFaq to
add another 1GB of swap to the 360.80MIB swap partition that was
installed by default. Modified:
sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512
to
sudo dd if=/dev/zero of=/mnt/1024Mb.swap bs=1M count=1024
etc.

Free now shows 1418020 total for Swap; it added the 1GB to the existing
partition. Now whether it will make any difference on a 800Mhz/128MB
machine is yet to be fully decided, but I now find that I can open up
multiple large programs (albeit slowly) where I was unable to do so
before :-)

So that might the way to go.





More information about the ubuntu-users mailing list