On 17/08/05, Jean-Michel Caricand <[EMAIL PROTECTED]> wrote: > > I want to limit CPU time for a guest instance. What is the best method ? >
ulimit would limit total CPU time if thats what you are after. I run a programme in the background which monitors all the instances and renices them dynamically. Heavy users get niced heavily. It uses a simple ruleset so that heavy users who are reniced can be reniced back to normal again if their usage returns to normal. This works well in my network (50+ instances over 4 machines). The code is integrated into my site, so I cannot send you the code, but it was quite easy to write. This gives "fair usage" to the instances, without an arbitrary CPU time limit. G. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user