Skip to content

Research notes / SSD scheduling

Sharing an SSD: who pays for the slowdown?

Published / Updated / Source review and worked arithmetic

Measure each workload alone and together, then keep both relative slowdown and absolute latency. Equal treatment can still leave every workload unacceptably slow.

On this page33 sections

A queue is not a private flash channel

MQSim models separate host queues feeding shared controller and flash resources. Request fetching, address translation, caches and backend scheduling can all affect interference. A limit at one stage does not describe every later stage. Its evaluation distinguishes measurements on commercial devices from simulated resource contention. [2, sections 3.1, 4 and 6.1]

Linux's blk-mq still manages requests between userspace and the device driver. It has software staging and hardware dispatch queues; an I/O scheduler may reorder requests before dispatch. Selecting none does not remove that entire path. Thus, NVMe does not inherently mean every application bypasses the operating system. [4]

Which request is blocking the queue?

First-come-first-served (FCFS) selects waiting work in arrival order and does not interrupt a request already in service. It describes a scheduling rule, not an arrival distribution or a latency guarantee. FIFO cache replacement is a different policy: it chooses what to evict, not what to serve. [Scheduling definitions]

Head-of-line blocking identifies a mechanism: earlier blocked work prevents otherwise-progressable work behind it from proceeding. A busy single server and a long queue alone do not demonstrate spare usable capacity. Ask what the later request could do, on which resource, if the earlier blocker were removed.

Three observations that need different explanations
ObservationInterpretationEvidence to retain
A request waits while the only server worksOrdinary queueing under a nonpreemptive policy.Arrival, service-start and completion boundaries.
A blocked path holds up other ready workA candidate head-of-line bottleneck.The shared path, blocker and resources the later work could use.
A later submission completes firstCompletion order differs from submission order.Request identities and timestamps at both layers.

Ruan and Pai's 2006 study gives a concrete storage-stack example: in their FreeBSD 4.6 setup, an exclusive parent-directory vnode lock stayed held while a child inode was fetched from disk. Other lookups sharing the path could wait even when their needed data were resident. Read-only mounts and disabled access-time updates did not remove this blocking in their tests. Their Flash is a web server, not NAND flash; this is historical evidence, not a diagnosis of current kernels. [Setup and blocking mechanism]

For Linux blk-mq, distinguish staging, dispatch and completion. The documented absence of a completion-order guarantee means a FIFO queue at one layer cannot establish end-to-end FCFS behavior. Separate queues also do not prove independent backend resources. Reordering or bypass must preserve the data dependencies enforced by higher layers. [4] [2]

FlashBlox: isolation has a migration window

FlashBlox reserves channels or dies, then periodically moves data to balance wear. Die isolation retains a shared channel bus; a soft-plane is a software region, not a physical NAND plane. [32, sections 2.2-3.3]

Different evidence, different conclusions

FlashBlox migration measurements and lifetime simulation
EvidenceReported resultBoundary
Migration measurementMapReduce bandwidth fell up to 36.7%; web-search p99 latency rose up to 34.2%.Figure 13 moves 1 GB. The roughly 15-minute full-channel duration is extrapolated.
Lifetime simulation95% of ideal lifetime under the evaluated channel/die-killer workloads.Not measured fleet survival; changing adversarial traffic is excluded from the analytical assurance.

Requests for the erase-blocks being swapped wait while those blocks move. The API also requires erase-granularity log compaction, and tenants cannot borrow each other's pre-erased blocks. These are architectural costs, not merely scheduler settings. [32, sections 3.1.4-3.4 and 4.3]

Our measurement implication: retain migration intervals alongside per-tenant tail latency. A small time-averaged throughput cost cannot establish uninterrupted service. This is source synthesis, not a FlashBlox replication.

How much of a host queue reaches the controller?

MQSim separates queue capacity, offered concurrency and fetch admission. Its configuration names refer to different boundaries. [30]

Three controls in the pinned NVMe model

MQSim queue controls
SettingMeaningDo not equate with
IO_Queue_DepthHost submission and completion queue capacity.Achieved outstanding request count.
Average_No_of_Reqs_in_QueueOffered concurrency for the synthetic QUEUE_DEPTH generator.Controller admission or queue capacity.
Queue_Fetch_SizePer-stream fetch-credit limit in the NVMe controller model.A device-wide limit on every host-outstanding request.

The lifetime of a credit matters. At commit 51f0f2d3fed92d88ef4a0fa61a38024b07bf9d16, Handle_serviced_request decrements On_the_fly_requests and can fetch another pending request before checking completion-queue space. A serviced request may still await completion delivery. This is code-path inspection, not a measured latency result. [31]

Appendix A.3 compares fetch limits of 16 and 1024 with two sequential-read flows. Flow 1 keeps depth 8; flow 2 varies from 8 to 256. The lower fetch limit reduces interference in that simulated comparison. The values are model settings, not measured firmware registers or universal NVMe recommendations. [2, Appendix A.3 and Figure 12]

For a reproducible comparison, retain the code revision, both XML inputs, queue mapping and per-flow alone/shared results. State where each counter starts and ends. Sweep admission separately from offered concurrency; changing both at once cannot isolate their effects. A per-stream limit also makes the mapping of application flows to streams part of the experiment.

Which part of the wait does a host scheduler control?

A Linux I/O scheduler selects work before device dispatch. It cannot reserve private flash channels or make a controller finish a request on time. Record the active choice from /sys/block/<device>/queue/scheduler, where brackets identify it, and retain the settings in queue/iosched when present. [5]

Linux v6.16 source review: mechanisms, not a performance ranking.

Host scheduler choices, mechanisms and limits
ChoiceWhat it controlsWhat to avoid inferring
noneNo elevator policy is attached. Plug merging, request-QoS throttling and resource-dependent queuing can remain. [6] [7]Neither kernel bypass nor guaranteed FIFO completion.
mq-deadlineSector ordering, expiration lists and batching guide dispatch; read preference is balanced against write starvation. [8]A soft dispatch expiration is not a request-completion deadline.
BFQService is accounted in sector budgets; weights influence proportional sharing within an I/O-priority class. Low-latency weight raising also affects service. [9]Weights 200:100 alone do not establish measured bandwidth of 2:1 or an application latency bound.
KyberLatency feedback adjusts device-wide request-domain token depths. [10]A target is a feedback-control setting, not a hard limit for every request.

Queue scope matters. In v6.16, mq-deadline shares its sorting and FIFO state across the hardware queues of one request queue. Do not assume that each hardware queue has an independent scheduler. For requests handled by Kyber, REQ_OP_WRITE selects the write domain; its separate synchronous-request reservation does not make that domain synchronous-only. [8] [10]

BFQ's strict_guarantees trades parallelism for service-order control. In v6.16, the ordinary dispatch path waits while tot_rq_in_driver > 0. A separate dispatch list is handled before that check, so this is not a universal queue-depth-one invariant for all requests. The setting can reduce throughput; record it alongside slice_idle and low_latency before interpreting a comparison. [9] [12]

Kyber's feedback also has a measurement boundary: v6.16 uses histogram buckets for the 90th percentile of device-I/O latency to detect congestion and the 99th percentile of total block-request latency to adjust domain depth. These are not application or fsync() latency percentiles. A bucket estimate is not a per-request deadline. [10]

Persistence is another boundary: a device with volatile cache can acknowledge a write before it reaches non-volatile media. Scheduler selection does not replace flush and FUA semantics. [11]

For a useful comparison, retain kernel version, device path, scheduler settings and priority classes alongside the per-flow measurements below. Compare achieved concurrency and application tail latency as well as throughput. These implementation differences explain what to measure; they do not identify a universal winner.

A priority setting needs a scheduler and an I/O path

Linux I/O priority combines a class with a level. The best-effort levels run from 0 (highest) to 7 (lowest), but support and interpretation depend on the scheduler. Linux 6.12 documents BFQ and mq-deadline support. The realtime class name alone supplies no request-completion deadline. [38]

ioprio_set(IOPRIO_WHO_PROCESS, 0, ...) addresses the calling thread. It does not automatically update every sibling thread; CLONE_IO can share an I/O context. Ordinary buffered asynchronous writes are later issued outside the dirtying thread's context, so its priority setting alone does not identify their priority. [37]

Linux v6.12: requested priority, scheduler policy and rate limits are different controls.

I/O priority scope and scheduler interpretation
ControlMeaningBoundary
Thread ioprioRequested class and level for the selected thread or threads.Not automatically a whole-process setting or a buffered-writeback policy. [37]
BFQMaps within-class priority levels to weights; low-latency weight raising can affect service.Priority alone is not a portable bandwidth ratio. [39]
mq-deadlineDispatches from priority-class queues, with aging for lower classes.The v6.12 dispatch path does not use the within-class level. [40]
cgroup io.maxLimits per-device directional BPS or IOPS, allowing temporary bursts.A rate limit is not a scheduling class or a latency deadline. [41]

Why can the requested weights be misleading? Valente and Andreolini's SYSTOR 2012 study raises weights temporarily to improve interactive responsiveness, at a cost to competing workloads. Its experiments used three single-rotational-disk systems, not modern NVMe SSDs. [42, sections 4.1 and 6.1]

Linux 6.12 documents a second distinction: dispatch order need not be device service order. BFQ's strict_guarantees mode idles when its active queue empties and dispatches only when no request is outstanding. This constrains device reordering but can reduce throughput. Record low_latency, slice_idle and strict_guarantees when interpreting a weight comparison. [39, tunables]

The cgroup I/O controller has a separate io.prio.class policy that can alter request classes. Buffered-writeback attribution needs filesystem support and uses inode ownership, with limits when groups share a writable inode. Requested thread priority and effective request priority are therefore separate observations. [41]

Retain thread IDs, requested class and level, kernel version, active scheduler, cgroup policy and direct-versus-buffered I/O alongside actual per-flow latency and throughput. The mq-deadline comparison is source inspection, not a device benchmark.

Protecting latency is not allocating equal IOPS

IOCost charges modeled device occupancy, not individual completion time. Its weights divide that modeled service; budget donation lets active groups use spare capacity. Equal weights need not produce equal IOPS when requests have different costs. [43, sections 3.1-3.6]

Linux v6.12: three distinct control objectives.

Rate limits, latency protection and modeled service
InterfaceObjectiveBoundary
io.maxLimit directional bytes or operations per second.Temporary bursts are allowed. [41]
io.latencyProtect a group by throttling eligible peers with higher numeric or unset targets.Peer-level protection, not a deadline for every request. [44]
io.weight with IOCostAllocate modeled service across cgroups.Device-keyed io.cost.qos and io.cost.model are root-only; their settings are not per-application SLOs. [45]

Read the implementation as well as the setting name. The v6.12 io.latency branch selected by blk_queue_nonrot counts completions at or above the target and checks missed < max(floor(total / 10), 1). The other branch checks the sample mean. Nonrotational diagnostics expose missed/total, not avg_lat; diagnostic output also depends on blkcg_debug_stats. These are block-layer observations, not application p99. [44, latency_sum_ok and iolatency_pd_stat]

Small samples matter. With 19 completions, one at or above the target fails that nonrotational check; with 20 completions, one miss passes. This follows from integer division and a strict comparison, not a continuous percentile estimator. [44]

The ASPLOS evaluation used Linux 5.6 with IOCost changes from 5.15 and several SSD configurations. Its fast-path overhead comparison disabled throttling; that result is not a bound on application delay under active control. The Linux v6.12 source reviewed here is a separate version baseline. [43, section 4 and Figure 9]

For IOCost, latency QoS feeds back into device-wide issuance; a configured percentile is not an observed application guarantee. [45] Our measurement implication: retain kernel version, enabled controllers, cgroup hierarchy, device settings and application-side timing together. This is source review, not an experiment that changed a live controller.

Priority is not an interruption point

The historical semi-preemptible I/O design makes a long disk request yield between smaller commands, while each command remains non-preemptible. Chunking divides transfer; JIT-seek moves predicted rotational waiting ahead of dispatch; seek splitting divides a long head movement. These rotating-disk mechanisms are not additional Linux SSD scheduler choices. [28, sections 2-3]

There are two distinct questions: how long an arriving request can be blocked, and how long it takes to finish. The TC2005 blocking experiment computes the first from command timings with no high-priority requests present; its actual-preemption response-time experiments are separate. [29, sections 4.1.1 and 4.2.3]

For a uniform arrival over commands t_i plus fully preemptible slack s, mean residual blocking is sum(t_i^2) / (2 * (sum(t_i) + s)). Slack contributes time to the denominator but zero blocking. This conditional window calculation is not an application latency percentile. [29, equations 1-2]

Constructed counterexample: both windows last 16 ms. All times below are milliseconds; durations are invented, not device measurements.

Smaller maximum blocking need not improve the mean
WindowCommands, msSlack, msMaximum blocking, msMean blocking, ms
More slack8882
More active time6 + 6462.25

The second row lowers the longest command but increases mean blocking: more of the same window is non-preemptible. This invented counterexample illustrates the seek-splitting trade-off; it does not simulate a disk. The original design warns that extra motion can consume otherwise preemptible slack. [29, section 2.3]

Thresholds change the comparison too. In the first and second rows respectively, blocking exceeds 2 ms with probability 37.5% and 50%; above 6 ms the probabilities are 12.5% and 0%. The strict exceedance formula is sum(max(t_i - b, 0)) / (sum(t_i) + s) for threshold b >= 0. These are consequences of the same uniform-arrival model, not measured end-to-end deadline misses.

The model excludes other queued requests, switching costs and the new request's own work. The prototype used a profiled SCSI HDD. Neither its results nor this arithmetic establish a current SSD latency guarantee. Measure absolute latency and throughput as well as exposed interruption points. [29, sections 3 and 4.1.1] [28, section 4.3.1]

Download the calculation module and generated values. The original three no-slack examples remain unchanged.

A one-request batch can still reorder reads

The mq-deadline tunable guide describes fifo_batch=1 as first-come first-served. [25] In Linux v6.16, however, sector selection and read preference remain. [8, __dd_dispatch_request]

Source-derived counterexample, not a device trace: only two reads of the same priority are pending: A at sector 1000 arrives before B at sector 100. Both are unexpired. With the latest read position at zero, batching=1, fifo_batch=1 and no special dispatch-list requests, the next selection is B. If A has expired at this decision point, the FIFO-expiry branch selects A instead. [8, deadline_from_pos and dispatch_find_request]

Batch size does not establish global FIFO dispatch, and dispatch order does not establish completion order. For a tuning comparison, record the kernel, expirations, priorities and observed queue state.

WBT: a low minimum does not bound the tail

Linux writeback throttling (WBT) is request-QoS feedback, not another per-task fair-queueing policy. Its wbt_lat_usec setting targets minimum read latency; zero disables the feature and -1 restores the default target. Record the kernel and actual queue setting before comparing workloads. [22]

In Linux v6.12, the completed-sample comparison needs at least one read and three write samples. It reduces write pressure when the minimum read latency exceeds the target. A separate outstanding-read check can also trigger a response. The table isolates the completed-sample predicate; it does not simulate that other branch or the controller's evolution. [23]

Constructed examples, not device measurements: 100 completed reads per row, a 2000-microsecond target, no outstanding read. p99 uses nearest rank, the 99th sorted observation. All latency columns are microseconds.

Completed-sample predicate compared with the read tail
Read populationWrites sampledMinimum, usp99, usReads above targetSample comparison
One fast, 99 slow31001000099 / 100Minimum does not exceed target
Every read above target320012001100 / 100Minimum exceeds target
Exactly at target3200020000 / 100Minimum does not exceed target
Only two write samples21000010000100 / 100Insufficient write samples

In the first row, 99 of 100 reads exceed the target although the minimum does not. That arithmetic disproves a percentile guarantee inferred from the minimum alone; it does not predict a real WBT run. Request statistics begin at io_start_time_ns, so they also omit earlier application waiting. [24]

FlashFQ controls a different quantity: relative progress tags between tasks, with costs and anticipation described above. WBT's queue-wide read feedback is not evidence of those per-task shares. This is our comparison of control objectives, not a measured ranking of Linux WBT against the historical FlashFQ prototype. [21, sections 4-6] [23]

Reproduce the table using the standalone arithmetic module and tests: node --test wbt-window.test.mjs. No kernel setting is changed.

Why a scheduler may wait with work queued

A work-conserving scheduler avoids deliberate idle time with requests waiting. But a synchronous process briefly computing its next request can lose its turn. Anticipatory scheduling can wait for that demand instead of immediately switching requesters. The original framework targeted seek costs and proportional service; it is not prefetching. [20, sections 2-3]

The FreeBSD 4.3 rotating-disk experiments do not predict current SSD gains. [20, section 4] BFQ retains an idling trade-off on internally queueing flash: protecting synchronous service can cost throughput. Disabling waiting is therefore not an unconditional optimization. [9, sections 2-3]

Configuration order matters in Linux v6.16. Enabling strict_guarantees from zero raises a shorter stored idle interval to 8 ms. Later writes to slice_idle or slice_idle_us can lower it, and writing strict_guarantees=1 again does not repeat the clamp. Yet the strict-mode branch precedes the zero-interval test: a zero readback does not prove idling disabled. These are source-derived setting semantics, not measured wait times. [12, bfq_strict_guarantees_store, idle setters and bfq_better_to_idle]

A millisecond zero can also hide a nonzero setting. In v6.16, the slice_idle readback uses integer division. Setting slice_idle_us=500 yields slice_idle=0 but slice_idle_us=500, even with strict mode disabled. Check the microsecond readback before calling the stored interval zero. This is a unit-conversion example, not a measured 500-microsecond wait. [12, SHOW_FUNCTION and USEC_SHOW_FUNCTION]

Our measurement implication: distinguish policy waiting from driver backpressure and outstanding device work. A host-dispatch gap alone cannot show an idle SSD. Keep arrivals, completions, queue scope, kernel version, setter order and final readbacks with any comparison. [4, Operation and Hardware dispatch queues]

Antfarm: whose request reaches the host?

Antfarm inferred guest address spaces from virtual-memory events and supplied process context to a Xen disk scheduler. Identity inference and I/O attribution are separate problems. [Antfarm, sections 4 and 7]

What each scheduling layer could distinguish in the 2006 prototype

Antfarm scheduling visibility comparison
SchedulerVisible identityConsequence
Guest anticipationOnly its own processesMisses competing guests.
Unmodified host anticipationOne backend taskDistinct streams appear interleaved.
Process-aware VMASInferred guest contextsMaintains separate request histories.

VMAS associated reads with the currently active guest context. A queued request could reach the host after the originator had blocked, causing misattribution. More accurate tracking was discussed but not used in this experiment. [Section 7.2]

Historical rotating-disk evidence: concurrent readers each scanned 200 MB of a private 1 GB file. Figure 7 reports roughly 8 MB/s without anticipation versus 20 MB/s with VMAS across the tested placements. This is not a current SSD benchmark or an attribution-accuracy guarantee. [Sections 7.3-7.4]

Our accounting implication: validate the client identifier before comparing fairness. In the equal-entitlement example below, merging clients with 100 and 0 completions into one reported entity raises Jain's index from 0.5 to 1. No request completes sooner. This is illustrative arithmetic, not a measured Antfarm error rate.

Historical contrast: use a rotational gap, not wait for demand

Freeblock scheduling uses an HDD's predicted rotational wait for background transfers. Anticipation above waits for a future demand request; freeblock instead exploits a chosen foreground request's mechanical timing. These are different opportunities, not interchangeable SSD policies. [26, section 2] [20]

The OSDI 2000 evaluation used simulated disk timing, including LFS cleaning and synthetic OLTP scans. FAST 2002 demonstrated external Linux and FreeBSD prototypes. Neither establishes a modern-device performance guarantee. [26, sections 5.2 and 6.2] [27, sections 4-5]

External control is the catch: hidden geometry, cache behavior and timing variation complicate prediction. A late arrival can miss the sector and cost another revolution. The prototype overlapped command overhead and merged adjacent transfers; it did not eliminate those constraints. [27, section 3]

Average progress is not completion: as a scan exhausts conveniently placed blocks, useful opportunities shrink. Raising the remaining work's priority can finish it sooner while interfering with foreground requests. For background maintenance, report coverage and unfinished work alongside foreground latency. This is a source-based measurement implication, not a new experiment. [26, section 6.3]

FlashFQ: limit progress, not just outstanding requests

FlashFQ builds on Min-SFQ(D), adding throttling when a task's last dispatched start tag advances too far beyond the slowest active task. A depth cap alone cannot regulate interference between unequal-cost requests. Tags use estimated request costs, not completion deadlines. [21, sections 4.1-4.4]

Its two anticipation timers serve different purposes. The prototype retained a task's active status for 20 ms to preserve accounting across short request gaps. A separate 2 ms timeout bounded anticipation that blocks dispatch and can leave work waiting. The 20 ms setting does not mean 20 ms of device idling. [21, sections 4.3 and 5]

The Linux 2.6.33.4 prototype disabled ext4 journaling because it did not attribute journal I/O to originating applications. These historical experiments do not establish a current NVMe performance ranking. [21, sections 5-6]

A reservation is not an extra weighted bonus

mClock separates a minimum reservation, a relative weight and a maximum service rate. Its OSDI 2010 evaluation used an ESX prototype with an FC-connected disk array, not a contemporary NVMe SSD. The allocation goal assumes enough capacity to satisfy the admitted reservations. [16, sections 2.1 and 4.1]

Weight-based sharing counts service already supplied under the reservation. It does not first pay every reservation and then divide an independent bonus by weight. [17, Subtleties of mClock]

If capacity later falls below the combined reservations, the original paper divides service by reservation instead. A zero-reservation VM can then starve despite a positive weight. The admission check does not make a minimum rate unconditional under capacity loss. [16, section 2.1]

The original prototype batches nearby requests to improve locality, which can delay reservation service over short intervals. A throughput reservation is not a deadline for every individual completion. [16, section 3.1, Request Location]

The paper uses Little's law to relate outstanding I/O, throughput and average latency when choosing reservations. This mean-value relationship does not bound p99 latency or a particular request's wait. Our fluid table does not simulate completion times. [16, section 3.1, Reservation Setting]

Hesela's constructed two-client fluid example: A/B weights 1/3, reservations 60/0 IOPS and limits 80/120 IOPS. Both clients remain backlogged; requests have equal cost. These are allocation targets, not measured throughput.

Capacity, allocated rates and unused capacity, all in IOPS
Capacity, IOPSA, IOPSB, IOPSUnused, IOPS
10060400
160601000
200801200
2408012040

At 100 IOPS, giving A its 60-IOPS reservation and dividing the remaining 40 in a 1:3 ratio produces 70/30. That is a different policy from the 60/40 constrained allocation. At 240 IOPS, both limits bind and 40 IOPS of capacity remain unused. Our model rejects capacity below the sum of reservations; it does not simulate overload handling, request tags, burst credit or completion latency.

Allocation model, tests and method and assumptions are dependency-free. Run node --test io-allocation-goal.test.mjs beside the downloaded module.

Compare the control boundary with PARDA: hosts use smoothed latency feedback to adjust their issue windows, with bounded queue lengths. Equal issue-window shares can still produce different IOPS when request costs differ. Local latency feedback also diverged in the authors' placement experiment, motivating a shared aggregate latency signal. This is congestion control around a shared array, not a per-request deadline. [18, sections 2, 3.2 and 4]

Ceph Reef adds another boundary. Its mClock profiles configure client I/O, recovery and best-effort service classes using OSD capacity estimates. [19] Each OSD shard has an independent queue, and an operation transferred to the sequencer is no longer controlled by mClock. Thus, a locally configured share alone is not evidence of end-to-end isolation. [17, Caveats] Retain shard count, operation cost and downstream concurrency when evaluating a deployment.

PARDA: above the latency threshold, yet the window grows

PARDA controls host issue windows around a shared array. The issue queue counts requests already sent to the array and still pending, not work waiting at the host. Its allocation unit is a queue slot, not an absolute IOPS entitlement. A local scheduler divides each host's allowance among VMs. [18, sections 2 and 3]

The published update is w_next = (1 - gamma)*w + gamma*((T/L)*w + beta), before window bounds. Here T and L are the latency threshold and feedback estimate in the same units, beta is the host-share parameter and gamma controls smoothing. [18, section 3.2, equation 2]

Subtracting w gives delta = gamma*(beta - w*(L-T)/L). For positive L and gamma, the raw window shrinks only when w*(L-T) > beta*L. At L = T, positive beta still adds gamma*beta. A threshold crossing alone does not determine the update's sign.

Constructed equation evaluations, not device measurements: T = 20 ms, L = 25 ms, beta = 4 request slots and gamma = 0.5. Continuous windows are bounded to 1-64 slots; none of these three updates is clipped.

One update at the same above-threshold latency; all values in request slots
BeforeAfterChange
1011+1
20200
3029-1

These inputs reduce the equation to w_next = 0.9*w + 2. Keeping L fixed gives an unconstrained fixed point of 20 slots, but real latency changes with load. This is not a closed-loop stability proof. Bounds may suppress movement, and the calculation excludes latency estimation, demand adaptation, integer dispatch and request service.

Feedback scope also matters. Host-local latency signals diverged in the authors' placement experiment; their final prototype used cluster-wide aggregation. Sustained VM underutilization reduces effective shares, so an idle VM's entire share is not simply inherited by its active neighbors. [18, sections 3.4 and 4.1-4.2]

For an evaluation, retain the latency population, host/VM mapping, configured and effective shares, window bounds and host-side waiting. Check completion rates and tail latency separately. Neither this equation nor the historical ESX results establish a modern SSD performance guarantee.

The matching corpus entry supplies the calculation, tests and generated inputs and results. Run node --test model.test.mjs beside the downloaded module.

A rate limit still needs a burst budget

A token bucket combines a refill rate with finite credit capacity. In a strict ideal model, admitted charge over t seconds is at most B + R*t, where B is the burst capacity and R the refill rate. This bounds admission, not completed IOPS. [33, Appendix A]

Illustrative arithmetic: a full bucket holds 20 operation credits, refills at 100 credits/s and charges one credit per operation, with no additional peak limit. These upper bounds are not Ceph/QEMU predictions or device measurements.

An ideal rate and burst budget over three observation windows
Interval, sRefilled creditsMaximum admitted operations
0.11030
1100120
1010001020

An indivisible request costing more than B credits cannot conform to this strict model, even after waiting: the balance never exceeds B. RFC 3290 also describes loose meters that borrow credits. The strict envelope above is not a specification of QEMU or Ceph admission. [33, Appendix A.3]

Scope changes the ceiling. Ceph Reef's librbd QoS limits apply per image within one process; separate processes using the same image have independent limits. A local setting therefore does not establish an image-wide cap across all clients. [34]

The name alone is insufficient: QEMU v9.2.0 uses a leaky-bucket meter for disk-I/O throttling and allows bursts. Drives in a throttle group share its combined I/O limit. With iops-size=4096, a 6144-byte request costs 1.5 operation units, so the charged rate need not equal the request count. [35] [36]

Record the charging unit, direction, initial credit, bucket scope and actual latency. A rate ceiling alone is neither a service reservation, an outstanding-request cap nor a completion deadline. Distinguish meter conformance from the policy that delays or rejects excess work.

What FLIN actually tested

FLIN's four-device experiment reports unequal slowdowns during concurrent trace replay. The proposed scheduler's evaluation instead uses MQSim with four-flow workload mixes. Its modeled SSD has a 480 GB user capacity, PCIe 3.0 and NVMe 1.2. These are different evidence sets. [1, sections 2.2 and 6]

The design addresses request intensity, access pattern, read/write mix and garbage collection. It reorders flash transactions, arbitrates by host-assigned priorities, then balances read, write and maintenance waiting. It is a controller scheduling proposal, not a host setting that enables isolation on an arbitrary SSD. [1, sections 3-5]

The related MQSim validation used four devices and estimated internal parameters. Matching selected measured workloads is useful evidence for a model, but cannot validate every firmware generation, workload or latency percentile. Its preparation model also tracks page state and cache history. See SSD preparation and steady-state checks. [2, section 5 and Appendix A]

Read priority cannot interrupt every NAND operation

Preemptible garbage collection can yield between internal commands without interrupting a command already executing. Lee et al.'s semi-preemptible design therefore still waits for an active erase. Its free-block thresholds can restrict incoming work so reclamation finishes. The proposed policies were evaluated in an MSR/Disksim-based simulator, separately from the paper's motivating device measurements. [13, sections III-V]

Wu and He's FAST 2012 proposal instead suspends individual program/erase operations to serve reads. A read can overwrite the NAND page buffer holding program data; their proposed shadow buffer restores that state on resumption. Evaluation used simulated SLC/MLC configurations and six time-compressed HDD traces. Those results are not measurements of a modern SSD or a host-accessible scheduling switch. [14, sections 3-5]

Kim et al. later distinguish three erase-suspension policies. In their design, immediately abandoning the current erase step favors reads but can repeatedly discard progress. Deferring suspension until a step finishes preserves progress at a read-latency cost. A timeout switches between these policies. [15, section 2]

Evidence boundary: the ATC 2019 starvation figure combines modified-device observations for immediate suspension with simulation for the earlier scheme. Deferred and timeout policies were evaluated in MQSim because they required a controller-to-NAND interface extension. The paper's low read-tail result must not be presented as a measured feature of an unmodified retail drive. [15, Figure 3 and section 3.1]

Our measurement implication: retain write completions, unfinished writes and free-space preparation alongside read percentiles. A lower read percentile does not by itself demonstrate useful progress for the whole workload. This section is source synthesis, not a new suspension benchmark.

Argon: preserve efficiency within an allocated share

Historical HDD research separates two questions: how much time a workload receives, and how efficiently it uses that time. Argon combines cache partitions, larger transfers and disk-time quanta. Its target is relative to standalone throughput within the allocated share, not the whole server. CPU and network bottlenecks are excluded, and some cache-demand combinations cannot be supported. [Argon, sections 3.1-3.5]

Write the comparison as E = shared / (share * alone). In this constructed example, both workloads deliver 27 MB/s over the same wall-clock interval. Their raw standalone fractions differ, but both reach 90% of their share-adjusted baseline. The shares sum to one; neither the shares nor the standalone rates were measured.

Constructed rates in MB/s; ratios are dimensionless
WorkloadAloneTime shareSharedShared / aloneE
A12025%270.2250.90
B4075%270.6750.90

The cache target is a throughput target

Argon's serial-read model weights hit and miss service times before taking the inverse to estimate throughput. It does not simply multiply the original hit ratio by R. [Section 3.4] For a synthetic hit cost of 1 microsecond, miss cost of 100 microseconds and initial hit probability 0.9, mean service is S(p) = 1 + (1 - p) * 99 microseconds. A 90% throughput target requires S(0.9) / S(p) >= 0.9.

Same fixed service costs, one outstanding read, no queueing
CalculationHit probabilityMean service, usThroughput / standalone
Standalone baseline90.00%10.900100.00%
Multiply hit ratio by R81.00%19.81055.02%
Solve throughput target88.78%12.11190.00%

Reducing the hit probability to 81% retains only about 55% of throughput in this model. Solving the actual constraint requires at least 791/891, approximately 88.78%. That is a probability threshold, not a memory allocation: choosing bytes still requires a workload-specific cache profile. Concurrency, queueing and changing miss costs invalidate this simple inverse-service-time calculation.

A probability target is not a cache allocation

Argon profiles requests with the server's cache policy before assigning space. [Sections 3.4 and 4.3] The following invented profiles share the same 90% standalone hit probability at 256 MiB and the same costs used above. They are arithmetic inputs, not measurements or digitized paper results.

Listed data-cache capacities; 1 MiB = 1,048,576 bytes
Capacity, MiBA hit probabilityB hit probability
00%0%
6485%50%
12890%81%
25690%90%

The 88.78% threshold selects 128 MiB for A and 256 MiB for B among these points. Their total, 384 MiB, exceeds a 256 MiB budget. Equal 128 MiB partitions give B only 55.02% of its serial-read baseline throughput. A 384 MiB data-cache budget fits the listed choices, excluding metadata and other buffers.

These are the smallest listed qualifying sizes. No qualifying sample means unresolved coverage, not impossibility at every capacity. Interpolation across a sharp transition is an extra assumption. Even monotonicity is policy-dependent: published ARC and bounded-stack LIRS experiments include increasing miss ratios at larger sizes. [Miniature simulations, sections 1.1 and 4.1]

The calculation assumes exclusive, independent partitions and unchanged profiles and service costs. Preserve policy parameters, cache warm-up, request units and observation window; recheck the selected operating point after resizing. An old or approximate miss-ratio curve is evidence for a sizing hypothesis, not a promise about future requests.

The paper's SATA/Linux 2.4.22 experiments are historical evidence. Larger batches and quanta can improve throughput while worsening response-time variation and maxima. A configured R-value is neither a current-SSD prediction nor a per-request deadline. [Sections 3.1, 4.4 and 5]

Retain the workload, standalone baseline, allocated share, cache profile and latency distribution together when evaluating a shared system. The example establishes the arithmetic distinction, not a safe admission decision. Calculation module, tests and assumptions are available separately.

Name the denominator before comparing ratios

For equal-priority flows, FLIN uses S_i = mean_shared_i / mean_alone_i and F = min(S_i) / max(S_i). Its response-time weighted speedup is WS = sum(1 / S_i). Means use matching timing boundaries. [1, equations 1, 2 and 11]

Do not substitute the Perseus workload prediction bound for an isolated mean. Nor is an average of individual request ratios automatically the ratio of two means. Identify the population and aggregation first.

Constructed two-flow examples, not drive measurements. Each cell lists A then B. Every latency is a mean in microseconds; the ratios are dimensionless. The same isolated means apply to every row.

Fairness, maximum slowdown and weighted speedup for two equal-priority flows
ScenarioAlone, usShared, usSlowdownsFMax SWS
Equal relative slowdown100 / 400200 / 8002 / 2121
Equally much slower100 / 4002000 / 800020 / 201200.1
Equal absolute latency100 / 400800 / 8008 / 20.2580.625

The first two rows both have F = 1. Yet every shared mean in the second is ten times larger. In the last row both flows take 800 us, but A slowed by eight times and B by twice: F = 0.25. Equal absolute latency and equal relative slowdown answer different questions.

One flow alone always gives F = 1 under this formula, however poor its latency. Adding or removing flows also changes the meaning of a sum such as WS. Preserve the flow set and report absolute means, tail percentiles and achieved throughput separately. These examples establish arithmetic distinctions, not which scheduler a real system should choose.

Executable examples and tests run without dependencies or device access. Run the downloaded test beside the module with node --test ssd-fairness.test.mjs.

A whole-run fairness score can hide completion gaps

Jain's fairness index uses J = (sum x_i)^2 / (n sum x_i^2) for nonnegative allocations with at least one positive value. For a fixed population of n clients, its range is 1/n to 1. All-zero allocation is undefined, not perfectly fair. This is a different metric from FLIN's minimum/maximum slowdown ratio. [51]

Constructed completion counts for two continuously backlogged clients with equal entitlements. The first two rows are consecutive one-second windows; the last pools those same windows. These are arithmetic inputs, not SSD measurements.

Window and pooled completion-count equality
ObservationDuration, sA completionsB completionsJ
First second110000.5
Second second101000.5
Both seconds pooled21001001

Each client has a one-second window with no completions, yet pooled counts give J = 1. Dividing pooled counts by the common two-second duration also gives 1; it does not recover the missing chronology. Nor does an average of the two window scores equal the score of the pooled allocation. Retain per-client time series and unfinished work alongside the aggregate score. A completion gap does not show that the device was idle for that client, and a finite gap is not proof of indefinite starvation.

Weights change the question. With completions (100, 300), raw J is 0.8. For intended shares 1:3, dividing by those positive weights gives (100, 100) and J = 1. Declare the entitlement rule before interpreting equality. The original normalization proposal compares actual service with a chosen target allocation; it does not choose that target for the operator. [52]

Keep zero-completion clients in the declared population. For (100, 0), J = 0.5; removing the zero-completion client gives 1. With 99 equal nonzero allocations and one zero, J = 0.99. A near-one value therefore does not establish a completed request for every client. Equal IOPS also need not mean equal bytes or device work when request sizes and costs differ; mClock separates shares from reservations and limits. [16, section 2 and IO size discussion]

The calculation module and tests reproduce these examples. Run node --test jain-fairness.test.mjs beside the module. The implementation rejects negative, nonfinite and all-zero inputs and normalizes before squaring.

A changed baseline can reverse a fairness ranking

Sprinkler is the resource-utilization baseline in FLIN's comparison, not a synonym for fair sharing. FLIN also evaluates a separate Sprinkler+Fairness variant; keep those baselines distinct. In the simulated workload mixes, favoring high-interference flows can hurt the progress of other flows. Record each flow's slowdown alongside aggregate throughput before describing a scheduler as better. These are historical policy comparisons, not a ranking of current SSD products. [1, sections 6-7]

FLIN estimates transaction-alone waiting time from earlier same-flow work in the chip queue. That scheduling estimate is distinct from an offline flow-level isolated mean. Report which quantity a result uses; they are not interchangeable observations. [1, section 5.2]

Hesela's constructed sensitivity check: two equal-priority flows A and B, two hypothetical policies P and Q. Every latency pair is A / B in microseconds. R2 changes only A's reference mean; each policy's shared means stay fixed. None of these inputs is a device measurement.

Four exact calculations using two reference baselines
ReferencePolicyAlone, usShared, usSlowdownsFWS
R1P100 / 400200 / 8002 / 211
R1Q100 / 400400 / 8004 / 20.50.75
R2P200 / 400200 / 8001 / 20.51.5
R2Q200 / 400400 / 8002 / 211

Under R1, P scores 1 and Q scores 0.5; under R2 the ranking reverses. P still gives A a lower shared mean than Q, and B's shared mean is unchanged. The reversal is in relative balance, not a speed improvement. This does not establish that FLIN's estimator makes this error.

If every isolated mean is multiplied by the same positive factor k, every slowdown is divided by k: F stays fixed while WS is multiplied by k. Changing just one flow's reference can change F. Keep reference provenance, device preparation, arrivals and timing scope with the result; do not substitute a convenient baseline after seeing the ranking.

The sensitivity module imports the existing metric implementation; its executable tests check all four rows, fixed shared results, scaling and flow order. This is exact arithmetic with invented inputs, not a statistical estimate or scheduler simulation.

The earlier FIOS experiment changed the filesystem too

FIOS explored host-side scheduling with timeslices, read preference, concurrency and deliberate anticipation. Waiting briefly can protect a task whose next request has not arrived; excessive idling can waste parallelism. Evaluation covered three SSDs and a CompactFlash device, including application workloads. [3, sections 3-6]

The setup matters: its prototype used Linux 2.6.33.4, patched handling of synchronous writes, reduced ext4 timestamp precision to seconds and disabled journaling. The authors state these changes explicitly. Treat the result as evidence for that experimental configuration, not as a production tuning recipe or proof that disabling journaling is harmless. [3, section 5]

FIOS's concurrent-efficiency metric sums normalized application throughputs; FLIN's WS above sums inverse response-time slowdowns. Do not pool them into a single performance percentage. [3, section 6, equation 2] [1, equation 11]

An epoch budget is not a response-time promise

FIOS retains unused budget across task switches. Read preference remains subject to the epoch's timeslices; its optional interference-control mode also withholds writes while reads are outstanding. This does not preempt an already dispatched write. The mode can be disabled when read/write interference is modest. [3, sections 4.1-4.2]

Epoch fairness is not a per-request latency guarantee. FlashFQ's evaluation shows FIOS tasks waiting for epoch renewal after exhausting their budgets; smaller timeslices improved responsiveness but reduced fairness in some tested workloads. [21, sections 3 and 6.1-6.2]

The FlashFQ prototype left journal I/O attributed to JBD2 rather than originating applications, and disabled journaling. Its results therefore do not establish complete application-level accounting with journaling enabled. These are historical experimental boundaries, not a current NVMe ranking. [21, section 5]

A dispatch-time snapshot can miscount shared time

FIOS offers calibrated request costs and a fallback: divide elapsed request time by the outstanding-request count at issuance. The latter approximates an equal-sharing assumption using one concurrency snapshot instead of tracking every change. It is not direct measurement of internal flash usage. [3, section 4.3, equation 1]

Hesela's constructed timeline: A is outstanding from 0 to 4 ms; B from 1 to 3 ms. The interval comparison divides each time interval equally among its outstanding requests. Both columns are accounting models, not measured resource consumption.

Issuance-depth approximation versus interval equal sharing
RequestStart, msEnd, msDepth at issueShortcut, msInterval share, ms
A04143
B13211
Total---54

A's interval charge is 1 + 2/2 + 1 = 3 ms; B's is 2/2 = 1 ms. The snapshot shortcut charges 4/1 + 2/2 = 5 ms over a 4 ms busy interval. This demonstrates that the shortcut need not conserve this equal-sharing budget, not that either model reveals the SSD's actual bottleneck usage.

Our measurement implication: retain both dispatch and completion events when interpreting attributed service. A single queue-depth sample cannot reconstruct an overlap history. This example does not implement FIOS, simulate flash channels or establish its performance.

Download the calculation and tests. Run node --test fios-cost-accounting.test.mjs beside the module; no device access or dependencies are required.

Equal capacity shares do not mean equal completion times

Processor sharing (PS) is an ideal reference: all present jobs divide one server's capacity continuously and equally. It does not assign the same completion time to differently sized jobs. [PS model]

In the stationary M/G/1 model, let rho = lambda E[S] < 1. With independent Poisson arrivals, iid service requirements and ideal PS, E[T | S=x] = x/(1-rho) and E[T] = E[S]/(1-rho). Here x is processing time at the full server rate. Assume constant capacity, unlimited admission, no abandonment, interruptions or switching overhead. [PS mean]

Constructed comparison, not SSD measurements. Both distributions have mean service 1 ms. The mixture uses 99% 0.5 ms requests and 1% 50.5 ms requests. Only the scheduling discipline changes within each row.

Mean response under two ideal scheduling policies
Service distributionArrivals/sLoadFCFS mean, msPS mean, ms
Always 1 ms2000.21.1251.25
99% at 0.5 ms; 1% at 50.5 ms2000.24.218751.25
Always 1 ms8000.835
99% at 0.5 ms; 1% at 50.5 ms8000.852.55

At 200 requests/s, PS gives 1.25 ms for either distribution. FCFS gives 1.125 ms for constant service and 4.21875 ms for the mixture. The latter uses E[S squared] = 25.75 ms squared in the Pollaczek-Khinchine mean formula. The ranking reverses: PS is not universally better. These are exact formula substitutions, not a simulated experiment. [FCFS mean]

Insensitivity here concerns the specified mean at fixed arrival rate and mean service, not the complete latency distribution. Equal conditional mean slowdown does not promise equal realized slowdowns or p99; conditional variance remains a separate question. [PS variability]

The current queue is a different conditioning question

The stationary formula conditions on the tagged job's size and averages over arrival states. It is not a forecast conditioned on the remaining work currently in the queue. Ward and Whitt analyze these information sets separately. [PS state]

Consider a separate finite batch with no future arrivals, ideal equal sharing and constant unit capacity. A job needing x full-rate milliseconds finishes at T = x + sum(min(x, r_i)), where r_i are the other jobs' remaining requirements. Each competitor receives exactly that capped amount of work before the tagged job finishes. [PS state, equation 1.6]

Our constructed example fixes x = 1 ms, two competitors and 2 ms of total other work. Residuals of 0.25 and 1.75 ms give a 2.25 ms completion; residuals of 1 and 1 ms give 3 ms. Queue length and total work match, but completion does not. These are deterministic examples, not SSD measurements; do not compare them directly with the 1.25 ms stationary mean, which uses a different arrival model.

For storage, identify which resource and jobs the model represents. NVMe fetching, flash transactions, internal parallelism and NAND suspension do not by themselves establish continuous equal sharing. FLIN's flow-level slowdown ratio also uses an isolated mean, not each job's full-rate service requirement. [1, sections 2-3] Preserve those distinctions when using PS as a baseline.

Method and assumptions, exact calculation, tests and rational results. The example predicts no tail percentile or completion deadline.

BASIL: a better placement needs a trustworthy load signal

BASIL recommends virtual-disk placement between datastores; PARDA controls host issue windows. Placement and admission are different decisions. BASIL's FAST 2010 prototype observed a negative pooled latency slope when cached writes dominated higher-concurrency periods. It used read-only observations and filtered extreme sizes and sequentiality. [BASIL, section 4.1]

Hesela's constructed example below has 100 requests per row, not measured device traffic. Both class means rise, but their changing proportions make the pooled mean fall.

Synthetic counts and conditional means; all latencies in milliseconds
Outstanding requestsReads / writesRead mean, msWrite mean, msPooled mean, ms
190 / 1012211
210 / 901445

The count-weighted mean is (reads * readMean + writes * writeMean) / 100. It drops from 11 to 5 ms while both class means increase by 2 ms. With the read fraction held fixed, the pooled mean also increases by 2 ms. Taking the reciprocal of the negative pooled slope would not yield a meaningful capacity. This is an arithmetic counterexample, not a queueing simulation or a causal estimate.

Relative-fitness work offers a complementary warning: a closed-loop application can change its offered traffic when device response changes. Its models learn directional device-pair performance changes using measurements on the source device. Holding the workload fixed is therefore an assumption to check, not an automatic property of migration. [Relative fitness, sections 2-4]

The reported experiments emulated migrations by switching a workload to an identical virtual-disk copy already present on the destination datastore, rather than transferring its data. The measured placement benefits therefore do not measure the data-copy phase. [BASIL, section 5]

BASIL left migration cost and ping-pong avoidance for future work. A better final placement does not establish uninterrupted service while moving data. [BASIL, section 7] Our measurement implication: retain request classes, observation windows, before/during/after migration intervals and per-workload tails. Read-only fitting also cannot establish write latency.

Reproduce the example with the calculation, generated values and tests. This is historical source synthesis and original teaching arithmetic, not a modern SSD benchmark.

Facade: specify the latency contract before judging isolation

Facade controls a shared device; PARDA coordinates host issue windows. Relative shares and per-workload latency curves answer different questions. [PARDA, sections 1-3]

Facade's contract bounds window-average latency by offered rate and read/write mix, not p99 or every request. Above the specified rate range, the default bound is unbounded. Its queue-depth target is also soft: already-late requests can exceed it. Previously dispatched work must still drain when the target falls. [Facade, sections 3 and 4.4]

The experiments used 1-second SLO windows; external admission control was assumed. These historical HDD-array results do not establish an SSD guarantee. [Facade, sections 1 and 4]

For a current evaluation, record the statistic, window, offered-load range and measurement boundary together. Measure waiting before dispatch as well as device residence: moving delay between queues is not necessarily an end-to-end improvement. Keep tail-latency measurements separate from an average-latency objective.

A useful shared-device test

Our recommended comparison keeps the same device, firmware, workload definitions, priority policy, timing boundary and preparation procedure. Run each flow alone, then the chosen combination, recording how each run began. Repeating a file image does not necessarily restore controller state.

  1. Preserve per-flow arrivals, completions, errors and unfinished requests. Explain whether arrivals are independent of completions or slowed by them.
  2. Record request sizes, read/write mix, address ranges, achieved concurrency, occupancy and thermal behavior. Keep host and device timing distinct.
  3. Repeat comparable runs and vary run order. Show variation between runs; do not treat millions of dependent requests as millions of independent trials.
  4. Specify both relative-sharing and absolute service objectives. Report timeouts and dropped work alongside percentiles instead of silently excluding them.

A shared mean alone cannot reveal the isolated denominator or uniquely identify garbage collection, translation-cache contention or host scheduling as its cause. A causal claim needs controlled changes or additional instrumentation. No hardware experiment or FLIN replication was performed for this review.

Continue with arrival models and timing populations. Corpus: slowdown fairness and inter-flow interference.

A lower mean can still delay one request

Shortest remaining processing time (SRPT) prioritizes remaining service, not original request size. Its ideal single-server result assumes known work and cost-free preempt-resume. Unknown sizes require a different policy or estimation model. [49, sections 2.1 and 3]

Synthetic example, not an SSD measurement: A, B and C arrive at 0, 1 and 2 ms and require 8, 1 and 1 ms of service. One unit-speed server; fixed external arrivals; no switching cost.

Response time by job and scheduling policy, in milliseconds
PolicyA, msB, msC, msMean, ms
FCFS8888
SRPT10114

FCFS runs A from 0 to 8, B from 8 to 9 and C from 9 to 10 ms. SRPT runs A from 0 to 1, B from 1 to 2, C from 2 to 3, then resumes A until 10 ms. Both finish the same work at 10 ms. The mean halves, but A's response grows from 8 to 10 ms. This finite counterexample establishes neither starvation nor a measured tail-latency distribution.

Request slowdown divides response time by positive service requirement. Here the mean of the FCFS ratios is (1 + 8 + 8) / 3 = 17/3, not the ratio of means 24/10 = 12/5. SRPT gives (10/8 + 1 + 1) / 3 = 13/12. These are individual-job quantities, not FLIN's shared/isolated flow comparison or Perseus's prediction-bound ratio. Keep the timing boundary and denominator with each value. [48, section 1]

Bansal and Harchol-Balter analyze conditional expected response by job size under M/G/1 assumptions. Favorable size-conditioned expectations are not guarantees for every observed job. Nor does the example above show that large jobs must always lose. [48, section 5]

A useful implementation detail: the web-server study used six size-priority bands plus a higher-priority connection-setup band. Setup could otherwise hide the gains for short transfers before their size was known. Its Linux 2.2.16 network-bottleneck experiments do not establish an NVMe speedup. [50, sections 2.2 and 3.1]

For storage, first identify where service can actually be interrupted and resumed. The semi-preemptible I/O discussion separates scheduling opportunities from command blocking. An SRPT label alone supplies no device-level interruption mechanism or end-to-end deadline.

Reproduce the exact arithmetic with the Python model, tests and generated values. Run python3 -m unittest discover -p test_model.py with both Python files in one directory. Tests compare SRPT against every ready-job choice in 729 small integer workloads; this is a bounded code check, not a new optimality proof.

Completion chances are not mean remaining time

The Gittins index compares the chance of finishing before a chosen stopping age with the expected service spent trying. Age here is attained service, not elapsed wall time. Prefer the largest index, or the smallest reciprocal rank. [Index, equation 1]

This differs from shortest expected remaining processing time (SERPT). The stable M/G/1 result assumes a known service distribution and cost-free preempt-resume; it is not a device-level deadline guarantee. [Model and definitions]

Constructed decision: total service is 1 ms with probability 9/10, otherwise 100 ms. A fresh job averages 10.9 ms remaining; an unfinished job already served for 90 ms has exactly 10 ms left. SERPT chooses the older job. But trying the fresh job for at most 1 ms gives completion probability 0.9 for 1 ms of expected service: index 0.9/ms. The old job's best index is 0.1/ms, so Gittins chooses fresh.

With only these two jobs, no future arrivals and free interruption, finishing old first gives mean remaining response 15.45 ms. Trying fresh for 1 ms, then finishing old and any surviving fresh work, gives 11.45 ms. These means average the two jobs and the fresh job's two possible sizes, from the decision time. Already elapsed response is common to both policies. This is exact chosen arithmetic, not an SSD benchmark or a new optimality proof.

The rational results, method, model and tests include an independent 648-case direct-sum check. Between support points, no extra completion probability appears while expected work grows; a sorted endpoint sweep avoids rescanning the full distribution at every stopping point. This fixed-age calculation does not solve distribution estimation. Storage use still needs observable service progress and a real interruption boundary.

Primary sources

  1. Tavakkol et al. FLIN: Enabling Fairness and Enhancing Performance in Modern NVMe Solid State Drives. ISCA 2018, sections 2.2 and 4-7.
  2. Tavakkol et al. MQSim: A Framework for Enabling Realistic Studies of Modern Multi-Queue SSD Devices. FAST 2018, sections 3-6 and Appendix A.
  3. Stan Park and Kai Shen. FIOS: A Fair, Efficient Flash I/O Scheduler. FAST 2012, sections 3-6.
  4. Linux kernel documentation: Multi-Queue Block IO Queueing Mechanism, operation, schedulers and hardware dispatch queues.
  5. Linux 6.16: Switching Scheduler
  6. Linux v6.16: elevator.c, elevator_switch and the none selection
  7. Linux v6.16: blk-mq.c, blk_mq_submit_bio
  8. Linux v6.16: mq-deadline.c, soft expirations and dd_dispatch_request
  9. Linux 6.16: BFQ, budgets, priority classes and low_latency
  10. Linux v6.16: kyber-iosched.c, domain selection and latency feedback
  11. Linux 6.16: Explicit volatile write back cache control
  12. Linux v6.16: bfq-iosched.c, __bfq_dispatch_request and bfq_insert_request
  13. Lee, Kim, Shipman, Oral and Kim. Preemptible I/O Scheduling of Garbage Collection for Solid State Drives. IEEE TCAD 32(2), 247-260, 2013. DOI: 10.1109/TCAD.2012.2227479; sections III-V.
  14. Guanying Wu and Xubin He. Reducing SSD Read Latency via NAND Flash Program and Erase Suspension. FAST 2012, pp. 117-123; sections 3-5.
  15. Shine Kim et al. Practical Erase Suspension for Modern Low-latency SSDs. USENIX ATC 2019, pp. 813-820; sections 2-3, Figure 3 and Tables 1-2.
  16. Gulati, Merchant and Varman. mClock: Handling Throughput Variability for Hypervisor IO Scheduling. OSDI 2010, sections 2.1, 3 and 3.2.
  17. Ceph Reef: OSD Config Reference, Subtleties of mClock and Caveats
  18. Gulati, Ahmad and Waldspurger. PARDA: Proportional Allocation of Resources for Distributed Storage Access. FAST 2009, sections 2, 3.2 (equation 2), 3.4 and 4.1-4.2.
  19. Ceph Reef: mClock Config Reference, client types and profiles
  20. Iyer and Druschel. Anticipatory scheduling: A disk scheduling framework to overcome deceptive idleness in synchronous I/O. SOSP 2001, sections 2-4.
  21. Kai Shen and Stan Park. FlashFQ: A Fair Queueing I/O Scheduler for Flash-Based SSDs. USENIX ATC 2013, pp. 67-78; sections 4-6.
  22. Linux v6.12 stable block sysfs ABI: queue/wbt_lat_usec
  23. Linux v6.12 block/blk-wbt.c: stat_sample_valid, latency_exceeded, wbt_wait and default latency
  24. Linux v6.12 block/blk-stat.c: request timing, per-CPU aggregation and minimum samples
  25. Linux 6.16: Deadline IO scheduler tunables, fifo_batch
  26. Lumb, Schindler, Ganger, Riedel and Nagle. Towards Higher Disk Head Utilization: Extracting "Free" Bandwidth from Busy Disk Drives. OSDI 2000, pp. 87-102; sections 2, 5.2 and 6.
  27. Lumb, Schindler and Ganger. Freeblock Scheduling Outside of Disk Firmware. FAST 2002, pp. 275-288; sections 2-5.
  28. Dimitrijevic, Rangaswami and Chang. Design and Implementation of Semi-preemptible IO. FAST 2003, pp. 145-158; sections 2-4.
  29. Dimitrijevic, Rangaswami and Chang. Systems Support for Preemptive Disk Scheduling. IEEE TC 54(10), 2005, pp. 1314-1326; equations 1-2, sections 2.3, 3 and 4.
  30. CMU-SAFARI MQSim README, commit 51f0f2d3fed92d88ef4a0fa61a38024b07bf9d16: device configuration and synthetic workload parameters.
  31. CMU-SAFARI MQSim Host_Interface_NVMe.cpp, commit 51f0f2d3fed92d88ef4a0fa61a38024b07bf9d16: fetch admission and serviced-request handling.
  32. Huang, Badam, Caulfield, Nath, Sengupta, Sharma and Qureshi. FlashBlox: Achieving Both Performance Isolation and Uniform Lifetime for Virtualized SSDs. FAST 2017, pp. 375-390; sections 2.2, 3.1-3.4 and 4.3.
  33. RFC 3290, Appendix A: rate and burst models, metering and shaping
  34. Ceph Reef: RBD QoS settings and per-image, per-process scope
  35. QEMU v9.2.0: disk-I/O throttling, operation charging and throttle groups
  36. QEMU v9.2.0: throttle_leak_bucket, throttle_compute_wait and throttle_account
  37. Linux man-pages: ioprio_set(2), thread scope and asynchronous writes
  38. Linux v6.12: block I/O priorities and scheduler support
  39. Linux 6.12: BFQ per-process ioprio, weights and idle-class service
  40. Linux v6.12: mq-deadline class queues and priority aging
  41. Linux 6.12: cgroup v2 I/O limits, writeback and priority policy
  42. Valente and Andreolini, SYSTOR 2012: Improving Application Responsiveness with the BFQ Disk I/O Scheduler
  43. Heo et al. IOCost: Block IO Control for Containers in Datacenters. ASPLOS 2022, sections 3.1-3.6; DOI 10.1145/3503222.3507727.
  44. Linux v6.12: blk-iolatency.c, peer throttling, sample predicates and diagnostic fields
  45. Linux v6.12: blk-iocost.c, cost model, feedback and cgroup interfaces
  46. Scully et al. SOAP: One Clean Analysis of All Age-Based Scheduling Policies. PACM 2(1), 16 (2018), section 1. DOI: 10.1145/3179419.
  47. Ruan and Pai. Understanding and Addressing Blocking-Induced Network Server Latency. USENIX ATC 2006, sections 2.2, 3.1 and 3.3.
  48. Bansal and Harchol-Balter. Analysis of SRPT Scheduling: Investigating Unfairness. SIGMETRICS 2001; sections 1 and 5.
  49. Harchol-Balter and Scully. The most common queueing theory questions asked by computer systems practitioners. Sections 2.1 and 3.
  50. Harchol-Balter et al. Size-based Scheduling to Improve Web Performance. TOCS 2003; author manuscript, sections 2.2 and 3.1.
  51. Jain, Chiu and Hawe. A Quantitative Measure of Fairness and Discrimination. DEC-TR-301, 1984, sections 5-6.
  52. Raj Jain. Fairness: How to Measure Quantitatively. ATM Forum 94-0881, Proposal and Summary slides.
  53. Nunez Queija. Sojourn Times in a Processor Sharing Queue with Service Interruptions. CWI PNA-R9807 (1998), introduction, pp.1-2.
  54. Wierman, Bansal and Harchol-Balter. A note on comparing response times in the M/GI/1/FB and M/GI/1/PS queues. Operations Research Letters 32 (2004), pp.73-74. DOI 10.1016/S0167-6377(03)00061-0.
  55. Wierman and Harchol-Balter. Classifying Scheduling Policies with Respect to Higher Moments of Conditional Response Time. SIGMETRICS 2005, sections 2-3.
  56. Larson and Odoni. Urban Operations Research, section 4.7: M/G/1 FCFS mean waiting and response.
  57. Ward and Whitt. Predicting Response Times in Processor-Sharing Queues. Author manuscript, sections 1.2-1.3; equations (1.6), (1.36) and (1.38).
  58. Wachs, Abd-El-Malek, Thereska and Ganger. Argon: performance insulation for shared storage servers. FAST 2007, sections 3-5.
  59. Waldspurger et al. Cache Modeling and Optimization using Miniature Simulations. USENIX ATC 2017, sections 1.1, 3.2 and 4.1.
  60. Aalto and Scully. On the Gittins index for multistage jobs. Queueing Systems 102, 353-371 (2022), section 2, equation 1. DOI 10.1007/s11134-022-09760-z.
  61. Scully, Harchol-Balter and Scheller-Wolf. Simple Near-Optimal Scheduling for the M/G/1. PACM 4(1), Article 11 (2020), sections 2-2.1. DOI 10.1145/3379477.
  62. Gulati, Kumar, Ahmad and Kumar. BASIL: Automated IO Load Balancing Across Storage Devices. FAST 2010, sections 3-5 and 7; Figures 8-9.
  63. Mesnier, Wachs, Sambasivan, Zheng and Ganger. Modeling the Relative Fitness of Storage. SIGMETRICS 2007, sections 2-4.
  64. Lumb, Merchant and Alvarez. Facade: Virtual Storage Devices with Performance Guarantees. FAST 2003, pp. 131-144, sections 3-4.4.
  65. Stephen T. Jones, Andrea C. Arpaci-Dusseau and Remzi H. Arpaci-Dusseau. Antfarm: Tracking Processes in a Virtual Machine Environment. USENIX ATC 2006, sections 4 and 7.

Updated 2026-12-02 UTC. Paper methods, equations and consequential setup choices checked in full text. Historical results are not current product rankings. Example code: CC0. Source publications retain their original rights.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. Sharing an SSD: who pays for the slowdown?. Hesela. 2026-12-02. https://hesela.com/analyses/ssd-fairness-shared-queues/