Re: RFC: I/O bandwidth controller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Righi
Date: Wednesday, August 13, 2008 - 10:56 am

Dong-Jae Kang wrote:

Good question, thanks!

fair = equally distribute the IO cost and throttling among cgroups,
instead of equal distribution among processes, and equally among the
processes belonging to the same cgroup.

In the previous scenario the process that moves back the disk head
wouldn't be charged for the whole IO cost. It's the belonging cgroup
that would be charged instead. So, the accounting is perfectly fair from
this point of view, because the cgroup credits are shared among the
processes within the cgroup.

The IO controller instead should be able to apply throttling in a "fair"
way, that means, when the credits are over it should distribute the
throttling time equally among the processes within the cgroup, i.e.
imposing a total_time_to_sleep/N to each process (where N is the number
of processes into the cgroup) or, even better, distribute the
total_time_to_sleep as a function of the previously generated task's IO,
looking at the IO taskstats for example (/proc/PID/io). But this is
another problem anyway.

So, it seems I used a bad example, sorry.


For net-io-controller there's a better solution than mine, have a look
at this:

http://lkml.org/lkml/2008/7/24/455

-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)