Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2005 15:30:06 -0800
From:      Totem <totem-lists@totem.is-a-geek.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Slow directory access with lots of files
Message-ID:  <41EC4A7E.3020704@totem.is-a-geek.com>
In-Reply-To: <20050117191343.GA79136@xor.obsecurity.org>
References:  <41EC0D80.8090403@totem.is-a-geek.com> <20050117191343.GA79136@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway wrote:

>On Mon, Jan 17, 2005 at 11:09:52AM -0800, Totem wrote:
>  
>
>>Hello,
>>
>>I'm new to this list so please excuse me if this has been asked before 
>>or if I don't provide enough info.
>>
>>I'm having an issue and I hope someone can help me understand what is 
>>happening.  I have a FreeBSD server that is running Samba.  When users 
>>access directories that store lots of files (3k or so), access to the 
>>files is very slow.  I'm guessing that it is a file system issue.  I'd 
>>like to troubleshoot the problem but I don't know where to start.  (In 
>>the mean time I have just told the users to create sub-directories and 
>>sort their files).  Is there anything that I can do to make things run 
>>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
>
I will upgrade to 5.3 in the next few days and I will investigate how to 
use UFS_DIRHASH.

Thanks for the help.

Totem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41EC4A7E.3020704>