From owner-freebsd-questions Thu Jan 2 11:36:30 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2952837B401 for ; Thu, 2 Jan 2003 11:36:29 -0800 (PST) Received: from sentry.24cl.com (174.113.sn.ct.dsl.thebiz.net [216.238.113.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DE1943EC2 for ; Thu, 2 Jan 2003 11:36:28 -0800 (PST) (envelope-from myraq@mgm51.com) Received: from ntmm (unknown [63.119.50.193]) by sentry.24cl.com (Postfix) with ESMTP id 8514B29496 for ; Thu, 2 Jan 2003 14:36:27 -0500 (EST) Message-ID: <200301021436270671.0AF47A7E@home.24cl.com> In-Reply-To: <20030102173851.GG24622@dan.emsphone.com> References: <200301020901270548.09C1C68B@sentry.24cl.com> <20030102173851.GG24622@dan.emsphone.com> X-Mailer: Calypso Version 3.30.00.00 (1) Date: Thu, 02 Jan 2003 14:36:27 -0500 Reply-To: myraq@mgm51.com From: "MikeM" To: freebsd-questions@FreeBSD.ORG Subject: Re: Lots of files in a directory Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 1/2/03 at 11:38 AM Dan Nelson wrote: |In the last episode (Jan 02), MikeM said: |> Is there anything I can do so that the file system works faster with |> such a large number of files? I'm looking for an increase in the |> area of 5 to 1. For example, the command "rm -rf misc" where "misc" |> is the directory containing the 250,000 files takes a couple of hours |> to run. If "misc" is my current working directory, and I type "rm *" |> I get the message that there are too many arguments being passed into |> rm. | |In addition to the other suggestions, enabling softupdates will make |file creation and deletion much faster (your rm -rf will speed up |~100x, for example). ============= Thanks. tunefs for enabling softupdates seems to require console access and single user boot mode. So I'll have to schedule that on my distant server. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message