When you benchmark storage for a Cassandra-fed GPU pipeline, measure what the Cassandra read path actually asks of the disk. That means small random reads at realistic concurrency, their p99 and p99.9 latency, and how both hold up while compaction and memtable flushes compete for the same device. Peak sequential throughput and headline IOPS from a synthetic run describe a different workload, so they overstate what the training or inference loop can actually use.
The reason is in how Cassandra reads. CQL queries produce small random reads that can land anywhere in any data file and need low latency, while compaction produces sequential reads that care about throughput, and consuming too many IOPS in compaction cuts into the IOPS left for queries. If storage cannot deliver samples as fast as the accelerators consume them, the accelerators sit idle, and they are the most expensive part of the system. Our overview of AI for AI infrastructure and production SaaS covers how we help teams keep that expensive capacity productive. For the wider path from table to tensor, see Cassandra database performance for GPU-fed AI pipelines.
How Storage Benchmarking Works When the Consumer Is a GPU
A storage benchmark drives a defined I/O pattern (block size, read/write mix, queue depth, access distribution) at a device or volume and records IOPS, bandwidth and the latency distribution. fio, the standard tool for this, lets you set random reads, the read percentage of a mixed workload, and skewed access distributions such as Zipf or Pareto instead of uniform random I/O. The result only means something to the extent that the pattern matches production. AWS’s own EBS benchmarking guide says to use commands that approximate the workloads your volumes will support. The Netflix NDBench authors make the same point about data stores more bluntly: vendors tend to report numbers for the “sweet spot”, on optimised hardware and benchmark configurations.
For a GPU pipeline the useful question is narrower than “how fast is this disk”. It is how many rows per second the storage can sustain at the tail latency the data loader can tolerate, with background maintenance running. MLCommons frames its MLPerf Storage benchmark the same way: the training test measures how many accelerators a storage system can keep busy, and a result is valid only if simulated accelerators stayed busy at least 90% of the time for Unet3D and 85% for RetinaNet. Our breakdown of what MLPerf Storage measures and where GenAI data pipelines break goes further into that suite. Cassandra’s queries issue small random reads, the shape of MLPerf’s small-request, IOPS-dominated workloads rather than its large sequential streams.
A Sequential Headline Number Describes a Different Workload
Request size and access pattern change what a drive delivers. In fio measurements on NVMe published in 2025, 1 MiB random reads and writes closely tracked their sequential counterparts because transfer size dominated, while at 4 KiB the access pattern and submission concurrency decided IOPS. In the same study, 4 KiB IOPS rose from about 80K with one job to about 600K with 16 jobs, which the authors read as a host-path limit at low concurrency, not a media limit. A single-threaded benchmark and a heavily concurrent loader can therefore see very different ceilings on the same drive.
Rustyrazorblade’s 2025 compaction-throughput write-up measured a gp3 volume with 3,000 provisioned IOPS and showed the same IOPS budget giving very different bandwidth depending on request size:
| Request size | IOPS | Throughput |
|---|---|---|
| 4K | 3,049 | 11.9 MB/s |
| 16K | 3,013 | 47 MB/s |
| 64K | 1,938 | 121 MB/s |
Cassandra’s on-disk request size is not the row size, either. During a read, Cassandra has to read and decompress the whole compression chunk, so a 256 KB chunk means reading 256 KB even when the query needs a few bytes. The Last Pickle (2018) puts the arithmetic plainly: 256 KB per read at ten thousand requests a second is 2.5 GB/s off disk. In their mixed read/write test, 4 KB chunks beat 64 KB chunks on throughput (62K against 44K ops per second) and on read p99 (13 ms against 24 ms). AWS’s Cassandra-on-EBS guidance warns that large chunk lengths can push a volume into its throughput limit even at low request counts. That makes chunk_length_in_kb an input to the benchmark design: the random-read block size you test should be the chunk size your tables actually use.
What Read Pattern Should I Benchmark to Match How Cassandra Feeds a Training Loop?
Benchmark small random reads at the table’s chunk size, with a skewed key distribution and realistic concurrency, while sequential compaction reads and flush writes run against the same device. Run this at two levels: a device-level fio job that isolates the disk, and a Cassandra-level run that includes the database’s own behaviour.
Device Level: Fio Shaped Like Cassandra
At device level, these settings move fio from a datasheet test to something resembling the read path:
- Random reads at chunk size, bypassing the page cache. AWS’s EBS procedure uses
--rw=randread --bs=16k --direct=1 --numjobs=16 --time_based --runtime=180as its random-read example; setbsto your compression chunk length instead. - Skewed access. fio can pick files by
zipforparetodistribution, and NDBench offers a Zipfian key distribution to separate hot from cold keys. NDBench’s authors note that locality matters because it exercises the page cache and other caches as well as the disk’s IOPS. - Queue depth tied to the budget. For SSD-backed EBS volumes, AWS recommends a queue length of 1 per 1,000 provisioned IOPS, tuned upward until you reach provisioned IOPS, throughput or the optimal system queue length of 32.
- A fixed arrival rate. fio’s documentation shows a random-read job with
io_submit_mode=offload, a fixedrate_iopsandrate_process=poisson, so submission runs independently of device completion and latency reporting avoids coordinated omission. - Concurrent background load. Run a second, sequential job alongside to stand in for compaction and flushes;
rwmixreadsets the read share within a job. - Steady state, not the first minutes. fio can stop a job only once IOPS or latency have stabilised, after a ramp period, and its SPRandom option preconditions SSDs to a steady-state distribution of invalid blocks.
In the 2026 EBS study discussed below, a local SSD’s throughput fell 63%, from 2.7 GB/s to 1.0 GB/s, after 90% of its capacity had been written, and eventually reached 149 MB/s under sustained writes.
Cassandra Level: Your Schema, Your Data, Long Runs
The cassandra-stress user mode lets you stress your own schema and queries instead of the default table. The Last Pickle’s account of modelling a production workload with it lists the traps. Short runs may serve reads entirely from memtables and never touch an SSTable. Random generated payloads compressed at ratios of 0.6 to 0.9, against 0.15 to 0.25 in production, which meant the test could not keep up with compaction and read latencies ran far higher. They recommend separate read and write commands, each with a fixed throttle, to get a realistic ratio and avoid coordinated omission, and they conclude that short stress sessions have very limited value: reads must come from disk and serious compaction must have started. NDBench was built for the same reason, running long tests that expose sensitivity to OS disk cache hit ratios and the effect of compactions, repairs and node replacements.
Which Storage Metrics Turn into Lost GPU Time
Start with random-read latency at p99 and above, measured while compaction runs. A training batch assembled from many rows waits for its slowest row, and Dean and Barroso (CACM 2013) show how this fan-out magnifies tails: if one server has a one-second p99, a request that needs responses from 100 such servers is slow 63% of the time. AxonOps’ Cassandra diagnosis guide observes that average CPU, read latency and disk throughput can all look acceptable while one read path at one consistency level gets materially worse in p99.
| Metric | What it tells you | How it reaches the GPU |
|---|---|---|
| Sustained random-read IOPS with compaction running | the query budget left after background work | caps rows per second, and so samples per second |
| Compaction throughput and write amplification | how much background I/O every write creates | consumes IOPS and bandwidth the read path needs |
| Device latency distribution (biolatency) | how slow reads are once they miss the page cache | the cost of each cold row |
| Page cache hit ratio (cachestat) | whether reads reach the disk at all | decides whether disk latency matters |
Write amplification belongs in a read benchmark because Cassandra’s LSM design re-writes every piece of data several times through compaction, which adds background I/O to the database workload. How much depends on the compaction strategy: the Unified Compaction Strategy proposal (CEP-26) describes a single parameter that trades write amplification against read amplification, with tiered settings suiting write-heavy workloads. The same Cassandra-on-EBS guidance suggests 32 MB/s of compaction throughput as a starting point and warns that very high settings cause disk-usage spikes that harm latency.
Background activity is also where tails come from. Dean and Barroso note that SSD garbage collection can raise read latency by a factor of 100 with even modest write activity, and that periodic compactions cause latency spikes. In NDBench runs, Netflix saw p99 read latencies as high as 100 ms on NVMe-equipped i3 instances; the cause was a kernel with no multiqueue disk scheduler, so background page-cache flushes saturated the drives with writes, and moving to Linux 4.13 with the Kyber scheduler brought p99 back to acceptable levels. The authors say they would not have seen it without long-running mixed workloads.
Attributing Lost Useful Time to Storage
Mohan et al. (VLDB 2021) found that DNN training time is often dominated by data stalls, time spent waiting for data to be fetched and preprocessed, and measured them with a differential technique. For a Cassandra-fed loop, time the training step with rows coming from the cluster, then with the same rows already in host memory. The difference is the stall, and stall time multiplied by GPU-hours is the useful capacity the storage layer is costing you. Then, separately, break that stall into Cassandra time and preprocessing time before blaming the disk. The GPU-side half of that measurement is covered in our guide to measuring GPU benchmarks for AI.
Tail Numbers the Harness Can Invent
Older cassandra-stress versions reported service time rather than response time from the intended schedule, which produced coordinated omission; the fix shipped in version 3.8. A 2021 study of database benchmarking found that the JVM and garbage collector chosen for a Java harness can raise maximum latencies by orders of magnitude while median, p95 and p99 stay largely unaffected. Java harnesses are fine for throughput and p99, the authors conclude, but extreme tails need care. On the fio side, computing percentiles from interval averages is inaccurate; log_hist_msec logs histograms that keep percentile accuracy.
How to Benchmark NVMe Against Provisioned-IOPS Network Storage
Run the same Cassandra-shaped job on both, and expect them to fail differently. Local SSDs fluctuated, and degraded under sustained writes; network volumes’ latency rose when write workloads exceeded their budget. A 2026 black-box study of elastic block storage on AWS and Alibaba Cloud measured both sides with fio, io_uring and direct I/O across I/O sizes and queue depths.
| Local NVMe | Provisioned network volume (EBS-style) | |
|---|---|---|
| Per-I/O latency | lowest; small-I/O gaps to network volumes reached 39.3× and 14.3× on average | high per-I/O cost, worst for small, low-queue-depth I/O |
| Random reads specifically | gap narrower: 6.3× average, 8.7× at P99.9 for one volume | random reads suffer least relative to local SSD |
| Throughput stability | the local SSD tested fluctuated between 2.6 and 4.6 GB/s across write ratios | stable at the provider-guaranteed values |
| Failure mode | throughput collapse from GC under sustained writes | latency rises sharply past the IOPS or bandwidth budget |
| What to test | preconditioned, long, mixed runs | runs at and above the budget, compaction included |
When write workloads exceeded their IOPS budget, low-end volumes in the study saw P99.9 latency rise 15.1× and 73.3×, and even high-end volumes rose 1.5× and 5.7×. Exceeding the bandwidth budget hurt too, so both limits need watching. The study found AWS’s token refill interval is very likely one second, and AWS’s Cassandra guidance warns that micro-bursts shorter than the CloudWatch collection interval can throttle a volume without showing up there; iostat’s tps column shows how close you are to provisioned IOPS.
Compaction has to fit inside that budget, with headroom for reads. On a gp3 volume with 3,000 IOPS, compaction peaked at exactly 3,000 IOPS while achieving only about 51 MB/s, because it read compressed chunks one small read at a time; a change to read 256 KB buffers delivered about 106 MB/s on roughly 500 IOPS. On NVMe, the same author notes, compaction is not disk-bound and the limit moves to heap allocation rate.
Is the Read Stall in Our Query Design or in the Disk?
Start with host signals, then table signals, and let the two disagree before you decide. AxonOps’ workflow begins with CPU, I/O wait, disk throughput, heap and GC pauses: if I/O wait is elevated and disk throughput is near the node’s practical ceiling, the incident may be infrastructure-driven.
| Signal | Points to storage | Points to query or data model |
|---|---|---|
| I/O wait, disk near ceiling | yes | |
High reads per second in iostat, rising r_await |
yes; often too little memory for page cache | |
| biolatency shows slow device I/O on cache misses | yes | |
| Tombstones scanned per query jumping in p99 | yes; TTL- or delete-heavy patterns | |
| SSTables read per query and live SSTable count rising | either: compaction behind, or a query scanning too much state | either |
| Pending ReadStage tasks, blocked CompactionExecutor | compaction pressure adding read amplification | |
| TCP retransmissions between nodes | neither: the network can look like storage |
SSTables per read is the ambiguous signal, with causes on both sides. If compaction is pending because the disk cannot sustain it, the fix is storage; if a wide or tombstone-heavy partition forces many SSTables regardless, the fix is the data model, and faster disks only buy time. Filtering coordinator latency by consistency level helps here, since it shows whether one path such as LOCAL_QUORUM carries the problem. xfsslower separates file operations served from page cache from those that reached the block device. The query-side causes themselves (partition design, tombstones, consistency) are covered in what drives Cassandra latency and cost for AI inference workloads.
Before Trusting a Storage Benchmark Run
- Reads reached SSTables on disk, confirmed by table histograms, not just memtables.
- Test data compresses like production data.
- The random-read block size matches the table’s compression chunk length.
- Load arrived at a fixed rate, with reads and writes throttled separately.
- Compaction and flushes ran during the measurement window.
- SSDs were preconditioned and the run reached steady state.
- On network volumes, the test went past the IOPS and bandwidth budgets and checked at sub-CloudWatch granularity.
- p99 and p99.9 come from histograms, with the harness ruled out as the source of the extremes.
- The GPU stall was measured against an in-memory baseline, so storage time is not confused with preprocessing.
The published ratios above came from specific drives, volumes, kernels and Cassandra versions, and none of them tells you where your own ceiling sits. Whether the tail you measure is acceptable depends on the service levels the pipeline has to meet, which our page on Cassandra latency, saturation and reliability SLOs for production AI works through.
FAQ
What Is Tail Latency?
Tail latency is the latency at high percentiles of the response-time distribution, such as p99 or p99.9, not the average. MLCommons describes its p99 query latency as “the tail experience, not the average”.
Is Cassandra Read or Write Optimised?
Cassandra’s storage engine is optimised for write-oriented workloads: its LSM-tree design gives a write path without read lookups, at the cost of read performance and write amplification.
What Unit Is Latency Measured In?
Storage latency is usually reported in microseconds or milliseconds. fio’s latency logs record nanoseconds, and its percentile output reports microseconds.