Performance problem on large dir's
michel at mcs.xs4all.nl
Tue Oct 19 20:39:39 GMT 1999
I have run into a problem with samba performing slow
on directories with many small files (>5000 files).
Opening a file in notepad takes about 9 seconds!
After some digging in log files and in the code
I found that the delay is caused by name mangling
routines trying to figure if it is a 8.3 filename.
I see that all filenames in the directory are scanned
and mangled 2 times! called from dir.c and trans2.c
I do not understand why samba does not first try to
open the file with the name the client sends and then
try to find a mangled match if the open fails.
If I set case sensitive to yes performance goes up, but
changing mangling options does not matter.
I run samba on HP-UX 10.20 platform.
I'm not sure if I am on the right track but log's
show that most delay is caused after dir.c is called
and even more in trans2.c
Senior Network and Systems Administrator
Numeriek Centrum Groningen B.V.
Vuyk Engineering Center Groningen B.V.
Cono Industrie Groep N.V.
+31 (0)50 541 26 32 fax: +31 (0)50 542 37 17
mailto:stoop at ncg.nl
More information about the samba-technical