renice command: Change the Priority of a Already Running Process
Q. I'd like alter / change the scheduling priority of running processes. How do I change the Priority of a already running process under CentOS Linux or any UNIX like operating systems?
A. If you run CPU-bond processes you must use nice command used to start process with modified scheduling priority / nicenesses. renice command is used to change the priority of a process that's already running.
renice command syntax:
The renice command changes the nice value of a process already running. It's syntax is as follows:
renice {priority} pid
The following will change nice value of process 2243 to 19, enter:
# renice 19 2243
The following will change the priority of process ID’s 1024 and all processes owned by users vivek, enter:
# renice +1 1024 -u vivek
The following will change the priority of process ID’s 1024 and 66, and all processes owned by users daemon and root.
# renice +1 1024 -u daemon root -p 66
Please note that:
- Users can only change the nice value of processes which they own.
- User cannot start processes with nice values less than 20
- User cannot lower the nice values of their processes after they've raised them.
- As usual root has full access to renice command
For more details and options see renice command man page:
$ man renice
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Linux nice command: Run Process With Modified Scheduling Priority ( nicenesses )
- chrt command: Set / Manipulate Real Time Attributes of a Linux Process
- Linux / UNIX: Find out or determine if process pid is running
- Linux find out what process are eating all memory and time allocated to process
- Kill process in Linux or terminate a process in UNIX or Linux systems
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: change process Priority, FreeBSD change process Priority, linux change process Priority, linux renice command, redhat change process Priority, renice, renice command, renice example, renice linux, renice process, system command, UNIX change process Priority, unix renice



June 13th, 2008 (4 weeks ago) at 2:37 am
perfect!