Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process priorities



Very useful, thanks! Looks like the problem is a little more complex than I
imagined. :)

On a side note (but related), should I trust the CPU usage from 'ps u' or
'top'? Seems to me top would be more accurate (greater number of samples),
but top itself seems to consume quite a high percentage of CPU (6-12%). Is
there a reason top consumes so much CPU, in comparison to FreeBSD where top
sucks maybe 2% max?

Cheers,
;) jimmy.

On 17/9/02 11:30 PM, "Pelle Johansson" <email@hidden> wrote:

>
> tisdagen den 17 september 2002 kl 14.51 skrev James Whitwell:
>
>> Hi,
>>
>> I've noticed if I run 2 CPU-bound processes (for testing, 2 copies of
>> seti@home), leave one at the normal priority and nice 20 the other, the
>> nice'd process still consumes about 40% of CPU (this is with 'ps l' --
>> 'top'
>> shows about 20%). I thought that setting nice 20 would mean the
>> process
>> would run only when nothing else was running -- is that right?
>>
> This was discussed around when 10.1 was released. Basically I think the
> conclusion was that it is supposed to work as you describe but a fix is
> a nontrivial issue. I'm sure you're welcome to give it a go.
>
> Check
> <http://lists.apple.com/archives/darwin-development/2001/Oct/11/
> prioritiesrevisited.002.txt>
> <http://lists.apple.com/archives/darwin-development/2001/Oct/12/
> prioritiesrevisited.txt>
> <http://lists.apple.com/archives/darwin-development/2001/Oct/13/
> prioritiesrevisited.txt>

http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.