[Samba] questions regarding 40G Samba Server

Jeremy Allison jra at samba.org
Wed Jul 13 16:19:46 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 : )

No. Samba internally has a threadpool. When a read/write
request comes in, if it's greater than:

aio read size
aio write size

then the read/write request is sent to the threadpool
and done asynchronously.

> And then, if I was right, what is the threshold size?

It's per-request and the params above set it.



More information about the samba mailing list