Set disk I/O priority with ionice
Push backups, indexing and file scans into the idle I/O class so interactive work never stutters.
01Command
$ sudo ionice -c 3 -p $(pidof updatedb)02What it does
ionice assigns one of three I/O scheduling classes: 1 realtime, 2 best-effort (the default) and 3 idle. An idle-class process only touches the disk when no other process wants it, which is perfect for backups and updatedb index runs. You can apply it to a running PID with -p or wrap a new command.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ionice(1) — Arch Manual PagesEvidence: Shows ionice [-c class] [-n level] [-t] -p pid usage and describes the idle class which only gets disk time when nobody else needs it.
- ionice(1) — Debian bookwormEvidence: SYNOPSIS ionice [-c class] [-n level] [-t] -p PID and options --class, --classdata, --pid are documented, including class 3 = idle.
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.
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.
Show every TCP and UDP socket in listening state with the owning process name and PID — the modern replacement for netstat.