Apply for Free VPS

Reduce disk I/O on hard-disk storage

Updated 27 Nov 2026 performance disk hdd

Find heavy readers and writers and make applications kinder to a spinning disk.

Hard disks (HDD) move data in long runs reasonably well and handle many small random operations slowly.

Measure

sudo apt install -y sysstat iotop
iostat -xz 5          # watch await and %util
sudo iotop -oPa       # which programs

Reduce reads

  • Give databases enough buffer memory so common data stays in RAM.
  • Add indexes so queries do not scan whole tables.
  • Cache repeated results in memory.

Reduce writes

  • Lower log verbosity and rotate logs.
  • Batch many small inserts into one transaction.
  • Avoid writing temporary files you can keep in memory.
  • Add noatime to the root filesystem options in /etc/fstab if your software does not need access times. Test with sudo mount -o remount /.

Schedule heavy work

Run backups, indexing and builds one at a time, at quiet hours:

ionice -c2 -n7 tar -czf /tmp/site.tar.gz /var/www

Avoid

Do not benchmark repeatedly with large write tests on a shared host.

Was this helpful?

Report outdated or incorrect information