From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: Re: [Lsf-pc] [LSF/MM ATTEND] Filesystems -- Btrfs, cgroups, Storage topics from Facebook Date: Tue, 31 Dec 2013 15:34:40 +0000 Message-ID: <1388504116.24668.0.camel@ret.masoncoding.com> References: <1388439412.16965.27.camel@ret> <20131231084927.GA29449@gmail.com> <20131231124535.GE11920@quack.suse.cz> <1388495991.16965.36.camel@ret> <52C2D342.8000606@tao.ma> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-7" Content-Transfer-Encoding: 8BIT Cc: "jack@suse.cz" , "gnehzuil.liu@gmail.com" , "lsf-pc@lists.linux-foundation.org" , "linux-fsdevel@vger.kernel.org" To: "tm@tao.ma" Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:63569 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753583Ab3LaPe7 convert rfc822-to-8bit (ORCPT ); Tue, 31 Dec 2013 10:34:59 -0500 In-Reply-To: <52C2D342.8000606@tao.ma> Content-Language: en-US Content-ID: <38401815DA3C0543B2C223987AF88AF5@fb.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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