From: N. Sridhar <shaggy@sd...> - 2002-01-06 08:08:15
i see that the uml takes 16mb ( out of 128 mb) ram. So, i tried to increase
the memory by adding "fast" swap ( which was nothing but a file on ramdisk).
First i mounted the ramdisk
#mount -t ramfs /dev/ram /mnt/tmp
Next I created the swapfile
#dd if=/dev/zero of=/mnt/tmp/swapfile bs=10M count=1
#chmod 777 /mnt/tmp/swapfile
and then to the uml i passed
$ linux ubd0=rootfs.img ubd1=/mnt/tmp/swapfile devfs=nomount
And inside the uml, i did
So far, so good. If i increase the swapfile size on the host machine, the ram
gets decremented, but even if it is in a precarious situation, the swap of
the host machine is never used for the other applications. in other words,
the kernel does not use the extra space swap device, if the ramfs occupies
too much of memory. I just thought i wanted to go all the way, and saw in the
end that on the host i had approx 1MB free memory, 325MB free swap ( that's
right, i have a huge swap partition) and there is not enough memory for the
What could change things so drastically ?
Is there a better method to increase memory to the uml other than using a
ramdisk mounted swap file ?
Love at first sight is one of the greatest labor-saving devices the world has
Get latest updates about Open Source Projects, Conferences and News.