Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752575Ab0GACqu (ORCPT ); Wed, 30 Jun 2010 22:46:50 -0400 Received: from bld-mail17.adl2.internode.on.net ([150.101.137.102]:45827 "EHLO mail.internode.on.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751634Ab0GACqt (ORCPT ); Wed, 30 Jun 2010 22:46:49 -0400 Date: Thu, 1 Jul 2010 12:46:33 +1000 From: Dave Chinner To: Nick Piggin Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, John Stultz , Frank Mayhar Subject: Re: [patch 37/52] fs: icache lazy lru Message-ID: <20100701024633.GR24712@dastard> References: <20100624030212.676457061@suse.de> <20100624030731.563540438@suse.de> <20100630083814.GG24712@dastard> <20100630120631.GC21358@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100630120631.GC21358@laptop> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1881 Lines: 43 On Wed, Jun 30, 2010 at 10:06:31PM +1000, Nick Piggin wrote: > On Wed, Jun 30, 2010 at 06:38:14PM +1000, Dave Chinner wrote: > > On Thu, Jun 24, 2010 at 01:02:49PM +1000, npiggin@suse.de wrote: > > > Impelemnt lazy inode lru similarly to dcache. This will reduce lock > > > acquisition and will help to improve lock ordering subsequently. > > > > I'm not sure we want the I_REFERENCED reclaim free pass for a clean > > inode that has been put on the LRU directly. I can see exactly how > > it is benficial to delay reclaim of dirty inodes (XFS uses that > > trick), but in terms of aging the cache we've already done this > > free pass trick at the dentry level. Hence I think the frequent > > separate access patterns tend to be filtered out at the dcache level > > and hence we don't need to handle that in the inode cache. > > > > Perhaps we only need the I_REFERENCED flag to give dirty inodes a > > chance to be flushed by other means before forcing reclaim to do > > inode writeback? > > It doesn't force flush, but it force invalidates pagecache. Sorry, bad choice of words - I should have said "forcing reclaim to wait on inode writeback". That is what will happen in the case of delayed allocation - the page cache will be clean, but the inode can be dirty, so reclaiming such an inode would cause the shrinker to block in clear_inode() waiting for inode writeback to complete. However, that is mostly irrelevant - you haven't comented at all on whether the I_REFERENCED flag is too broad or even needed which is what really needs to be discussed about this patch.... Cheers, Dave. -- Dave Chinner david@fromorbit.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/