Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 25 down vote accepted

'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.

share|improve this answer
    
man nice says the range is actually -20 (highest priority) to 19 (lowest). –  GabrielF Jan 5 at 17:34
    
@GabrielF ta, fixed –  Iain Lane Jan 6 at 16:04

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 that 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 of an effect than priority would have an a MS-NT system, as the scheduler is already doing a good job at keeping things nice.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.