[Samba] Samba opens many files.

Markus Wenke M.Wenke at web.de
Thu Nov 20 14:36:54 GMT 2003


Hi,


Sorry, after I installed version 3.0.0  it worked perfect!!!

Thanks for all!

Markus Wenke






Markus Wenke wrote:

> Markus Wenke wrote:
>
>> Gerald (Jerry) Carter wrote:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Markus Wenke wrote:
>>> | Hi,
>>> |
>>> | I have a dir with more than 16000 files in it.
>>> | If I klick with MS-Explorer on this Dir to see
>>> | which files are in it, smbd opens every file and
>>> | so it takes some seconds to show this Dir!
>>> | (and CPU usage is at 100%).
>>>
>>> We only do what the client asks us to.
>>> This is probably explorer.exe looking for icon.
>>
>>
>>
>>
>> Ok, maybe you are right with explorer, but if I use this Windows-Prog to
>> open a File,
>> which does not exist, it has the same effect. (the dir 'R:\\somedir\\x'
>> includes 16.000 Files):
>>
>> int _tmain(int argc, _TCHAR* argv[])
>> {
>>  int y;
>>  y = open("R:\\somedir\\x\\test.txt",_O_RDONLY,0);
>>
>>
>>  close(y);
>>  return 0;
>> }
>
>
> If I change "case sensitive" to yes, this problem is fixed, but if I 
> make in the windows-C-file a simple _findfirst() the same behavior 
> appears.
> If I makt it to a Dir with 2 files, every file will be opened at least 
> one time. Why opens samba this files? for only _findfirst() the files 
> musn't be opened or?
> and if I make a tcpdump, I see that windows(the client) doesn't ask to 
> open this files, there are only <50 packets for 16000 files.
>
>
>
> Thanks in advance
>
>
> Markus Wenke
>
>





More information about the samba mailing list