From owner-freebsd-current@FreeBSD.ORG Sat Apr 10 08:38:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AD6C916A4CE; Sat, 10 Apr 2004 08:38:36 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i3AFcZSu079448; Sat, 10 Apr 2004 11:38:36 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200404101538.i3AFcZSu079448@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Jaye Mathisen In-Reply-To: Message from Jaye Mathisen <20040409202236.GQ43765@backmaster.cdsnet.net> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Apr 2004 11:38:35 -0400 Sender: green@green.homeunix.org cc: current@freebsd.org Subject: Re: Monumentally slow directory performance. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 10 Apr 2004 15:38:37 -0000 Jaye Mathisen wrote: > > > Running a 5.2 supped as of 4/9. > > I have the UFS_DIRHASH stuff compiled into my kernel. Is there some other > frob to actually "turn" it on? > > I run softupdates, and moving files from my local box over gig ethernet to a directory > with 5000 files in it is moving about 1 file every 6-7 seconds. > > If I move the same files to an empty directory, they move so fast I can' even > read the names, which is more "normal". > > Even directories with 2500 or so files seem really, really, really, really slow. > at least for adding/removing. > > My FS is UFS2, on a 3ware RAID controller. I would love any ideas. smbd > is burning up 60-70% of the CPU, I've tried kernels with and without all > the witness/diagnostic and all that stuff. Burning up 60-70% of the CPU? Just writing a file every 6-7 seconds to a pretty small directory? {"/home/green"}$ ls Mail/current | wc -l 64109 {"/home/green"}$ date; touch Mail/current/rand$RANDOM;\ > date; touch Mail/current/rand$RANDOM; date Sat Apr 10 11:37:55 EDT 2004 Sat Apr 10 11:37:55 EDT 2004 Sat Apr 10 11:37:55 EDT 2004 You should be getting "many" a second. Samba must be doing something wrong/ stuck on something. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\