-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnice-renice.txt
More file actions
22 lines (15 loc) · 844 Bytes
/
nice-renice.txt
File metadata and controls
22 lines (15 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Changing nice / renice values for cpu process prioritization.
#find the PID of the process you want to proiritize by using "sudo htop"
Command to change the value, example:
#changes the proirity to a "-15" value giving the process a higher cpu proirty, in this case, my "Plex Media Serv" running in a Docker container.
sudo renice --priority -15 --pid 31041
# the bigger the negative number, the more proiritiy it is given.
#Value Range: 20 to -20. The More positive the value, the priorority is lessened.
#Change value using the --user flag
#Example the --user I am adjusting is PlexMediaServer
sudo renice --priority -15 --user 297536
# Learned information from howtogeek.com;
Post URL:
https://www.howtogeek.com/411979/how-to-set-process-priorities-with-the-nice-and-renice-commands-in-linux/
Credit =
DAVE MCKAY of How-To Geek