On Sat, 19 Oct 2024 13:52:46 +0200
Gilles via samba <samba at lists.samba.org> wrote:
> On 19/10/2024 13:44, Rowland Penny via samba wrote:
> > Debian 12 is probably running Apparmor, but I do not think that is
> > the problem.
> >
> > I ran 'smbclient -NL localhost' on a Unix domain member
running
> > Samba 4.20.4 and the result was instantaneous. I then started up a
> > VM running Debian 12 with Samba 4.17.2 running as a standalone
> > server, this again was instantaneous. I installed 4.20.5 from
> > backports and the result from 'smbclient -NL localhost' was
> > instantaneous. This leads me to believe that your problems have
> > nothing to do with Samba, but have something to do with your
> > network.
>
> Since I experience the same issue when running the command locally on
> the Samba host? what could it be? I didn't have that problem with
> previous releases of Debian.
>
> ==============> root at debian:~# time smbclient -NL localhost
>
> ??????? Sharename?????? Type????? Comment
> ??????? ---------?????? ----????? -------
> ??????? nginx?????????? Disk
> ??????? sdcard????????? Disk
> ??????? IPC$??????????? IPC?????? IPC Service (Samba 4.17.12-Debian)
> SMB1 disabled -- no workgroup available
>
> real??? 0m12.500s
> user??? 0m0.732s
> sys???? 0m0.102s
> ==============>
>
If I run it in the same way. I get:
adminuser at bookstand:~$ time smbclient -NL localhost
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
testshare Disk
IPC$ IPC IPC Service (Samba Client bookstand 0.0.0.0 0_0_0_0)
nobody Disk Home Directories
SMB1 disabled -- no workgroup available
real 0m0.459s
user 0m0.029s
sys 0m0.039s
As you can see, very different from yours, especially 'real'
You might want to have a look here:
https://stackoverflow.com/questions/556405/what-do-real-user-and-sys-mean-in-the-output-of-time1
From my example, the actual command is run in 0.068s compared with
yours of 0.834s, different but not by much, the big difference is in
'real', which is the total time taken to run the command, mine is
0.459s, yours is a whopping big 12.500s, just over 12 seconds more, you
need to find out what is causing this and it doesn't appear to have
anything to do with Samba.
Rowland