Re: IO scheduler based IO controller V10
From: Jens Axboe
Date: Fri Oct 02 2009 - 13:11:36 EST
On Fri, Oct 02 2009, Linus Torvalds wrote:
>
>
> On Fri, 2 Oct 2009, Jens Axboe wrote:
> >
> > Mostly they care about throughput, and when they come running because
> > some their favorite app/benchmark/etc is now 2% slower, I get to hear
> > about it all the time. So yes, latency is not ignored, but mostly they
> > yack about throughput.
>
> The reason they yack about it is that they can measure it.
>
> Give them the benchmark where it goes the other way, and tell them why
> they see a 2% deprovement. Give them some button they can tweak, because
> they will.
To some extent that's true, and I didn't want to generalize. If they are
adament that the benchmark models their real life, then no amount of
pointing in the other direction will change that.
Your point about tuning is definitely true, these people are used to
tuning things. For the desktop we care a lot more about working out of
the box.
> But make the default be low-latency. Because everybody cares about low
> latency, and the people who do so are _not_ the people who you give
> buttons to tweak things with.
Totally agree.
> > I agree, we can easily make CFQ be very about about latency. If you
> > think that is fine, then lets just do that. Then we'll get to fix the
> > server side up when the next RHEL/SLES/whatever cycle is honing in on a
> > kernel, hopefully we wont have to start over when that happens.
>
> I really think we should do latency first, and throughput second.
>
> It's _easy_ to get throughput. The people who care just about throughput
> can always just disable all the work we do for latency. If they really
> care about just throughput, they won't want fairness either - none of that
> complex stuff.
It's not _that_ easy, it depends a lot on the access patterns. A good
example of that is actually the idling that we already do. Say you have
two applications, each starting up. If you start them both at the same
time and just care for the dumb low latency, then you'll do one IO from
each of them in turn. Latency will be good, but throughput will be
aweful. And this means that in 20s they are both started, while with the
slice idling and priority disk access that CFQ does, you'd hopefully
have both up and running in 2s.
So latency is good, definitely, but sometimes you have to worry about
the bigger picture too. Latency is more than single IOs, it's often for
complete operation which may involve lots of IOs. Single IO latency is
a benchmark thing, it's not a real life issue. And that's where it
becomes complex and not so black and white. Mike's test is a really good
example of that.
--
Jens Axboe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/