From owner-freebsd-questions@FreeBSD.ORG Mon Jan 17 19:13:44 2005 Return-Path: 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 EAC6916A4CE for ; Mon, 17 Jan 2005 19:13:44 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id A402243D1D for ; Mon, 17 Jan 2005 19:13:44 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 154495145A; Mon, 17 Jan 2005 11:13:44 -0800 (PST) Date: Mon, 17 Jan 2005 11:13:43 -0800 From: Kris Kennaway To: totem@totem.is-a-geek.com Message-ID: <20050117191343.GA79136@xor.obsecurity.org> References: <41EC0D80.8090403@totem.is-a-geek.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <41EC0D80.8090403@totem.is-a-geek.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Slow directory access with lots of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 19:13:45 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 17, 2005 at 11:09:52AM -0800, Totem wrote: > Hello, >=20 > I'm new to this list so please excuse me if this has been asked before=20 > or if I don't provide enough info. >=20 > I'm having an issue and I hope someone can help me understand what is=20 > happening. I have a FreeBSD server that is running Samba. When users=20 > access directories that store lots of files (3k or so), access to the=20 > files is very slow. I'm guessing that it is a file system issue. I'd=20 > like to troubleshoot the problem but I don't know where to start. (In=20 > the mean time I have just told the users to create sub-directories and=20 > sort their files). Is there anything that I can do to make things run=20 > faster? Do you have UFS_DIRHASH in your kernel? If you don't, or if you added it after the disk was already populated, you'll see the benefits if you dump, wipe and restore the disk. Also try updating to 5.3, which is much better than the 5.2.1 developers preview release. Kris --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB7A5nWry0BWjoQKURAs6oAKCERsmaHr7+5WPbf2gXLsZbg5lAYACeMBEE 39iPqsIfLKOVqY8r549QT6s= =oBF5 -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--