Change priority on processes with the nice command
Have you ever had the need to run your unprioritized benchmarkings or other resourcedevouring stuff on a server without taking too much of the servers resources? Well, I have, and for that you need the help of a tool named nice.
The CPU of the server are shared between all running processes, and at start a process is given a prioriy depending of the importance of it. The default for normal usage is 10, -20 is the most important one, usually reserved for the system itself and 20 for the most unfavorable. Now setting the priority is easy. Just open a terminal, GUI:s are for simpeltons
Just typing nice at the commandline throws back your current niceness. Now try typing nice +15 prstat (or top if on linux)
Now open a second terminal and run prstat/top -U your_user_name. You should now se all your running processes and one column named NICE. And if you check for 15 in that column you should find your other top/prstat running at nice 15.
Now if you want to raise the NICE then you can use the renice command, just type nice 19 -p pid_for_prstat/top and see how the priority changes.
If you have root access you can also raise the priority, something not always allowed if you are a commoner.
Enjoy!



