Michael Tokarev
2024-Nov-06 07:04 UTC
[Samba] Slow reply to "smbclient -NL localhost" : strace
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
On 06/11/2024 08:04, Michael Tokarev wrote:> 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.Here's the output of "strace --relative-timestamps -o strace.smbclient.log smbclient -NL 127.0.0.1" : https://pastebin.com/raw/v3hFY5DB