User Tools

Site Tools


processes:change_process_priority:change_process_priority

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
processes:change_process_priority:change_process_priority [2016/11/23 19:04] peterprocesses:change_process_priority:change_process_priority [2019/12/01 22:31] (current) – removed peter
Line 1: Line 1:
-====== Processes - Change process priority ====== 
- 
-Use **nice** and **renice** commands. -20 highest priority,  19 lowest. 
- 
- 
-===== Start process at lowest priority ===== 
- 
-<code bash> 
-nice -n 19 ./process_intensive_task 
-</code> 
- 
- 
-===== Change priority of running process ===== 
- 
-Assuming the PID of the process to change is 123: 
- 
-<code bash> 
-renice -1 123 
-</code> 
- 
-This will set the priority of process id no 2345 to -4, which will in turn increase its priority over others. 
- 
-<code bash> 
-renice -4 -p 2345  
-</code> 
- 
- 
-This will set the priority of the process id 3456 to 13, and all the process owned by user "john" to the priority of 15. 
-<code bash> 
-renice 13 -p 3456 -u john 15 
-</code> 
- 
- 
-This will set all process owned by "john","peter" and also the group "custom" to 14. 
- 
-<code bash> 
-renice 14 -u john,peter -g custom  
-</code> 
  
processes/change_process_priority/change_process_priority.1479927899.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki