Date: Thu, 2 Jan 2003 11:38:51 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: MikeM <MyRaQ@mgm51.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Lots of files in a directory Message-ID: <20030102173851.GG24622@dan.emsphone.com> In-Reply-To: <200301020901270548.09C1C68B@sentry.24cl.com> References: <200301020901270548.09C1C68B@sentry.24cl.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 02), MikeM said: > It was a surprise to me (but probably not to those on this list) that > the file system does not handle that many files in an expeditious > manner (I'm being kind here). > > 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). If you're doing file operations directly on known filenames, then the dirhash suggestions will really help. If freedb is doing directory scans or wildcard globbing, then no filesystem will save you :) -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030102173851.GG24622>