From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 244D529DFB for ; Mon, 11 May 2015 16:45:03 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id A41CAAC001 for ; Mon, 11 May 2015 14:44:59 -0700 (PDT) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id vq6GhKnDV2N775GQ for ; Mon, 11 May 2015 14:44:56 -0700 (PDT) Date: Tue, 12 May 2015 07:44:42 +1000 From: Dave Chinner Subject: Re: Inode and dentry cache behavior Message-ID: <20150511214442.GF15721@dastard> References: <20150423224324.GM15810@dastard> <20150424061554.GN15810@dastard> <20150429013024.GU15810@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Shrinand Javadekar Cc: xfs@oss.sgi.com On Mon, May 11, 2015 at 02:07:39PM -0700, Shrinand Javadekar wrote: > In case you're curious, the solutions to this problem are being > discussed at [1] on the Swift side. > > O_TMPFILE and linkat() aren't available in all kernels (and python) > and therefore not a viable option right away. Among few others, one of > the proposals is to shard the tmp directory into say 256 dirs and > create these files inside those dirs. That way files won't get created > in a single AG. Are there any other problems if this is done? Yes, you don't get any locality between files in the same directory once you move them to their final location in the hash tree. You'll end up with the same problems you are trying to solve now as the object count goes up - you'll simply have taken a different path to the same destination.... Create your temp files in their eventual destination directory - doing anything else is pretty much guaranteed to compromise all the locality algorithms the filesystem uses. Without good locality within the data set, performance of lookups and writeback will degrade to large seek time random IO pretty quickly. Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs