[Samba] Slow reply to "smbclient -NL localhost" : strace

Michael Tokarev mjt at tls.msk.ru
Wed Nov 6 07:04:46 UTC 2024


06.11.2024 08:59, Gilles via samba wrote:

>>> FWIW, there's no delay after I run it once… but only for a couple of minutes.
>>
>> This suggests it might be a name resolution issue. 
> 
> What files could help find the source of the problem?

That's a strange question. Without understanding what the
actual problem is, it's hardly possible to point to the
solution.

Take a closer look at strace.  You've already noticed
the recv() call takes a noticeable time, - find all of
them.

BTW, in your strace output you omitted some important
pieces, for example, it isn't visible what FD#5 corresponds
to, since you omitted its creation/open.

The prob might not be the (host) name resolution of smbclient,
but on the receiving side too. Or might be something else
entirely.


/mjt



More information about the samba mailing list