From owner-freebsd-current@FreeBSD.ORG Mon Nov 21 03:35:49 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9440F16A41F; Mon, 21 Nov 2005 03:35:49 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B42E43D45; Mon, 21 Nov 2005 03:35:49 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.13.0/8.13.0) with ESMTP id jAL3Zksl009119; Sun, 20 Nov 2005 22:35:47 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20051116161540.GB4383@uk.tiscali.com> <437F7E22.5050800@freebsd.org> <20051120192914.GC19572@uk.tiscali.com> Date: Sun, 20 Nov 2005 22:35:45 -0500 To: Brian Candler , Tim Kientzle From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.3 Cc: freebsd-current@freebsd.org Subject: Re: Order of files with 'cp' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 03:35:49 -0000 At 9:56 PM -0500 11/20/05, Garance A Drosihn wrote: > >*Assuming* the comment is correct, and that there *is* some >performance benefit by copying files before directories, then >it still seems to me that sorting all the files is a pretty >clumsy heavy-handed way to accomplish that. These days some >people have directories with tens of thousands of entries in >them. Do we really want the overhead of "sorting" all of those >entries just so files are copied before directories? It also occurs to me that it might be helpful to know what effect sorting would have when combined with the 'dirhash' processing we have in directories now. If we *are* going to bother to sort the list of entries going into some directory, then maybe there is some other sort-order which would produce better results as far as dirhash is concerned. [disclaimer: I know nothing about how dirhash does it's hashing. It might be completely irrelevant which order is used when adding files to a directory] -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu