Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Why Latency Beats Bandwidth in Storage

· 5 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Latency matters more than bandwidth in storage because most real-world workloads—databases, boot times, app launches, file opens—are made of many small, sequential requests where the delay per request (latency) dominates, not the total data moved per second (bandwidth). A drive with 10 GB/s bandwidth but 10 ms latency will feel slower than one with 1 GB/s and 0.1 ms latency for typical interactive use. This guide explains why, how to measure it, and how to choose storage based on latency.

What You'll Need

  • A computer with storage you can test (SSD, HDD, or NVMe)
  • A storage benchmarking tool (e.g., CrystalDiskMark on Windows, fio on Linux, or Blackmagic Disk Speed Test on macOS)
  • Basic familiarity with your operating system's command line (optional but helpful)

Step-by-Step

  1. Understand the difference. Bandwidth is how much data can be transferred per second (MB/s or GB/s). Latency is the time it takes to start a transfer (milliseconds, ms). Think of a highway: bandwidth is the number of lanes, latency is the time to get on the ramp. For small files, the ramp time dominates.
  2. Identify your workload type. If you edit documents, browse the web, or run a database, you do many small reads/writes—latency-bound. If you copy large video files or render 4K footage, you do large sequential transfers—bandwidth-bound. Most users are latency-bound.
  3. Run a benchmark that tests both. Use a tool like CrystalDiskMark (Windows) or fio (Linux). Run a random 4K read/write test (measures latency) and a sequential 1MB read/write test (measures bandwidth). Record both numbers.
  4. Compare the numbers. A typical SATA SSD has ~0.1 ms latency and ~500 MB/s bandwidth. A typical HDD has ~10 ms latency and ~150 MB/s bandwidth. The SSD feels dramatically faster for booting and opening apps because the latency is 100x lower, even though bandwidth is only ~3x higher.
  5. Calculate the real impact. For a 4KB file, the transfer time is (file size / bandwidth) + latency. For an SSD: 4KB / 500MB/s = 0.008 ms, plus 0.1 ms latency = 0.108 ms. For an HDD: 4KB / 150MB/s = 0.027 ms, plus 10 ms latency = 10.027 ms. The HDD is ~93x slower for that small file, purely because of latency.
  6. Choose storage based on latency for interactive use. If you're buying a laptop or building a PC for everyday tasks, prioritize low latency (NVMe SSD with low queue-depth random read latency) over raw bandwidth. For a server handling many concurrent small requests, latency per I/O is critical.
  7. Optimize existing storage for latency. Ensure your OS uses the right driver (e.g., NVMe driver for NVMe SSDs). Disable any power-saving features that park the drive (like Windows' "Turn off hard disk after" setting). Keep at least 10-20% free space on SSDs to avoid write amplification.
  8. Consider network storage carefully. If you use NAS or cloud storage, latency includes network round-trip time. Even with gigabit bandwidth, a 50 ms network latency makes small file operations feel sluggish. For latency-sensitive apps, use local storage or a low-latency protocol like NVMe-oF.

Common Mistakes

  • Only looking at sequential speed. Marketing often highlights maximum sequential read/write, which doesn't reflect real-world small-file performance.
  • Ignoring queue depth. Benchmarks often use high queue depths (many simultaneous requests) which inflate bandwidth but hide latency. For everyday use, queue depth 1 (single request) is more realistic.
  • Assuming all SSDs have the same latency. SATA SSDs (~0.1 ms) are slower than NVMe SSDs (~0.02 ms) due to interface overhead. Even among NVMe, there are differences.
  • Confusing IOPS with latency. IOPS (I/O per second) is the inverse of latency only at queue depth 1. At higher queue depths, IOPS can be high while latency is also high, which is bad for interactive use.
  • Forgetting about write latency. Writes are often slower than reads, especially on consumer SSDs without power-loss protection. Test both.

Tips

  • Use a queue depth of 1 in benchmarks to see the latency that matters for most apps. Tools like CrystalDiskMark let you set queue depth and thread count.
  • Look for "random read 4K" specs on product pages. Lower is better (e.g., 0.02 ms vs 0.1 ms).
  • For databases, use a drive with low write latency and consider power-loss protection to avoid corruption.
  • If you're on a budget, a good SATA SSD with low latency is often better for everyday use than a cheap NVMe with high latency (though most NVMe are fine).
  • Monitor your own usage with tools like Windows Resource Monitor or iostat to see if your disk is busy with small or large transfers.

Troubleshooting

If your storage feels slow despite high bandwidth:

  1. Check if your drive is nearly full—SSDs slow down when less than 10% free.
  2. Run a benchmark with queue depth 1 to see if latency is high. If it is, the drive may be faulty or misconfigured.
  3. Update your storage driver and firmware. Check the manufacturer's support page.
  4. On Windows, ensure TRIM is enabled (run fsutil behavior query DisableDeleteNotify—should be 0). On Linux, check fstrim is scheduled.
  5. If you're on a laptop, check power settings—set to "High Performance" to prevent the drive from sleeping.
  6. If the drive is an HDD, consider defragmenting (only for HDDs, never for SSDs).

If a benchmark shows high latency but you don't notice it: Your workload may actually be bandwidth-bound. That's fine—use the right metric for your use case.

Frequently Asked Questions

Is latency always more important than bandwidth?

No. For large sequential transfers (video editing, copying huge files), bandwidth matters more. But for typical interactive use and databases, latency is the bottleneck.

How do I measure latency on my storage?

Use a benchmark tool that reports random 4K read/write latency in milliseconds. CrystalDiskMark (Windows) and fio (Linux) both do this.

What is a good latency number for an SSD?

For a SATA SSD, around 0.1 ms for random reads is typical. For an NVMe SSD, 0.02–0.05 ms is common. HDDs are around 10 ms.

Does network storage have higher latency?

Yes, network adds round-trip time (often 1–50 ms). Even with high bandwidth, this makes small file operations slow. For latency-sensitive apps, use local storage.

Can I reduce latency on my existing drive?

Sometimes. Ensure the drive is not nearly full, update drivers/firmware, disable aggressive power saving, and use the correct interface (e.g., NVMe instead of SATA if supported). But physical latency limits are fixed by the drive technology.

Why do benchmarks show high IOPS but my system feels slow?

High IOPS often come from high queue depths, which hide latency. For single-threaded tasks (like opening a file), queue depth 1 latency is what matters. Check that number.