[X-Unix] limit cpu usage

Brian Medley bpm-list-osx-unix at 4321.tv
Thu Nov 25 20:14:29 PST 2004


On Wed, Nov 24, 2004 at 11:41:08PM -0500, William H. Magill wrote:

> On 24 Nov, 2004, at 20:29, Brian Medley wrote:
> >I've googled around, but haven't found an answer to this
> >question.  I would like to limit the max % cpu a process can
> >have.  Something similar to ulimit; however, ulimit only allows
> >limiting the number of cpu seconds a job can run.
> 
> This is not philosophically possible on a Unix system.
> 
...
> 
> The reason is a long discussion of Operating System theory, but briefly 
> put, Unix simply does not have the "hooks" necessary to implement any 
> useful kind of Resource Control.

Interesting, if you feel like writing more about the subject I'd
like to know.

-- 
~`^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-., \|/  (___)  \|/ _,.-=~'`^`
                                      @~./'O o`\.~@
      "Knowledge is Power"           /__( \___/ )__\  *PPPFFBT!*
         -- Francis Bacon               `\__`U_/'
 _.-=~'``'~=-._.-=~'``'~=-._.-=~'`^`'~= <____|'  ^^`'~=-.,__,.-=
~'^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-.,__,.-==--^'~=-.,__,.-=~'`^`


More information about the X-Unix mailing list