[Samba] poor samba performance with many smaller files

Peter Bulin bulin.peter at gmail.com
Tue Apr 26 21:06:29 UTC 2016

Oh, I see :(

I think the problem with slow stat() is that, the file is actually a
symlink to another file in another part of filesystem, so resolving the
symlink takes most of the time.

On Tue, Apr 26, 2016 at 10:21 PM, Jeremy Allison <jra at samba.org> wrote:

> On Tue, Apr 26, 2016 at 10:08:41PM +0200, Peter Bulin wrote:
> > The directory is small, it contains only one file. stat() takes 15ms and
> if
> > I read 1000 files it sums to 15 seconds. So the issue is really that open
> > file is synchronous.
> Oh I misunderstood - I though you said there were many
> files in the directory.
> Why is stat() so slow ?
> The vfs_aio_pthread code can speed up the open()
> calls, but not the stat.

More information about the samba mailing list