Gardiner, Alex (alex.gardiner@canterbury.ac.uk)
2015-Mar-10 13:24 UTC
[Samba] aio_pthread on Debian?
Hello list, I am looking to enable samba aio on my Wheezy test box (I have version 4.1.17 from back ports). The output of smbd -b shows that the stable packages for my distro are not compiled using --with-aio-support. It appears that without recompiling I can use vfs objects = aio_pthread to achieve a similar effect? I'm aware that this somewhat dips into Debian specifics, but I figured it would be worth asking the list. Can anybody tell me if I'm barking up the right tree? Any guidance is much appreciated! Thanks.
On Tue, Mar 10, 2015 at 01:24:28PM +0000, Gardiner, Alex (alex.gardiner at canterbury.ac.uk) wrote:> Hello list, > > > I am looking to enable samba aio on my Wheezy test box (I have version 4.1.17 from back ports). > > > The output of smbd -b shows that the stable packages for my distro are not compiled using --with-aio-support. It appears that without recompiling I can use vfs objects = aio_pthread to achieve a similar effect? >What effect do you have in mind exactly? Read/write is done asynchronously these days without that module as long as the build detected pthreads. 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
Gardiner, Alex (alex.gardiner@canterbury.ac.uk)
2015-Mar-10 17:07 UTC
[Samba] aio_pthread on Debian?
Hello Volker, Thank you for the reply. I've seen your name mentioned several times against this topic :-)>What effect do you have in mind exactly? Read/write is done >asynchronously these days without that module as long as the >build detected pthreads.This is the thing... it looks like the Debian packages (stable + back port) are built without the --with-aio-support (at least according to smbd -b) In this case I am streaming relatively large video files in my home lab (120mbps each). I find that windows struggles with 2-3 streams at once, where the same hardware running OS X (via afp) is smooth - so I am relatively sure the workload is within the means of my network/disks/client. What I found odd was that setting aio read/write size = 1 didn't bother testparm, although apparently Debian samba is apparently not compiled for it? Perhaps what I'm asking is how to know if samba is really doing everything as async? I expect it is possible to find out with a bit of work.. Thanks again. From: Volker Lendecke <Volker.Lendecke at SerNet.DE> Sent: 10 March 2015 15:51 To: Gardiner, Alex (alex.gardiner at canterbury.ac.uk) Cc: samba at lists.samba.org Subject: Re: [Samba] aio_pthread on Debian? On Tue, Mar 10, 2015 at 01:24:28PM +0000, Gardiner, Alex (alex.gardiner at canterbury.ac.uk) wrote:> Hello list, > > > I am looking to enable samba aio on my Wheezy test box (I have version 4.1.17 from back ports). > > > The output of smbd -b shows that the stable packages for my distro are not compiled using --with-aio-support. It appears that without recompiling I can use vfs objects = aio_pthread to achieve a similar effect? >What effect do you have in mind exactly? Read/write is done asynchronously these days without that module as long as the build detected pthreads. 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