[Samba] Large amount of 'messaging_out_queue_recv returned Connection timed out' warnings

Rowland Penny rpenny at samba.org
Mon Oct 24 07:37:56 UTC 2022



On 23/10/2022 22:16, Thomas de Zeeuw via samba wrote:
> Hello readers,
> 
> I'm having a bit of an issue with the write performance of Samba. I think I’m having two issues, but one might be the cause of the other.
> 
> I found the the writes per second to be not great. I'm testing using fio (https://github.com/axboe/fio) doing a very simple sequal write of a 1G file, I've attached the fio job file. Running locally this on the server I'm getting 3936MiB/s, while doing this on macOS using SMB I get 6880KiB/s. I of course didn't expect the same numbers, but I feel the difference between the two is quite large. This let me down a little performance tuning/debugging hole which let me to the second problem.
> 
> While debugging the first issue I found a large number of 'messaging_out_queue_recv returned Connection timed out' warnings. I'm not sure what this means, other then something took too long, but while writing the 1GB file it was logged 56250 times, which seems like a lot (no idea if that is true or not). I noticed that fio reported 100% progress, but then was blocked for a good amount of time (~30 seconds) while (seemingly) not to make any further progress.
> 
> I tried searching online for the time out message, but found little to nothing (only the source code, it’s lib/messaging/messages_dgm.c line 704 btw), so perhaps this mailing list can help me.
> 
> Some information about the environment/setup:
> Server:
> NixOS 22.05
> uname -a: Linux 5.19.16 #1-NixOS SMP PREEMPT_DYNAMIC Sat Oct 15 06:01:46 UTC 2022 x86_64 GNU/Linux
> smbd --version: Version 4.15.9
> 
> Client:
> macOS Montery 12.6
> I'm using the builtin Finder to mount the SMB share, I don't know how to get the version for this.
> 
> I’m using a wireless network between the two, achieving a fairly consist <3ms latency. I’ve also previously achieved 300MB/s+ using the same WiFI connection, so I don’t think this a limiting factor (at least not yet).
> 
> I've attached my configuration 

And this list stripped them off again, you will need to either add them 
into a post, or if they still too large, post them elsewhere and provide 
a link.

Sorry

Rowland



More information about the samba mailing list