From owner-freebsd-questions@FreeBSD.ORG Mon Jan 17 19:09:54 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 4760C16A4CE for ; Mon, 17 Jan 2005 19:09:54 +0000 (GMT) Received: from relay2.mail.cyrk.com (relay2.mail.cyrk.com [4.21.167.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9DDD43D54 for ; Mon, 17 Jan 2005 19:09:53 +0000 (GMT) (envelope-from totem-lists@totem.is-a-geek.com) Received: from out2.nospam.cyrk.com (out2.nospam.cyrk.com [172.16.2.37]) by relay2.mail.cyrk.com (Mail Daemon) with ESMTP id C70584B7DD for ; Mon, 17 Jan 2005 09:27:48 -0800 (PST) Received: from totem.is-a-geek.com ([172.16.5.50]) by out2.nospam.cyrk.com (Mail Daemon) with ESMTP; Mon, 17 Jan 2005 11:09:53 -0800 Message-ID: <41EC0D80.8090403@totem.is-a-geek.com> Date: Mon, 17 Jan 2005 11:09:52 -0800 From: Totem User-Agent: Mozilla Thunderbird 0.5 (X11/20040902) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mlf-Reason: rules:hdrs Subject: Slow directory access with lots of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: totem@totem.is-a-geek.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 19:09:54 -0000 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? Here is my OS version: # uname -a FreeBSD server.example.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 Here is some of the software used by the users to access files (installed via ports): samba-3.0.4,1 nss_ldap-1.204_5 openldap-server-2.1.30 (plenty of others) I'm using POSIX ACL's on the files/directories that are slow. User account information is stored in LDAP. The server is a fast enough, uses RAID 5 w/ SCSI drives, and there is plenty of RAM. Utilization is fairly low so I don't think it is a HW problem. I'm going to update the OS and ports on this server soon. Perhaps that will help, but I'm not too hopeful. Any thoughts? Thanks, Totem