25

What does the 'Nice' column represent on the processes tab of the system monitor?

1

2 Answers 2

29

'nice' refers to the priority the process gets on your CPU. This is a number in the range of -20 (highest priority) to 19 (lowest). You'll probably find that most applications you're running are at nice '0', which means that they are running with normal priority and none will get preferential treatment by the scheduler over another.

If you're running an intensive program, you may wish to launch it from a terminal with nice -n 10 /path/to/program. That way it will impact less on the performance of your system.

Note that you need root (sudo) privileges to schedule a process with priority greater than normal (<0). This is to prevent users from being able to bog down the entire system easily, and so that critical tasks can always receive the CPU time they require.

There's a good explanation on Wikipedia too.

2
  • 1
    man nice says the range is actually -20 (highest priority) to 19 (lowest).
    – GabrielF
    Jan 5, 2014 at 17:34
  • @GabrielF ta, fixed
    – Iain Lane
    Jan 6, 2014 at 16:04
4

Nice is not simply priority multiplied by minus one.

You will find that on unix/linux systems that if a task is hogging the processor, then the system does not grind to a halt. This is because the system will dynamically lower this tasks priority.

The niceness influences the base priority. So while niceness can be thought of as negative priority, it will have less effect than priority would have on a Microsoft NT system, as the Linux scheduler is already doing a good job at keeping things nice.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .