Change a Running Process's Priority with renice
Lower or raise the nice value of a running process so heavy jobs don't make the desktop laggy.
01Command
$ sudo renice -n 10 -p 1234502What it does
Every process has a nice value from -20 (highest priority) to 19 (lowest). renice changes it while the process is already running, so you don't have to kill and restart a long compile or backup. Raising the number makes the process yield CPU time to everything else; lowering it requires root privileges. Find the PID with pgrep or top first.
03Risk
04Undo
$ sudo renice -n 0 -p 1234505Sources
- renice(1) — Ubuntu manpageEvidence: Ubuntu manpage shows renice alters the scheduling priority of running processes, with -p targeting process IDs
- renice(1) — man7.orgEvidence: Man page documents renice -n to adjust the nice value (scheduling priority) of running processes with -p for pid
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.
Show every TCP and UDP socket in listening state with the owning process name and PID — the modern replacement for netstat.
Show every systemd unit currently in a failed state, so you can inspect and restart whatever broke.