thilts at mcsnet.ca
Sun May 11 06:30:13 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:
> [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
> sudo dd if=/dev/zero of=/mnt/1024Mb.swap bs=1M count=1024
> 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.
Are you trying to tell me that on a live Ubuntu you used that Ubuntu to
enlarge your swap. I guess it's possible since the swap would be a
separate partition (with no file system). But unless you have free space
not already allocated I would expect some kind of collision between one
partition and the growing swap partition. Did I miss something important
here? Did (in the two commands) you shrunk one partition and then by the
shrunk amount enlarge the other swap partition?
I' afraid to do that with Ubuntu running and my existing swap active.
Perhaps if nothing was running and the hard drive was not fragmented one
might get away with it if their memory were
large enough so that the existing swap was not activated.
I'm waiting for a response from Derek regarding my email.
Another solution might be to shut down the dual boot activating Ubuntu
and XP and use a live Ubuntu CD (if it senses the partitions and hard
drives). Then I think (if its possible?) the Ubuntu partition could be
shrunk and the and the swap partition enlarged to about 4 GBytes. The
thing about this is I don't know if the file system on the Ubuntu
partition would be corrupted -- maybe ext3 is self healing and that's
why you did not have this problem -- I simply don't know. I don't do
very much in the way of partitioning so I lack the necessary insights. I
have done myself in many times by not being careful. Guess I could look
at that URL you mentioned.
Thanks -- we will see what Derek says to all of this -- if he gets
Is it fdisk that you guys use to manually explore a hard drive for
partitions and build partitions on a hard drive??????? Isn't there a
partition tool that will both partition and set up the file system??????
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users