Hello, In case it makes sense to someone in the list, here's the output of "strace smbclient -NL localhost", where it takes a good 10s to get the list of shares: https://pastebin.com/raw/Q5GPxBKW Could it be something missing in smb.conf? Thank you.
Rowland Penny
2024-Nov-04 14:11 UTC
[Samba] Slow reply to "smbclient -NL localhost" : strace
On Sat, 2 Nov 2024 22:18:59 +0100 Gilles via samba <samba at lists.samba.org> wrote:> Hello, > > In case it makes sense to someone in the list, here's the output of > "strace smbclient -NL localhost", where it takes a good 10s to get > the list of shares: > > https://pastebin.com/raw/Q5GPxBKW > > Could it be something missing in smb.conf? > > Thank you. > >As I said previously, I do not think this has anything to do with Samba. In an earlier post, you had this output when you ran the same command using 'time': real 0m12.500s user 0m0.732s sys 0m0.102s The 'real' time is the total time it took to run the command, but 'user' + 'sys' is the actual time it took for the Samba part of it, in this case 0.834 seconds, the remaining 11.666 seconds is where your problem lies, what is causing this ? That is what you need to trace, what is getting in the way, it doesn't seem to be anything to do with Samba. When it comes down to it, your 'strace' appears to be useless in this context, there is no 'time' involved. Rowland