Michael plan on testing this? Blk-mq +BFQ vs mainline CFQ sounds interesting. Differences might not be that evident until we scale up IOPS to a very high degree
Announcement
Collapse
No announcement yet.
BFQ I/O Scheduler Lands Along With New Kyber Scheduler
Collapse
X
-
Originally posted by geearf View Post
They're both mq schedulers, before BFQ was to land mq did not support having schedulers, and BFQ was made for the previous system, so work was needed before it could land. Now that this work is done it's easier for others.
- Likes 2
Comment
-
-
-
For those wondering WTF is Kyber, read here from the patch https://patchwork.kernel.org/patch/9680757/
The Kyber I/O scheduler is an I/O scheduler for fast devices designed to
scale to multiple queues. Users configure only two knobs, the target
read and synchronous write latencies, and the scheduler tunes itself to
achieve that latency goal.
The implementation is based on "tokens", built on top of the scalable
bitmap library. Tokens serve as a mechanism for limiting requests. There
are two tiers of tokens: queueing tokens and dispatch tokens.
A queueing token is required to allocate a request. In fact, these
tokens are actually the blk-mq internal scheduler tags, but the
scheduler manages the allocation directly in order to implement its
policy.
Dispatch tokens are device-wide and split up into two scheduling
domains: reads vs. writes. Each hardware queue dispatches batches
round-robin between the scheduling domains as long as tokens are
available for that domain.
These tokens can be used as the mechanism to enable various policies.
The policy Kyber uses is inspired by active queue management techniques
for network routing, similar to blk-wbt. The scheduler monitors
latencies and scales the number of dispatch tokens accordingly. Queueing
tokens are used to prevent starvation of synchronous requests by
asynchronous requests.
Various extensions are possible, including better heuristics and ionice
support. The new scheduler isn't set as the default yet.
- Likes 4
Comment
Comment