From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n8HI8Hjh227775 for ; Thu, 17 Sep 2009 13:08:20 -0500 Received: from bombadil.infradead.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 97C5446154D for ; Thu, 17 Sep 2009 11:09:32 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by cuda.sgi.com with ESMTP id DpSqGn2lJeBogYk4 for ; Thu, 17 Sep 2009 11:09:32 -0700 (PDT) Date: Thu, 17 Sep 2009 14:09:31 -0400 From: Christoph Hellwig Subject: Re: [PATCH] libxfs: increase hash chain depth when we run out of slots Message-ID: <20090917180931.GA21848@infradead.org> References: <4AB25E78.8050001@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4AB25E78.8050001@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Eric Sandeen Cc: Tomek Kruszona , Riku Paananen , xfs-oss On Thu, Sep 17, 2009 at 11:06:16AM -0500, Eric Sandeen wrote: > A couple people reported xfs_repair hangs after > "Traversing filesystem ..." in xfs_repair. This happens > when all slots in the cache are full and referenced, and the > loop in cache_node_get() which tries to shake unused entries > fails to find any - it just keeps upping the priority and goes > forever. > > This can be worked around by restarting xfs_repair with > -P and/or "-o bhash=" for older xfs_repair. > > I started down the path of increasing the number of hash buckets > on the fly, but Barry suggested simply increasing the max allowed > depth which is much simpler (thanks!) > > Resizing the hash lengths does mean that cache_report ends up with > most things in the "greater-than" category: > > ... > Hash buckets with 23 entries 3 ( 3%) > Hash buckets with 24 entries 3 ( 3%) > Hash buckets with >24 entries 50 ( 85%) > > but I think I'll save that fix for another patch unless there's > real concern right now. > > I tested this on the metadump image provided by Tomek. How large is that image? I really think we need to start collecting these images for regression testing. The patch looks good to me, Reviewed-by: Christoph Hellwig _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs