From: Andrea Righi <righi.andrea@gmail.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: Hirokazu Takahashi <taka@valinux.co.jp>,
ryov@valinux.co.jp, linux-kernel@vger.kernel.org,
dm-devel@redhat.com, containers@lists.linux-foundation.org,
virtualization@lists.linux-foundation.org,
xen-devel@lists.xensource.com, fernando@oss.ntt.co.jp,
balbir@linux.vnet.ibm.com, xemul@openvz.org, agk@sourceware.org,
jens.axboe@oracle.com
Subject: Re: dm-ioband + bio-cgroup benchmarks
Date: Fri, 19 Sep 2008 22:28:40 +0200 [thread overview]
Message-ID: <48D40B78.6060709@gmail.com> (raw)
In-Reply-To: <20080919131019.GA3606@redhat.com>
Vivek Goyal wrote:
> On Fri, Sep 19, 2008 at 08:20:31PM +0900, Hirokazu Takahashi wrote:
>>> To avoid creation of stacking another device (dm-ioband) on top of every
>>> device we want to subject to rules, I was thinking of maintaining an
>>> rb-tree per request queue. Requests will first go into this rb-tree upon
>>> __make_request() and then will filter down to elevator associated with the
>>> queue (if there is one). This will provide us the control of releasing
>>> bio's to elevaor based on policies (proportional weight, max bandwidth
>>> etc) and no need of stacking additional block device.
>> I think it's a bit late to control I/O requests there, since process
>> may be blocked in get_request_wait when the I/O load is high.
>> Please imagine the situation that cgroups with low bandwidths are
>> consuming most of "struct request"s while another cgroup with a high
>> bandwidth is blocked and can't get enough "struct request"s.
>>
>> It means cgroups that issues lot of I/O request can win the game.
>>
>
> Ok, this is a good point. Because number of struct requests are limited
> and they seem to be allocated on first come first serve basis, so if a
> cgroup is generating lot of IO, then it might win.
>
> But dm-ioband will face the same issue. Essentially it is also a request
> queue and it will have limited number of request descriptors. Have you
> modified the logic somewhere for allocation of request descriptors to the
> waiting processes based on their weights? If yes, the logic probably can
> be implemented here too.
Maybe throttling dirty page ratio in memory could help to avoid this problem.
I mean, if a cgroup is exceeding the i/o limits do ehm... something.. also at
the balance_dirty_pages() level.
-Andrea
next prev parent reply other threads:[~2008-09-19 20:28 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 12:04 Ryo Tsuruta
2008-09-18 13:15 ` Vivek Goyal
2008-09-18 14:37 ` Andrea Righi
2008-09-18 15:06 ` Vivek Goyal
2008-09-18 15:18 ` Andrea Righi
2008-09-18 16:20 ` Vivek Goyal
2008-09-18 19:54 ` Andrea Righi
2008-09-19 3:34 ` [dm-devel] " Hirokazu Takahashi
2008-09-20 4:27 ` KAMEZAWA Hiroyuki
2008-09-20 5:18 ` Balbir Singh
2008-09-20 9:25 ` KAMEZAWA Hiroyuki
[not found] ` <661de9470809240404i62300942o15337ecec335fe22@mail.gmail.com>
2008-09-24 11:07 ` [Xen-devel] " Balbir Singh
2008-09-26 10:54 ` Hirokazu Takahashi
2008-09-19 6:12 ` Hirokazu Takahashi
2008-09-19 13:12 ` Vivek Goyal
2008-09-19 11:20 ` Hirokazu Takahashi
2008-09-19 13:10 ` Vivek Goyal
2008-09-19 20:28 ` Andrea Righi [this message]
2008-09-22 9:45 ` Hirokazu Takahashi
2008-09-22 9:36 ` Hirokazu Takahashi
2008-09-22 14:30 ` Vivek Goyal
2008-09-24 8:29 ` Hirokazu Takahashi
2008-09-24 14:03 ` Vivek Goyal
2008-09-26 16:11 ` Andrea Righi
2008-09-26 17:11 ` Andrea Righi
2008-09-26 17:30 ` Andrea Righi
2008-09-29 12:07 ` Hirokazu Takahashi
2008-09-29 12:13 ` Pavel Emelyanov
2008-09-24 10:18 ` Hirokazu Takahashi
2008-09-24 14:52 ` Vivek Goyal
2008-09-26 12:42 ` Hirokazu Takahashi
2008-09-24 10:34 ` Hirokazu Takahashi
2008-09-24 12:38 ` Balbir Singh
2008-09-24 14:53 ` Vivek Goyal
2008-09-26 13:04 ` Hirokazu Takahashi
2008-09-26 15:56 ` Andrea Righi
2008-09-29 10:40 ` Hirokazu Takahashi
2008-09-19 8:49 ` Takuya Yoshikawa
2008-09-19 11:31 ` Ryo Tsuruta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48D40B78.6060709@gmail.com \
--to=righi.andrea@gmail.com \
--cc=agk@sourceware.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=containers@lists.linux-foundation.org \
--cc=dm-devel@redhat.com \
--cc=fernando@oss.ntt.co.jp \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ryov@valinux.co.jp \
--cc=taka@valinux.co.jp \
--cc=vgoyal@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=xemul@openvz.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome