What are nice values and priorities?
IntermediateConceptProcesses, Signals & systemd
Answer
Nice ranges from -20 (highest priority) to 19 (lowest), default 0. It weights CPU share under the CFS/EEVDF scheduler. Only root can lower nice values.
nice -n 10 tar czf backup.tgz /data
sudo renice -n -5 -p 1234
ionice -c3 rsync -a /src /dst # idle I/O class
In systemd: Nice=10, IOSchedulingClass=idle, or better, CPUWeight=.
More on Processes, Signals & systemd
What is the difference between a program, a process and a thread?BeginnerHow are new processes created in Linux?IntermediateWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerExplain the process states shown in ps (R, S, D, T, Z).IntermediateWhy can't you kill a process in D state?Advanced