[Samba] Maximum number of files per folder

Markus Neviadomski lists at dieitexperten.de
Tue Nov 13 08:11:42 GMT 2007


simo schrieb:
> On Mon, 2007-11-12 at 17:39 -0800, Jeremy Allison wrote:
>   
>> 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.
>>     
>
> IIRC ext3 has a (compile time changeable) limit of 32k files per dir by
> default ...
>   

Ah, nice to know. That could be the real answer for my problem. I will 
ask the manufactur of the NAS-Box.

Greets,
Markus
> Simo.
>
>   



More information about the samba mailing list