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

Gilles codecomplete at free.fr
Wed Nov 6 12:56:54 UTC 2024


On 06/11/2024 12:51, Michael Tokarev wrote:
> So it *is* samba (smbd) being slow replying to the list of shares 
> command,
> and caches something for some small amount of time.
>
> Now it would be interesting to see what smbd is doing here.  It is a
> bit more tricky, but you can use strace still (try strace -ff against
> the listening smbd, and run smbclient - strace will create several files,
> one of which will correspond to smbd in question). 

This is the first time I'm using strace, so I could be using it wrong:

strace -ff  --relative-timestamps -o strace.smbclient smbclient -NL 
127.0.0.1

Here's the output :

https://pastebin.com/raw/S1w09wTa




More information about the samba mailing list