From owner-freebsd-hackers Sat Aug 16 05:05:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA20705 for hackers-outgoing; Sat, 16 Aug 1997 05:05:46 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA20700 for ; Sat, 16 Aug 1997 05:05:42 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id FAA26252; Sat, 16 Aug 1997 05:07:22 -0700 (PDT) Message-Id: <199708161207.FAA26252@implode.root.com> To: Thomas David Rivers cc: hackers@freebsd.org Subject: Re: More info on slow "rm" times with 2.2.1+. In-reply-to: Your message of "Sat, 16 Aug 1997 07:06:53 EDT." <199708161106.HAA02927@lakes.dignus.com> From: David Greenman Reply-To: dg@root.com Date: Sat, 16 Aug 1997 05:07:22 -0700 Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Perhaps it's worthwhile to indicate exactly what I've found, >you may be absolutely correct - there could be a flaw in my logic: > >Deleting a file out of ~20,000 with 2.2.1, async mount, multiuser: 3-5 seconds >Deleting a file out of ~10,000 with 2.2.1, sync mount, multiuser: 3-5 seconds >Deleting a file out of ~10,000 with 2.2.1, sync mount, single user: 3-5 seconds >Deleting a file out of ~300 with 2.2.1, sync mount, multiuser: 3-5 seconds >Deleting all of ~300 with 2.1.7, sync mount, single user: 4 seconds > > >> >> Of course, my premises may be incorrect in this too. :0 > > It would be trivial for me to verify any slow or fast times - all >I've got to do is make a big directory... seems that ~300 files is >enough to run into whatever the problem may be... How many files are in the directory isn't important. What is important is the size of the directory. You can have a 20MB directory and yet have only a 100 files in it. There is code to free up unused space in directories, but it only works if the free space is at the end. If the directory is large, then it will take a large amount of time to search through it. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project