From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752722Ab0IMJYJ (ORCPT ); Mon, 13 Sep 2010 05:24:09 -0400 Received: from f0.cmpxchg.org ([85.214.51.133]:47403 "EHLO cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751650Ab0IMJYH (ORCPT ); Mon, 13 Sep 2010 05:24:07 -0400 Date: Mon, 13 Sep 2010 11:23:55 +0200 From: Johannes Weiner To: Wu Fengguang Cc: linux-mm , LKML , Jan Kara , Peter Zijlstra , Andrew Morton , "Theodore Ts'o" , Dave Chinner , Mel Gorman , Rik van Riel , KOSAKI Motohiro , Chris Mason , Christoph Hellwig , Li Shaohua Subject: Re: [PATCH 01/17] writeback: remove the internal 5% low bound on dirty_ratio Message-ID: <20100913092355.GA20954@cmpxchg.org> References: <20100912154945.758129106@intel.com> <20100912155202.733389420@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100912155202.733389420@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 12, 2010 at 11:49:46PM +0800, Wu Fengguang wrote: > The dirty_ratio was siliently limited in global_dirty_limits() to >= 5%. > This is not a user expected behavior. And it's inconsistent with > calc_period_shift(), which uses the plain vm_dirty_ratio value. > > Let's rip the arbitrary internal bound. It may impact some very weird > user space applications. However we are going to dynamicly sizing the > dirty limits anyway, which may well break such applications, too. > > At the same time, fix balance_dirty_pages() to work with the > dirty_thresh=0 case. This allows applications to proceed when > dirty+writeback pages are all cleaned. > > And ">" fits with the name "exceeded" better than ">=" does. Neil > think it is an aesthetic improvement as well as a functional one :) > > CC: Jan Kara > Proposed-by: Con Kolivas > Acked-by: Peter Zijlstra > Reviewed-by: Rik van Riel > Reviewed-by: Neil Brown > Reviewed-by: KOSAKI Motohiro > Signed-off-by: Wu Fengguang Acked-by: Johannes Weiner