The newer io schedulers divide the queue into a front and backend, so
it's not exactly trivial to just 'leave it on the queue'. Which queue?
You know which ones are pending, they are on the busy queue. You can
look there.
> In particular, while the higher layers don't actually _do_ this yet, from
> a latency standpoint the right thing to do when some request seems to get
> starved is to refuse to feed more tagged requeusts to the device until the
> starved request has finished.
Agree
> As I mentioned, Andrew actually had some really bad latency numbers to
> prove that this is a real issue. SCSI with more than 4 tags or so results
> in potentially _major_ starvation, because the disks themselves are not
> even trying to avoid it.
Basically everyone agrees that this shouldn't happen in newer disks, I'm
inclined to think we are seeing internal queueing bugs in the SCSI
drivers or SCSI layer itself.
> Also, even aside from the starvation issue with unfair disks, just from a
> "linear head movement" standpoint, you really want to sort the queue
> according to what is going on _now_ in the disk. If the disk eats the
> requests immediately (but doesn't execute them immediately), the sorting
> has nothing to go on, and you get tons of back-and-forth movements.
>
> Basically, if you're trying to do an elevator, you need to know what the
> outstanding commands are. Think it through on paper, and you'll see what I
> mean.
Who said we are using an elevator? News flash, we haven't used an
elevator design for a long time.
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/