nice configure

Joshua Root jmr at macports.org
Sun Jan 11 00:32:39 PST 2009


Jordan K. Hubbard wrote:
> 
> On Jan 10, 2009, at 11:22 AM, Joshua Root wrote:
> 
>> I just tested on 10.5.6 by running 'nice nbench', and both Activity
>> Monitor and top show it using ~99% CPU...
> 
> A processes' nice factor can generally only be seen to produce results
> when there is enough contention for CPU resources that it *needs* to be
> "nice".  If there's little to no contention for CPU, however, then the
> nice'd process is still going to get pretty much whatever it asks for.
> 
> A much more realistic test would be to run n CPU-hungry processes, where
> n is > the number of cores you have, and then nice one of them.

Are you saying that the problem only shows up when there is scheduling
contention? I realise that it's normal for this example to use all the
CPU despite being niced. It seemed like Adam and William were saying
that any nice process will show 0% CPU usage.

- Josh


More information about the macports-dev mailing list