[dm-devel] [PATCH 1/2] dm-kcopyd: introduce per-module throttle structure

Mikulas Patocka mpatocka at redhat.com
Fri Jun 10 13:41:50 UTC 2011



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.

Mikulas




More information about the dm-devel mailing list