From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754794Ab0KXMrY (ORCPT ); Wed, 24 Nov 2010 07:47:24 -0500 Received: from casper.infradead.org ([85.118.1.10]:42097 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753707Ab0KXMrW convert rfc822-to-8bit (ORCPT ); Wed, 24 Nov 2010 07:47:22 -0500 Subject: Re: [PATCH 08/13] writeback: quit throttling when bdi dirty pages dropped low From: Peter Zijlstra To: Wu Fengguang Cc: Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , "Theodore Ts'o" , Chris Mason , Mel Gorman , Rik van Riel , KOSAKI Motohiro , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML In-Reply-To: <20101124123023.GA10413@localhost> References: <20101117042720.033773013@intel.com> <20101117042850.245782303@intel.com> <1290597233.2072.454.camel@laptop> <20101124123023.GA10413@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 24 Nov 2010 13:46:51 +0100 Message-ID: <1290602811.2072.462.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2010-11-24 at 20:30 +0800, Wu Fengguang wrote: > > For the 1-dd case, it looks better to lower the break threshold to > 125ms. After all, it's not easy for the dirty pages to drop by 250ms > worth of data when you only slept 200ms (note: the max pause time has > been doubled mainly for servers). > > - if (nr_dirty < dirty_thresh && > - bdi_prev_dirty - bdi_dirty > (long)bdi->write_bandwidth / 4) > + if (nr_dirty <= dirty_thresh && > + bdi_prev_dirty - bdi_dirty > (long)bdi->write_bandwidth / 8) > break; Hrm, but 125ms worth in 200ms is rather easy, you'd want to keep that limit above what the pause should give you, right?