[Samba] Samba performance with large directories

Tomas Baublys BAUBLYS at de.ibm.com
Mon Jun 27 19:42:14 GMT 2005


thank you for your help and here is a small summary:
It turned out, that customer application does a wildcard search  " wcard =
c55crvtu.m1>". In windows the kernel does directory filtering. In POSIX,
any wildcard filtering is done in userspace - which means as soon as a
wildcard is received, we have to do a complete directory traversel. If the
client asks for a file using file name samba does not do complete directory
search (since 3.0.12 and using the documented parameters in smb.conf, see
Unfortunately, in this case it asks for multiple files using wildcard and
samba needs to do a userspace match with the wildcard given against the
list of returned names.
A workaround can be written using VFS with new opendir() call, see
http://lists.samba.org/archive/samba-technical/2005-June/041562.html .
We will try to work with customer to change application first.

Tomas Baublys

More information about the samba mailing list