Code-Memo

Disk performance tuning

Measure first

Identify what’s slow:

Quick checks:

lsblk -o NAME,TYPE,SIZE,ROTA,MOUNTPOINTS
df -h

Observe IO

If installed:

iostat -xz 1 5

Per-process:

pidstat -d 1

Common levers

Caching and memory

SSD vs HDD