Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbZIHNta (ORCPT ); Tue, 8 Sep 2009 09:49:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754452AbZIHNt3 (ORCPT ); Tue, 8 Sep 2009 09:49:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754329AbZIHNt3 (ORCPT ); Tue, 8 Sep 2009 09:49:29 -0400 Date: Tue, 8 Sep 2009 09:49:15 -0400 From: Vivek Goyal To: Ryo Tsuruta Cc: balbir@linux.vnet.ibm.com, riel@redhat.com, linux-kernel@vger.kernel.org, dm-devel@redhat.com, jens.axboe@oracle.com, agk@redhat.com, akpm@linux-foundation.org, nauman@google.com, guijianfeng@cn.fujitsu.com, jmoyer@redhat.com Subject: Re: Regarding dm-ioband tests Message-ID: <20090908134915.GB15974@redhat.com> References: <4AA51065.6050000@redhat.com> <20090908.120119.71095369.ryov@valinux.co.jp> <20090908032254.GJ8315@balbir.in.ibm.com> <20090908.140516.104049366.ryov@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090908.140516.104049366.ryov@valinux.co.jp> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1912 Lines: 49 On Tue, Sep 08, 2009 at 02:05:16PM +0900, Ryo Tsuruta wrote: > Hi Balbir, > > Balbir Singh wrote: > > * Ryo Tsuruta [2009-09-08 12:01:19]: > > > > > I think there are some advantages to dm-ioband. That's why I post > > > dm-ioband to the mailing list. > > > > > > - dm-ioband supports not only proportional weight policy but also rate > > > limiting policy. Besides, new policies can be added to dm-ioband if > > > a user wants to control bandwidth by his or her own policy. > > > - The dm-ioband driver can be replaced without stopping the system by > > > using device-mapper's facility. It's easy to maintain. > > > - dm-ioband can use without cgroup. (I remember Vivek said it's not an > > > advantage.) > > > > But don't you need page_cgroup for IO tracking? > > It is not necessary when controlling bandwidth on a per partition > basis or on a IO thread basis like Xen blkback kernel thread. > > Here are configration examples. > http://sourceforge.net/apps/trac/ioband/wiki/dm-ioband/man/examples > For partition based control, where a thread or group of threads is doing IO to a specific parition, why can't you simply create different cgroups for each partition and move threads in those partitions. root / | \ sda1 sda2 sda3 Above are three groups and move threads doing IO into those groups and problem is solved. In fact that's what one will do for KVM virtual machines. Move all the qemu helper threds doing IO for a virtual machine instance into a specific group and control the IO. Why do you have to come up with additional complicated grouping mechanism? Thanks Vivek -- 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/