simX
Unofficial Mac Genius
Here's the trick you need... basically all it does is set the priority of the SETI process(es) to the highest, so they pre-empt all other processes (other than those also set to highest priority, but chances are SETI will hog all the calculations anyway since it's much more processor intensive).
Note that you should NOT, and I repeat NOT , use this when you are at your computer, because it will render your computer horribly slow while using it. Here are the two shell scripts... if you want to use them as shell scripts, just use vi to create these two files (with exactly the following contents).
To make SETI a hog of CPU calculations -- this will require saving as the file as namehere.command, so you can double-click it in the Finder, and then it will open up in a terminal window so you can put in your password (and you must be an administrator): (the lines "BEGIN SCRIPT" and "END SCRIPT" are not included in the shell script)
***BEGIN SCRIPT***
#!/bin/tcsh
top -l1 | grep SETI@home | tr -s " " | cut -d" " -f2 | tr "\n" " " > output.txt
sudo renice -20 `cat output.txt`
rm output.txt
***END SCRIPT***
To make SETI a total nice calculator, and make all other processes preempt it -- this does not require :
***BEGIN SCRIPT***
#!/bin/tcsh
top -l1 | grep SETI@home | tr -s " " | cut -d" " -f2 | tr "\n" " " > output.txt
renice 20 `cat output.txt`
rm output.txt
***END SCRIPT***
Basically these scripts parse the top command for the process #s of your SETI processes, and then changes their priority.
Note that you should NOT, and I repeat NOT , use this when you are at your computer, because it will render your computer horribly slow while using it. Here are the two shell scripts... if you want to use them as shell scripts, just use vi to create these two files (with exactly the following contents).
To make SETI a hog of CPU calculations -- this will require saving as the file as namehere.command, so you can double-click it in the Finder, and then it will open up in a terminal window so you can put in your password (and you must be an administrator): (the lines "BEGIN SCRIPT" and "END SCRIPT" are not included in the shell script)
***BEGIN SCRIPT***
#!/bin/tcsh
top -l1 | grep SETI@home | tr -s " " | cut -d" " -f2 | tr "\n" " " > output.txt
sudo renice -20 `cat output.txt`
rm output.txt
***END SCRIPT***
To make SETI a total nice calculator, and make all other processes preempt it -- this does not require :
***BEGIN SCRIPT***
#!/bin/tcsh
top -l1 | grep SETI@home | tr -s " " | cut -d" " -f2 | tr "\n" " " > output.txt
renice 20 `cat output.txt`
rm output.txt
***END SCRIPT***
Basically these scripts parse the top command for the process #s of your SETI processes, and then changes their priority.