From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 4/5] writeback: per task dirty rate limit Date: Tue, 9 Aug 2011 07:32:55 +0800 Message-ID: <20110808233254.GA15932@localhost> References: <20110806084447.388624428@intel.com> <20110806094527.002914580@intel.com> <1312811234.10488.34.camel@twins> <20110808142123.GB22080@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "linux-fsdevel@vger.kernel.org" , Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , Greg Thelen , Minchan Kim , Vivek Goyal , Andrea Righi , linux-mm , LKML To: Peter Zijlstra Return-path: Content-Disposition: inline In-Reply-To: <20110808142123.GB22080@localhost> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > --- linux-next.orig/kernel/fork.c 2011-08-08 22:11:59.000000000 +0800 > +++ linux-next/kernel/fork.c 2011-08-08 22:18:05.000000000 +0800 > @@ -1301,6 +1301,9 @@ static struct task_struct *copy_process( > p->pdeath_signal = 0; > p->exit_state = 0; > > + p->nr_dirtied = 0; > + p->nr_dirtied_pause = 8; Hmm, it looks better to allow a new task to dirty 128KB without being throttled, if the system is not in dirty exceeded state. So changed the last line to this: + p->nr_dirtied_pause = 128 >> (PAGE_SHIFT - 10); Thanks, Fengguang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org