Use it when configuring, checking or troubleshooting Read / Write Ratio in Storage Performance.
Read / Write Ratio
The read/write mix changes cache usefulness, backend bandwidth, parity/replication overhead and media behavior. Ratios must state whether they refer to operations or bytes and should be measured over representative intervals because workload phases can differ dramatically.
1. Read/write ratio shapes design (RAID level, cache, media).
2. Typical OLTP 70/30.
3. Write-heavy → mirrors, PLP SSDs.
4. Benchmark with the real mix.
5. Track over time.
mix → design choices → performance
Context & applicabilityCommon mistakes · platform/version boundaries
The ratio describes workload composition only, but it does not show performance, backend cost or capacity without the other workload dimensions.
Suspicious evidence: a single average ratio is used for all sizing, ops and bytes are mixed, or backend write fraction grows sharply because of amplification.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Measurement path Verify boundary
logical read/write demand → cache/coalescing → protocol/storage service → backend read/write operations → media cost
Healthy evidence: measured production mix is stable or phase-aware, frontend/backend differences are explainable and tests reproduce peak write-heavy periods.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A 70/30 ratio is ambiguous unless it states operations versus bytes.
- Read/write ratio alone does not describe block size, randomness or concurrency.
- Frontend ratio can differ from backend ratio because of cache, coalescing and write amplification.
- An average daily ratio can hide short write-intensive peaks that set capacity requirements.
iostat -x 1— reads vs writesfio --rw=randrw --rwmixread=70 ...— mixed testarray stats— R/W ratio
ReferenceImportant terms & boundaries3 sections · depth on demand
Measurement
The ratio describes workload composition only, but it does not show performance, backend cost or capacity without the other workload dimensions.
In depth
Why the ratio matters
The read/write mix decides which part of a storage design is under pressure: reads are served by caches and many spindles/flash channels; writes pay for parity, replication, journaling and flash write amplification. The same IOPS figure is easy at 90 % reads and hard at 70 % writes on RAID 6.
Measure it from kernel counters
The iostats documentation lists separate fields for completed reads (field 1), sectors read (3), completed writes (5) and sectors written (7).
$ cat /sys/block/sdb/stat
5123451 20341 409876544 987654 9876543 45123 1580246880 3456789 0 2345678 4444444 0 0 0 0 0 0
$ iostat -dx 60 2 sdb # second report = last 60 seconds
Device r/s w/s
sdb 210.0 640.0
Ratio by operations: 210 / (210 + 640) ≈ 25 % reads. Ratio by bytes uses rkB/s and wkB/s and can differ a lot when reads and writes use different block sizes.
Rule-of-thumb effect of writes
| Layout | Back-end operations per random host write |
|---|---|
| RAID 1/10 | 2 |
| RAID 5 | 4 (read data, read parity, write data, write parity) |
| RAID 6 | 6 |
| 3× replication (Ceph and similar) | 3 writes over the network |
These are planning approximations; controller caches and full-stripe writes change the real numbers.
Use it
- Size arrays and benchmarks with the measured ratio (
fio --rw=randrw --rwmixread=25). - Measure over a business cycle, not a quiet minute — backups and batch jobs flip the ratio.
- Track it per LUN; a single write-heavy database can dominate a shared array.
*The block-device counters and per-second operation rates are fictional values for calculating workload composition.*
Worked example
The read/write ratio decides how much the RAID write penalty matters. Back-end IOPS = R + W × penalty.
| Front-end 10 000 IOPS | RAID 10 (2) | RAID 5 (4) | RAID 6 (6) |
|---|---|---|---|
| 90 % read | 11 000 | 13 000 | 15 000 |
| 70 % read | 13 000 | 19 000 | 25 000 |
| 50 % read | 15 000 | 25 000 | 35 000 |
Find the ratio with iostat -x (r/s vs w/s), perfmon (Disk Reads/sec vs Disk Writes/sec) or the array's per-volume statistics, measured at peak.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Performance → Read / Write Ratio. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/admin-guide/iostats.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Storage Performance → Read / Write Ratio performance map
Fast measurement, correlation and proof boundaries for Storage Performance → Read / Write Ratio.
| Measure/boundary | What to read | Proof limit |
|---|---|---|
| Workload shape | Block size, random/sequential pattern, read/write mix, concurrency and working set | Without workload shape, performance metrics are not comparable |
| Service rate | IOPS and throughput at the same time window | High service rate does not prove low latency or efficiency |
| Delay/queueing | Average plus tail latency and outstanding queue depth | A spike identifies pressure, not automatically root cause |
| Acceptance | Representative workload meets its latency/throughput objective in steady state | Required to close the performance investigation |