Interview Prep/Linux/Processes, Signals & systemd

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=.

All Linux questions Roadmap: Linux

More on Processes, Signals & systemd