Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > Minimizing CPU Usage

Minimizing CPU Usage
Thread Tools
ChillyWilly5280
Junior Member
Join Date: Jun 2006
Status: Offline
Reply With Quote
Jun 25, 2006, 02:45 AM
 
Recently I learned that the BOINCManager window uses on average about 8% of my 1.25 G4's cycles. Closing the window, and using Boinc Stats Viewer (download link) saves me most of that 8% because it updates only manually instead of continuously, or intermittently if you select the Watchdog option.

Also, using the freeware utility Onyx (Jaguar and Panther users will need an older version) I enabled the "Quit Finder" option, and then did just that.

Now if someone could tell me how to run BOINCManager in SU or Console mode, that would be great. I don't want to switch to the CL version because Terminal aint my thing and I do like to see the Statistics graph from time to time, or the screen saver for 5 minutes.

So does anyone else have any tips & tricks to maximize the CPU cycles available for BOINC?
     
reader50
Administrator
Join Date: Jun 2000
Location: California
Status: Offline
Reply With Quote
Jun 25, 2006, 02:04 PM
 
If you are willing to slow down other things your Mac is doing, then you can increase the priority of BOINC. Use Activity Monitor (Process Viewer in older OSX versions) or 'top' (in Terminal) to find the PID of the worker. Assuming nothing else is running, the worker will be using the most CPU. Then give the following command in Terminal:

renice -19 xxxx

... where 'xxxx' is the PID of the worker. This sets the worker to maximum priority, it will run a little faster at the expense of everything else. note: you can quit the Terminal after giving that command.

If it's slowing other things down too much, you can reset it as follows:

renice -19 xxxx (maximum priority)
renice -10 xxxx (high priority)
renice 0 xxxx (average priority)
renice 10 xxxx (low priority)
renice 19 xxxx (minimum priority)

The nice values in between are valid too. Supposedly the scale goes from -20 to +20, but I tend to avoid the '20' values because they weren't always honored on past versions of OSX. They ought to work in Tiger.

You can directly set a process to a lower priority (positive numbers). However, unless you run as root, you will need to su to root (or sudo) in order to set higher priorities (negative numbers). If you aren't the root user, then you do it like this:

sudo renice -19 xxxx

... the Terminal will ask you for the root password. Type it in, and the command will execute. You may need to enable the root user account first. You do that in NetInfo Manager (in the Utilities folder). Security menu -> Enable Root User. It will ask for a password to be set. Give one, then exit NetInfo Manager.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:37 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,