Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

renice functional in 10.1 UNIX
Readers will appreciate that the 'renice' command [Editor: This command changes the default CPU allocation of currently running tasks] appears to be fully functional in 10.1. I started two instances of the distributed.net client and then used 'top' to examine the CPU usage of each. Read the rest of the article if you'd like to see the results (and they're notably changed from what would be seen under 10.0.4!).

First example, both processes have the same priority (the default):

PID COMMAND      %CPU
634 dnetc 45.3%
629 dnetc 44.4%

The output varied a bit but never diverged much beyond an equal percentage for the two processes.

Second example, the first process is set at priority -20 (the highest) and the second at 20 (lowest) with the following commands:

sudo renice -20 634
sudo renice 20 629

Top will then show something like this:

PID COMMAND      %CPU
634 dnetc 70.5%
629 dnetc 20.2%

Previously, running renice showed no appreciable change in the percentage of CPU time a process used. This opens the door to further optimize performance in OS X in certain specific cases.

- Iceberg

    •    
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,789 views]  

renice functional in 10.1 | 0 comments | Create New Account
Click here to return to the 'renice functional in 10.1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.