From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH RFC] mm: Implement balance_dirty_pages() through waiting for flusher thread Date: Tue, 22 Jun 2010 10:31:24 -0400 Message-ID: <20100622143124.GA15235@infradead.org> References: <1276797878-28893-1-git-send-email-jack@suse.cz> <20100618060901.GA6590@dastard> <20100621233628.GL3828@quack.suse.cz> <20100622054409.GP7869@dastard> <20100621231416.904c50c7.akpm@linux-foundation.org> <20100622100924.GQ7869@dastard> <20100622131745.GB3338@quack.suse.cz> <20100622135234.GA11561@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kara , Dave Chinner , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, hch@infradead.org, peterz@infradead.org To: Wu Fengguang Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:54487 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736Ab0FVObf (ORCPT ); Tue, 22 Jun 2010 10:31:35 -0400 Content-Disposition: inline In-Reply-To: <20100622135234.GA11561@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jun 22, 2010 at 09:52:34PM +0800, Wu Fengguang wrote: > 2) most writeback will be submitted by one per-bdi-flusher, so no worry > of cache bouncing (this also means the per CPU counter error is > normally bounded by the batch size) What counter are we talking about exactly? Once balanance_dirty_pages stops submitting I/O the per-bdi flusher thread will in fact be the only thing submitting writeback, unless you count direct invocations of writeback_single_inode.