Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

renice not working on Leopard?

Wondering if anybody else has seen issues with "renice" not doing what it is supposed to do?

I used to run BOINC (think "SetiAtHome") applications on my Mac. These apps usually run with postivie "niceness", meaning that they soak up all otherwise unused CPU cycles. On Tiger, Activity Monitor used to show in fact a non-zero "% Nice" value when I had BOINC running.

Since upgrading to Leopard, BOINC is running with 0 "niceness" and Activity Monitor always shows a "0" for "% Nice". This means that BOINC is now more aggressively competing for CPU cycles with other applications, creating a noticeable drag on the system.

I've also tried launching a CPU intensive app from the command line and then using "renice" to change its "niceness" level, to rule out any BOINC compatibility issues with Leopard. The "renice" command does not fail, but it seems to be completely ignored and does not do anything to change a processe's "niceness".

Has anybody else seen this or am I missing something here?

BTW: Did an "Archive and Install". Observed this behavior on an "Early 2006" iMac, as well as on an 1.83 GHz Macbook (but I'd not recommend running something like BOINC on a notebook anyways... ;-))

thanks,

ceci

Mac OS X (10.5)

Posted on Oct 30, 2007 10:19 PM

Reply
6 replies

Nov 7, 2007 1:37 AM in response to ceciat

I have encountered the same problem. BOINC is either not setting Leopard job priorities to play "nice," or Leopard is not adjusting the job priorities as instructed by BOINC. Since BOINC worked "nice" under Tiger, I have to assume that Leopard changed something. A further indication that priority scheduling within Leopard is not working is the fact that the UNIX command "renice" seems to do nothing in Leopard.

It appears that the only solution is to wait for a fix from Apple.

Does anyone have any other thoughts or suggestions?

Nov 7, 2007 4:33 AM in response to ceciat

Renice is still working, but not the display in the activity monitor.
If you ps -l you can see the priority, but it looks like there where some changes. PRIO_MIN and PRIO_MAX ist not -20 and +20 anymore. There is a much finer grade now.
Are there any docs about it, i have not found any, the man page of renice is also the old one.

renice not working on Leopard?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.