Speaking of AIX on samba... (and just joined the list myself) (Some names and dates have been changed to protect the innocent) Samba server name: HEATHER Samba server is an IBM RS/6000 F50 with 1.2 GB of RAM and dual ~333 MHz ppc processors Samba 3.0.11 AIX 4.3.3 ML10 gcc -v Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.3.4/specs Configured with: ../gcc-3.3.4/configure --disable-nls Thread model: aix gcc version 3.3.4 # Begin smb.conf # Global parameters [global] netbios name = HEATHER workgroup = CAPSSGRP username map = /usr/local/samba/lib/smbusers wins server = 172.16.1.23 [web_calls] comment = data transfer share path = /usr/home/web_calls read only = No # End smb.conf Extracted, compiled, and installed form samba-latest tarball source. We have an application running on a windows 2000 server that mapps a drive to HEATHER. This application will periodically poll the mapped drive for files (*.sql - small text files with an MSSQL query in them), read them, execute the query to an MSSQL server and then delete the file. This directory can have anywhere from 0-30,000 files in it at any given time. Whenever the process on the windows 2000 server is accessing the samba drive the smbd process servicing it pretty much eats up the cpu on the samba server. The process on the win2k server goes through the files on the samba drive very slowly no matter how many files are in it. Any ideas/suggestions? -- Jeff Schoby Unix/Network Admin City of Columbia, Missouri 573.874.6320
On Tue, Feb 22, 2005 at 10:41:48AM -0600, Jeff Schoby wrote:> > Extracted, compiled, and installed form samba-latest tarball source. > > We have an application running on a windows 2000 server that mapps a > drive to HEATHER. This application will periodically poll the mapped > drive for files (*.sql - small text files with an MSSQL query in them), > read them, execute the query to an MSSQL server and then delete the > file. This directory can have anywhere from 0-30,000 files in it at any > given time. Whenever the process on the windows 2000 server is > accessing the samba drive the smbd process servicing it pretty much eats > up the cpu on the samba server. The process on the win2k server goes > through the files on the samba drive very slowly no matter how many > files are in it. > > Any ideas/suggestions?Ok - for a directory with 30,000 files in it you need to have the latest svn source for Samba 3.0 (this fix isn't in 3.0.11 I'm afraid as it was deemed too big a change at too late a stage) and to follow the advice I gave on the list about how to set up a share to efficiently cope with large directories. Someone from IBM is happily using this for < 100,000 file directories, so I'm comfortable that it works. Jeremy.
>Ok - for a directory with 30,000 files in it you need to have the >latest svn source for Samba 3.0 (this fix isn't in 3.0.11 I'm afraid >as it was deemed too big a change at too late a stage) and to follow >the advice I gave on the list about how to set up a share toefficiently>cope with large directories. Someone from IBM is happily using this >for < 100,000 file directories, so I'm comfortable that it works.Just joined the list yesterday, got a link to that archived post? This directory rarely has that many files in it. The point I was trying to get across was that the access was slow no matter how many files are there, due to the high cpu utilization of that particular smbd. If the directory has > 3000 files in it...it even slows down on the AIX side and becomes unmanagable. Good to see that someone at IBM is using it that way tho. Thanks for the advice!... -- Jeff Schoby Unix/Network Admin City of Columbia, Missouri 573.874.6320