Re: RFC: I/O bandwidth controller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Righi
Date: Tuesday, August 12, 2008 - 5:55 am

Hirokazu Takahashi wrote:

With IO limiting approach minimum requirements are supposed to be
guaranteed if the user configures a generic block device so that the sum
of the limits doesn't exceed the total IO bandwidth of that device. But,
in principle, there's nothing in "throttling" that guarantees "fairness"
among different cgroups doing IO on the same block devices, that means
there's nothing to guarantee minimum requirements (and this is the
reason because I liked the Satoshi's CFQ-cgroup approach together with
io-throttle).

A more complicated issue is how to evaluate the total IO bandwidth of a
generic device. We can use some kind of averaging/prediction, but
basically it would be inaccurate due to the mechanic of disks (head
seeks, but also caching, buffering mechanisms implemented directly into
the device, etc.). It's a hard problem. And the same problem exists also
for proportional bandwidth as well, in terms of IO rate predictability I
mean.

The only difference is that with proportional bandwidth you know that
(taking the same example reported by Hirokazu) with i.e. 10 similar IO
requests, 7 will be dispatched to the first cgroup and 3 to the other
cgroup. So, you don't need anything to guarantee "fairness", but it's
hard also for this case to evaluate the cost of the 7 IO requests
respect to the cost of the other 3 IO requests as seen by user
applications, that is the cost the users care about.

-Andrea
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: RFC: I/O bandwidth controller, Hirokazu Takahashi, (Tue Aug 12, 4:10 am)
Re: RFC: I/O bandwidth controller, Andrea Righi, (Tue Aug 12, 5:55 am)
Re: RFC: I/O bandwidth controller, Andrea Righi, (Tue Aug 12, 6:07 am)
Re: RFC: I/O bandwidth controller, Fernando Luis , (Tue Aug 12, 6:15 am)
Re: RFC: I/O bandwidth controller, Fernando Luis , (Tue Aug 12, 6:54 am)
Re: RFC: I/O bandwidth controller, Andrea Righi, (Tue Aug 12, 1:44 pm)
Re: RFC: I/O bandwidth controller, 강동재, (Tue Aug 12, 11:23 pm)
Re: RFC: I/O bandwidth controller, Dong-Jae Kang, (Wed Aug 13, 12:47 am)
Re: RFC: I/O bandwidth controller, Andrea Righi, (Wed Aug 13, 10:56 am)
Re: RFC: I/O bandwidth controller, David Collier-Brown, (Thu Aug 14, 4:18 am)