Re: [GIT PULL] Block pull request for- 4.11-rc1
From: Linus Torvalds
Date: Wed Feb 22 2017 - 19:16:59 EST
On Wed, Feb 22, 2017 at 1:50 PM, Markus Trippelsdorf
> But what about e.g. SATA SSDs? Wouldn't they be better off without any
> So perhaps setting "none" for queue/rotational==0 and mq-deadline for
> spinning drives automatically in the sq blk-mq case?
Jens already said that the merging advantage can outweigh the costs,
but he didn't actually talk much about it.
The scheduler advantage can outweigh the costs of running a scheduler
by an absolutely _huge_ amount.
An SSD isn't zero-cost, and each command tends to have some fixed
overhead on the controller, and pretty much all SSD's heavily prefer
fewer large request over lots of tiny ones.
There are also fairness/latency issues that tend to very heavily favor
having an actual scheduler, ie reads want to be scheduled before
writes on an SSD (within reason) in order to make latency better.
Ten years ago, there were lots of people who argued that you don't
want to do do scheduling for SSD's, because SSD's were so fast that
you only added overhead. Nobody really believes that fairytale any
So you might have particular loads that look better with noop, but
they will be rare and far between. Try it, by all means, and if it
works for you, set it in your udev rules.
The main place where a noop scheduler currently might make sense is
likely for a ramdisk, but quite frankly, since the main real usecase
for a ram-disk tends to be to make it easy to profile and find the
bottlenecks for performance analysis (for emulating future "infinitely
fast" media), even that isn't true - using noop there defeats the