[Samba] poor samba performance with many smaller files

Jeremy Allison jra at samba.org
Tue Apr 26 19:57:31 UTC 2016

On Tue, Apr 26, 2016 at 09:44:57PM +0200, Peter Bulin wrote:
> Hi,
> I need to to open existing readonly files. Yes you are right, not the open
> call takes the time, but stat() system call.
> I looked at aio_pthread source, the lines which needs to be removed to make
> it work are just the lines which tests for O_CREAT|O_EXCL? What problems
> can cause such solution for readonly share?

So ignore the aio_pthread advice - that really isn't relevent.
What's causing the problem is the lookup time for cache misses
with a really large directory.

See here:


for details.

More information about the samba mailing list