On Thu, Aug 4, 2011 at 5:42 PM, Riccardo Murri <riccardo.mu...@gmail.com> wrote:
> Hello,
>
> I see that each UML instance starts a variable number of threads/processes.
>
> I'm using UML in a batch system (Sun Grid Engine 6.2); SGE kills my
> jobs because they exceed the allowed memory reservation.  My guess is
> that SGE miscomputes the memory usage by computing the total over all
> threads/processes without accounting for shared pages.
>
> Is there a way to limit the number of threads/processes in a UML instance?
> (This would allow me to request an amount of memory equal to N*M,
> where N is the max number of UML threads and M is the memory allocated
> to UML.)

UML starts on the host side per process one helper thread.
(In SKAS0 mode, which is the default.)
So, you can limit the number of host threads by starting less
processes within UML. ;)

Most likely SGE does not detect them as threads because UML uses
clone() to create them...

-- 
Thanks,
//richard

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to