From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756151Ab1I2Iux (ORCPT ); Thu, 29 Sep 2011 04:50:53 -0400 Received: from casper.infradead.org ([85.118.1.10]:33975 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754948Ab1I2Iuv convert rfc822-to-8bit (ORCPT ); Thu, 29 Sep 2011 04:50:51 -0400 Subject: Re: [PATCH 10/18] writeback: dirty position control - bdi reserve area 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: Thu, 29 Sep 2011 10:49:57 +0200 In-Reply-To: <20110929033201.GA21722@localhost> References: <20110904015305.367445271@intel.com> <20110904020915.942753370@intel.com> <1315318179.14232.3.camel@twins> <20110907123108.GB6862@localhost> <1315822779.26517.23.camel@twins> <20110918141705.GB15366@localhost> <20110918143721.GA17240@localhost> <20110918144751.GA18645@localhost> <20110928140205.GA26617@localhost> <1317221435.24040.39.camel@twins> <20110929033201.GA21722@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.0.3- Message-ID: <1317286197.22581.4.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-09-29 at 11:32 +0800, Wu Fengguang wrote: > > Now I guess the only problem is when nr_bdi * MIN_WRITEBACK_PAGES ~ > > limit, at which point things go pear shaped. > > Yes. In that case the global @dirty will always be drove up to @limit. > Once @dirty dropped reasonably below, whichever bdi task wakeup first > will take the chance to fill the gap, which is not fair for bdi's of > different speed. > > Let me retry the thresh=1M,10M test cases without MIN_WRITEBACK_PAGES. > Hopefully the removal of it won't impact performance a lot. Right, so alternatively we could try an argument that this is sufficiently rare and shouldn't happen. People with lots of disks tend to also have lots of memory, etc. If we do find it happens we can always look at it again.