[Samba] poor samba performance with many smaller files

Peter Bulin bulin.peter at gmail.com
Wed Apr 27 11:02:54 UTC 2016


Hi,
I did use wireshark to verify that the client (window7) is not the problem,
client is sending out multiple "SMB2 Create request" packets before he gets
some answer.
On the server side samba is processing this requests in a synchronous way,
in order which they were send, that is what I see from strace output.

On Wed, Apr 27, 2016 at 8:31 AM, Volker Lendecke <Volker.Lendecke at sernet.de>
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.
>
> What do you exactly mean by "open file is synchronous"? At which level
> does the synchronly kick in? Is it the client? Or is it smbd doing the
> different steps it takes in a synchronous fashion, not allowing
> multiple overlapping opens to make progress simultaneously?
>
> If it's the client that waits for the open replies in sequence, there
> is not much we can do. If it's smbd blocking parallel opens, we could
> do something, but it will quite some work.
>
> Thanks,
>
> Volker
>
> --
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de
>


More information about the samba mailing list