OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Limiting CPU to a process or process group?

From: Andreas Kahari (andreas.kaharigmail.com)
Date: Mon Jan 14 2008 - 04:52:38 CST


Hi,

Is there a way of limiting the amount of CPU given to a particular
process or process group? For example, I would want the build of the
qt4 port to use a maximum of 25% of the available CPU, leaving the CPU
75% idle if nothing else is happening on the machine.

I know about 'nice', but it doesn't fulfil the criteria that the
machine is left otherwise idle if nothing else runs on it.

I don't have a real reason for why I would want to do this, I'm mainly
curious as to if it's possible.

Regards,
Andreas

--
Andreas Kahari
Somewhere in the general Cambridge area, UK