From owner-freebsd-hackers Fri Aug 15 05:20:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA23965 for hackers-outgoing; Fri, 15 Aug 1997 05:20:40 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id FAA23960 for ; Fri, 15 Aug 1997 05:20:35 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA15250; Fri, 15 Aug 1997 08:20:03 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Fri, 15 Aug 1997 08:20 EDT Received: from lakes.dignus.com (lakes [10.0.0.3]) by ponds.dignus.com (8.8.5/8.7.3) with ESMTP id IAA07496 for ; Fri, 15 Aug 1997 08:09:00 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.8.5/8.6.9) id HAA01010 for freebsd-hackers@freefall.cdrom.com; Fri, 15 Aug 1997 07:57:50 -0400 (EDT) Date: Fri, 15 Aug 1997 07:57:50 -0400 (EDT) From: Thomas David Rivers Message-Id: <199708151157.HAA01010@lakes.dignus.com> To: ponds!freefall.cdrom.com!freebsd-hackers Subject: Re: More info on slow "rm" times with 2.2.1+. Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk David Greene writes: > > The answer to this is that FreeBSD, like many (most?) other operating > systems, doesn't handle very large directories very well. When I was looking > into similar slowness on a different news server, I found that the > control.cancel newsgroup directory was more than 10MB large! I think it > contained more than 200,000 files, but I don't recall the exact number. Ah... I haven't seen my own follow ups yet; you may already know this... But, apparently, it's 2.2.x that doesn't handle large directories very well - 2.1.7 seems to work like a champ. It was taking 3-5 seconds to remove a file in a 300-400 entry directory with 2.2.1. It took only 3 seconds to remove all 300+ files with 2.1.7. [I booted up 2.1.7 with a fixit floppy, mounted the news partition and just did a "rm *" in control - *poof, they are all gone...] This is most definately a 2.2.x phenomenon... - Dave Rivers -