From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 1/2] dm-kcopyd: introduce per-module throttle structure Date: Fri, 10 Jun 2011 09:51:31 -0400 Message-ID: <20110610135131.GA18810@redhat.com> References: <20110601095106.GA3718@ubuntu> <20110603110111.GA4969@ubuntu> <20110609094746.GA3152@ubuntu> <20110610084424.GA3672@ubuntu> <20110610092834.GB22211@barkeeper1-xen.linbit> <20110610101446.GB10144@ubuntu> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: device-mapper development , Joe Thornber , "Alasdair G. Kergon" List-Id: dm-devel.ids On Fri, Jun 10 2011 at 9:41am -0400, Mikulas Patocka wrote: > > > On Fri, 10 Jun 2011, Joe Thornber wrote: > > > On Fri, Jun 10, 2011 at 11:28:34AM +0200, Lars Ellenberg wrote: > > > On Fri, Jun 10, 2011 at 09:44:25AM +0100, Joe Thornber wrote: > > > > On Thu, Jun 09, 2011 at 12:08:08PM -0400, Mikulas Patocka wrote: > > > > > > > > > > > > > > > On Thu, 9 Jun 2011, Joe Thornber wrote: > > > > > > What we're trying to do is avoid kcopyd issuing so much io that it > > > > > > interferes with userland io. > > > > > > > > > > But you don't know if there is some userland IO or not to the same disk. > > > > > > > > None the less, this was the motivation Alasdair gave for wanting this > > > > throttling. > > > > > > Not sure if it helps, > > > but are you familiar with the MD raid rebuild throttling? > > > > Lars, > > > > This is very helpful, thankyou. Any thoughts on this Mikulas? > > > > - Joe > > This works if the data is directly on the partition, but it won't work on > the device mapper (if MD is on the device mapper, it won't work too). > > The device mapper has no function to tell where the bio is finally > remapped, so you can't read disk statistics for that particular disk. DM raid in terms of MD (as Jon and Neil are working on) has functional resync throttling. So DM wrapping MD raid gives us what we need without the need to change kcopyd no? Mike