Nice:
It is the
method of prioritizing a process in terms of CPU and Memory.
Nice level ranges from -20 to 19. Where -20 is the highest priority and 19 is the least priority.
List the nice level of process
# ps axo pid, comm, nice => Will return the process id, command, nice level
Set nice level to a process
# nice –n -10 <<Process_name>>

set the nice level of a particular running process
# renice –n 12 <<PID>>

set the nice level of all running process
# renice –n 13 ${pgrep <<process_name>>}
Note: Only privileged user can set the nice level
Nice level ranges from -20 to 19. Where -20 is the highest priority and 19 is the least priority.
List the nice level of process
# ps axo pid, comm, nice => Will return the process id, command, nice level
Set nice level to a process
# nice –n -10 <<Process_name>>

set the nice level of a particular running process
# renice –n 12 <<PID>>

set the nice level of all running process
# renice –n 13 ${pgrep <<process_name>>}
Note: Only privileged user can set the nice level
No comments:
Post a Comment