Hi. I've been recently looking into asynchronous feature and currently stuck with few stuff that I would appreciate to get some help with. 1. I tried turning on the feature by setting 'server multi channel support = yes', 'aio read size = 1' and 'aio write size = 1' and I couldn't figure out whether it was really working or not. Is there any way I can verify this? 2. Is there anything else I have to do except configuring smb.conf to turn on aio? To what I have googled, it says that you have to compile with --with-aio-support (which I couldn't find) and client also has to support the feature (which I also couldn't find any options related to it) 3. Is ASYNC flag in SMB header related to this feature? Cause it was always turned off no matter what I did. Thanks.
On 29/05/2020 07:42, Jeygon Kim via samba wrote:> Hi. > > I've been recently looking into asynchronous feature and currently stuck > with few stuff that I would appreciate to get some help with. > > 1. I tried turning on the feature by setting 'server multi channel support > = yes', 'aio read size = 1' and 'aio write size = 1' and I couldn't figure > out whether it was really working or not. Is there any way I can verify > this? > > 2. Is there anything else I have to do except configuring smb.conf to turn > on aio? To what I have googled, it says that you have to compile with > --with-aio-support (which I couldn't find) and client also has to support > the feature (which I also couldn't find any options related to it) > > 3. Is ASYNC flag in SMB header related to this feature? Cause it was always > turned off no matter what I did. > > Thanks.Might help if you told us what OS you are using, what Samba version, self-compiled or distro packages, what client etc ? Rowland
On 29/05/2020 07:51, Jeygon Kim wrote:> Oh sorry about that. > > It's self-compiled 4.12.3 on Ubuntu 20.04 LTS and the client is smbclient.OK, it is now built by default, the '--with-aio-support' configure option was removed at 4.2.0. Not sure how to test if it is working for you, turn everything off that you have added, time your file operations, turn them back on again and time again ? Rowland
On Fri, May 29, 2020 at 03:42:06PM +0900, Jeygon Kim via samba wrote:> Hi. > > I've been recently looking into asynchronous feature and currently stuck > with few stuff that I would appreciate to get some help with. > > 1. I tried turning on the feature by setting 'server multi channel support > = yes', 'aio read size = 1' and 'aio write size = 1' and I couldn't figure > out whether it was really working or not. Is there any way I can verify > this? > > 2. Is there anything else I have to do except configuring smb.conf to turn > on aio? To what I have googled, it says that you have to compile with > --with-aio-support (which I couldn't find) and client also has to support > the feature (which I also couldn't find any options related to it)aio is on by default in modern samba.> 3. Is ASYNC flag in SMB header related to this feature? Cause it was always > turned off no matter what I did.smbd will set ASYNC when returning an intermediate response to a request that has gone async. If you're not seeing this, you're not driving the server hard enough.