On Tue, 2013-12-31 at 22:22 +-0800, Tao Ma wrote: +AD4- Hi Chris, +AD4- On 12/31/2013 09:19 PM, Chris Mason wrote: +AD4- +AD4- +AD4- So I'd like to throttle the rate at which dirty pages are created, +AD4- +AD4- preferably based on the rates currently calculated in the BDI of how +AD4- +AD4- quickly the device is doing IO. This way we can limit dirty creation to +AD4- +AD4- a percentage of the disk capacity during the current workload +AD4- +AD4- (regardless of random vs buffered). +AD4- Fengguang had already done some work on this, but it seems that the +AD4- community does't have a consensus on where this control file should go. +AD4- You can look at this link: https://lkml.org/lkml/2011/4/4/205 I had forgotten Wu's patches here, it's very close to the starting point I was hoping for. -chris -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html