From: Andrew Morton Subject: Re: [PATCH 0/3] i_ino uniqueness: alternate approach -- hash the inodes Date: Tue, 23 Jan 2007 20:46:48 -0800 Message-ID: <20070123204648.204b1834.akpm@osdl.org> References: <200701161857.l0GIvcaA016196@dantu.rdu.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Jeff Layton Return-path: Received: from smtp.osdl.org ([65.172.181.24]:51140 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965654AbXAXEq5 (ORCPT ); Tue, 23 Jan 2007 23:46:57 -0500 In-Reply-To: <200701161857.l0GIvcaA016196@dantu.rdu.redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, 16 Jan 2007 13:57:38 -0500 Jeff Layton wrote: > The questions are: > > 1) how much would this slow down lookups for these filesystems? > 2) is it enough to justify adding more infrastructure to avoid it? > > What might be best is to start with this approach and then only move to using > IDR or some other scheme if these extra inodes in the hashtable prove to be > problematic. > > I've done some cursory testing with this patch and the overhead of hashing > and unhashing the inodes with pipefs is pretty low -- just a few seconds of > system time added on to the creation and destruction of 10 million pipes (very > similar to the overhead that the IDR approach would add). What is the additional overhead, expressed in relative terms? ie: as a percentage?