[Samba] questions regarding 40G Samba Server

Volker Lendecke vl at samba.org
Wed Jul 13 16:13:42 UTC 2016


On Wed, Jul 13, 2016 at 05:59:56PM +0200, mathias dufresne wrote:
> 2016-07-13 17:41 GMT+02:00 Volker Lendecke <vl at samba.org>:
> 
> > On Wed, Jul 13, 2016 at 02:35:08AM -0400, Garland McAlexander wrote:
> > > CIFS is single threaded, if you plan on using it with a large amount of
> >
> > Oh, "my" cifs as a protocol is multi-threaded. It's part of the Samba
> > implementation that is single threaded. However, for large file I/O
> > Samba is multi-threaded.
> >
> >
> Does that means when some has to be transfered by Samba, Samba check the
> file size and if that size is greater than a given size, samba forks itself
> to have a separated process managing the transfer of that big file? Sorry,
> I understand quickly only if explanation are long : )
> 
> And then, if I was right, what is the threshold size?

It's a per-request decision directed by "aio read size" and "aio write
size". The only sensible values are 0 (no multi-threaded behaviour)
and 1 (go multi-threaded for all read/write requrests). It's not a
per-file decision.

Volker



More information about the samba mailing list