Using renice to speed up VPC5.0

Jan 02, '02 02:37:17PM

Contributed by: aelana

I am not sure how much this actually speeds things up; it seems to make some difference, but I do not have benchmarking software installed to actually test.

In my Applescript that I use to activate VPC5.0, I include the following line after the activate...

  do shell script "sudo renice -20 `ps -x | grep 'Virtual PC 5.0' |
grep -v 'grep' | cut -f1 -d' ??'`"
[Note: Enter on one line with a space before the 'grep' command]

This re-nices the VirtualPC process to -20 (the highest priority). Note to do this, you need to do the following from the terminal:
  sudo visudo
and then add the following line to the file and save it:
  %admin ALL=NOPASSWD: /usr/bin/renice
What this does is allow any user in the admin group to run renice as root without entering a password.

If anyone has benchmarking software, I would be interested on how much (if any) this makes a difference).

Comments (9)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020102143717912