On Thu, Jul 08, 2004 at 05:26:08PM +0800, Jacky Kim wrote:
> >> Sorry, I miss the follow informations:
> >> 1. There are 100,000 files in shared directory.
> >
> >That's the problem. Because Samba has to present a case insensitive
> >view of a case-sensitive filesystem we have to scan the entire
> >directory to ensure a file doesn't exist.
> >
> >The answer to the "why is Samba slow" question in this case is
> >"don't do that" (put 100,000 files in a directory).
> 
> I trid 20,000 files in a directory too, and found the same result:
> Windows's share is about 10 times faster than Linux/samba's one 
> when get small file's property(NOT content).

Yes, as soon as smbd has to scan the entire directory to check for
the non-existance of the name things will slow down. With sub microsecond
timestamps there are some tricks we can play with directory caching,
but these are not immediate fixes.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to