[Samba] Slow performance with lots of files in one directory

Jay Fenlason fenlason at redhat.com
Thu Jan 9 18:36:00 GMT 2003


On Thu, Jan 09, 2003 at 04:19:27PM -0200, Roberto João Lopes Garcia wrote:
> At 15:04 09/01/2003, Chris Palmer wrote:
> >Anders Nordby writes:
> >
> >> I've got performance problems with copying small files over to a Samba
> >> share in a directory that has lots of small files (10000 to 20000
> >> files). It takes too long time to copy new files (they drip in at a
> >> fast pace), and smbd eats a lot of CPU time.
> >
> >This could be not so much a Samba problem as a Unix kernel problem.
> >Traditional Unix filesystems (UFS, FFS, ext2, et c.) do not deal well
> >with very full directories. See Maurice Bach's book *Design of the Unix
> >Operating System* and M. K. McKusick's *Design and Implementation of the
> >4.4BSD Operating System*. These are both just great books.
> >
> >If you are on Linux, try using one of the new filesystems like ReiserFS,
> >XFS or JFS. Among other abilities, they can handle extremely full
> >directories better.
> 
> What about EXT3 file system?

EXT3 uses the same linear directory structure as EXT2.  Therefore, it suffers
the same performance penalty when dealing with large directories.

			-- JF




More information about the samba mailing list