Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753296AbZIIOwv (ORCPT ); Wed, 9 Sep 2009 10:52:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752499AbZIIOwv (ORCPT ); Wed, 9 Sep 2009 10:52:51 -0400 Received: from e28smtp07.in.ibm.com ([59.145.155.7]:55628 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940AbZIIOwu (ORCPT ); Wed, 9 Sep 2009 10:52:50 -0400 Date: Wed, 9 Sep 2009 16:21:22 +0530 From: Dhaval Giani To: Ryo Tsuruta Cc: vgoyal@redhat.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, balbir@linux.vnet.ibm.com Subject: Re: Regarding dm-ioband tests Message-ID: <20090909105122.GF8828@linux.vnet.ibm.com> Reply-To: Dhaval Giani References: <20090908.120119.71095369.ryov@valinux.co.jp> <20090908134244.GA15974@redhat.com> <20090908170649.GC8828@linux.vnet.ibm.com> <20090909.150511.112608142.ryov@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090909.150511.112608142.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: 2726 Lines: 61 On Wed, Sep 09, 2009 at 03:05:11PM +0900, Ryo Tsuruta wrote: > Hi, > > Dhaval Giani wrote: > > > > - dm-ioband can use without cgroup. (I remember Vivek said it's not an > > > > advantage.) > > > > > > I think this is more of a disadvantage than advantage. We have a very well > > > defined functionality of cgroup in kernel to group the tasks. Now you are > > > coming up with your own method of grouping the tasks which will make life > > > even more confusing for users and application writers. > > I know that cgroup is a very well defined functionality, that is why > dm-ioband also supports throttling per cgroup. But how are we supposed > to do throttling on the system which doesn't support cgroup? > As I wrote in another mail to Vivek, I would like to make use of > dm-ioband on RHEL 5.x. Hi Ryo, I am not sure that upstream should really be worrying about RHEL 5.x. cgroups is a relatively mature solution and is available in most (if not all) community distros today. We really should not be looking at another grouping solution if the sole reason is that then dm-ioband can be used on RHEL 5.x. The correct solution would be to maintain a separate patch for RHEL 5.x then and not to burden the upstream kernel. > And I don't think that the grouping methods are not complicated, just > stack a new device on the existing device and assign bandwidth to it, > that is the same method as other device-mapper targets, if you would > like to assign bandwidth per thread, then register the thread's ID to > the device and assign bandwidth to it as well. I don't think it makes > users confused. > > > I would tend to agree with this. With other resource management > > controllers using cgroups, having dm-ioband use something different will > > require a different set of userspace tools/libraries to be used. > > Something that will severly limit its usefulness froma programmer's > > perspective. > > Once we create a dm-ioband device, the device can be configured > through the cgroup interface. I think it will not severly limit its > usefulness. > My objection is slightly different. My objection is that there are too many interfaces to do the same thing. Which one of these is the recommended one? WHich one is going to be supported? If we say that cgroups is not the preferred interface, do the application developers need to use yet another library for io control along with cpu/memory control? thanks, -- regards, Dhaval -- 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/