[Samba] poor samba performance with many smaller files
bulin.peter at gmail.com
Wed Apr 27 11:02:54 UTC 2016
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
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>
> 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
> > 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.
> 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