[Samba] Samba opens many files.

Jeremy Allison jra at samba.org
Tue Nov 18 17:14:57 GMT 2003


On Tue, Nov 18, 2003 at 04:26:19PM +0100, 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%).
> 
> the logfile says smbd do this for every file:
> 
> [2003/11/18 16:06:58, 2] smbd/open.c:open_file(246)
>  USERX opened file /path/to/file.txt  read=Yes write=No (numopen=1)
> 
> 
> Is this behavior normal?

Yes. Explorer is reading each file for thumbnail etc. info.

> Can I avoid this with conf-settings?

No. Don't have a directory with more than 16000 files. That's a
silly way to organise things.

Jeremy.



More information about the samba mailing list