I do not remember when I first had this problem, but I made cloonix, a virtual network and I have always tried to have many machines in one PC, uml, kvm or lxc machines in a cloonix network.
The uml need shared memory because the processes inside a vm are processes of the host and they have to "see" the same memory, this shared memory is the virtual machine's, I think. If you set mem=500 or mem=32 it will probably take the same amount of memory in both cases (which is just the minimum needed to run). Try big mallocs inside your uml to see where it is taken, I suppose it will come from shared memory. > > > Thanks for the info, that's a great help. > BTW, > 1. when i change "mem=128M" to "mem=64M", seems it didn't help, still uses > the same amount of /dev/shm. why ? > 2. Where did you learn the /dev/shm info for uml ? > Have a nice day ! > >> Date: Sun, 11 Dec 2011 03:20:44 -0600 >> Subject: Re: [uml-user] The max instance of uml is limited by memory and >> disk size ? >> From: clow...@clownix.net >> To: nin...@hotmail.com >> CC: user-mode-linux-user@lists.sourceforge.net >> >> >> Hello, >> For UML machines, you have to look carefully at the /dev/shm value with >> df, if the used up /dev/shm gets too high, new UML cannot be launched. >> >> To look at the value you have: >> df -h /dev/shm/ >> >> To change it to 2 giga: >> mount -t tmpfs shmfs -o size=2g /dev/shm >> >> Look again: >> df -h /dev/shm/ >> >> >> >> >> >> > >> > Hi all, >> > when i run 60 umls in the same host with "mem=128M""free -m" says >> almost >> > no free memory left. >> > if i run more, all umls got killed. >> > Now if i run uml with "mem=64M", was trying to run 100 umls, but still >> got >> > terminated.Why ? >> > (our goal is to run 200 umls in each host, 4GB memory each host.)(Also >> > disk size is big enough, each rootfs is 0.1 G, 100 of umls is 10G) >> > Thanks ! >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn Windows Azure Live! Tuesday, Dec 13, 2011 >> > Microsoft is holding a special Learn Windows Azure training event for >> > developers. It will provide a great way to learn Windows Azure and >> what it >> > provides. You can attend the event by watching it streamed LIVE >> online. >> > Learn more at >> > http://p.sf.net/sfu/ms-windowsazure_______________________________________________ >> > User-mode-linux-user mailing list >> > User-mode-linux-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >> > >> > ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user