From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827Ab1HIKcu (ORCPT ); Tue, 9 Aug 2011 06:32:50 -0400 Received: from casper.infradead.org ([85.118.1.10]:46599 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338Ab1HIKct convert rfc822-to-8bit (ORCPT ); Tue, 9 Aug 2011 06:32:49 -0400 Subject: Re: [PATCH 2/5] writeback: dirty position control From: Peter Zijlstra To: Wu Fengguang 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 Date: Tue, 09 Aug 2011 12:32:19 +0200 In-Reply-To: <20110808230535.GC7176@localhost> References: <20110806084447.388624428@intel.com> <20110806094526.733282037@intel.com> <1312811193.10488.33.camel@twins> <20110808141128.GA22080@localhost> <1312814501.10488.41.camel@twins> <20110808230535.GC7176@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.0.2- Message-ID: <1312885939.22367.73.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-08-09 at 07:05 +0800, Wu Fengguang wrote: > This is the more meaningful view :) > > origin - dirty > pos_ratio = -------------- > origin - goal > which comes from the below [*] control line, so that when (dirty == goal), > pos_ratio == 1.0: OK, so basically you want a linear function for which: f(goal) = 1 and has a root somewhere > goal. (that one line is much more informative than all your graphs put together, one can start from there and derive your function) That does indeed get you the above function, now what does it mean? > + * When the number of dirty pages go higher/lower than the setpoint, the dirty > + * position ratio (and hence dirty rate limit) will be decreased/increased to > + * bring the dirty pages back to the setpoint. (you seem inconsistent with your terminology, I think goal and setpoint are interchanged? I looked up set point and its a term from control system theory, so I'll chalk that up to my own ignorance..) Ok, so higher dirty -> lower position ration -> lower dirty rate (and the inverse), now what does that do... /me goes read other patches in search of more clues.. I'm starting to dislike graphs.. why not simply state where those things come from, that's much easier.