Search the mailing lists for cpucap. I had reposted a patch that someone
else had done that would apply to 2.6.8 I believe that actually limits the
% of CPU that a process can use and not just the time it can be running.
Buggy, no guarentees, not supported and I can't even really remember how
it worked, but you might have some luck with it.
--
Jason
The place where you made your stand never mattered. Only that you were there..
And still on your feet.
On Wed, 17 Aug 2005, Gordon Russell wrote:
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
-------------------------------------------------------
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