[Samba] Maximum number of files per folder

Jeremy Allison jra at samba.org
Tue Nov 13 01:39:58 GMT 2007


On Mon, Nov 12, 2007 at 08:24:05AM +0100, lists at dieitexperten.de wrote:
> 
> Hello list,
> 
> we have a small NAS-Box here in our office, running Linux 2.6.13 and
> Samba 3 (exactly version string is not avalilable for me at moment).
> 
> Is there a limit, how many files samba will store in one folder? We
> recognize a massive CPU-Load of the smbd-process, when accessing a
> folder which stores round about 60 000 small text-files.
> 
> Is this a samba-Limit or a bug? The kernel and samba is compiled by the
> NAS-manufactur, so no cimpiler-options are available for me.

There are no hard coded limits, only what the OS restricts.
However, storing large numbers of files in a folder is a bad
idea unless Samba is set up specially to do this. See here :

http://us1.samba.org/samba/ftp/HOWTO/Samba-LargeDirectory-HOWTO

for details.

Jeremy.


More information about the samba mailing list