1837712 Members
5130 Online
110118 Solutions
New Discussion

Re: what is nice %?

 
danny_28
New Member

what is nice %?

Hi.

top command.

Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.37 14.8% 0.0% 0.6% 84.6% 0.0% 0.0% 0.0% 0.0%
1 0.37 3.2% 0.4% 3.0% 93.5% 0.0% 0.0% 0.0% 0.0%

USER+NICE+SYS+IDLE = 100%

what is nice %???

Thanks for your help.
2 REPLIES 2
Jeff Schussele
Honored Contributor

Re: what is nice %?

Hi Danny,

Nice is a term for a process priority change. Most often the lowering of priority but sometimes an increase.
The nice value in top is the CPU % of time spent with processes that have been shifted from their default priority.
Processe priority can be altered by the owner of the proc, root or most frequently the OS itself.

If you run a command in the background using "&" you lower the default nice value of the process by 4. The thing to remember is the higher the nice number - the lower the priority.

Default nice value is 20. The possible values are 1 <-> 40.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ashwani Kashyap
Honored Contributor

Re: what is nice %?

nice depicts the priority of a process . The higher the nice value lower is the priority .
You can start a process to run at a certain priority using nice .
You can change the priority of a running process using renice .