Re: [ld.so] Re: smbd slow to start on -current
> -Original Message- > From: owner-po...@openbsd.org On Behalf Of Stuart > Henderson > Sent: 14 February 2019 10:12 > To: cdr@gmail.com > Cc: 'Jeremie Courreges-Anglas' ; 'Ian McWilliam' > ; ports@openbsd.org > Subject: Re: [ld.so] Re: smbd slow to start on -current > > On 2019/02/14 10:08, cdr@gmail.com wrote: > > I'm thinking that samba isn't the issue here (apart from its need > > for a gazillion libraries). I can reproduce the problem with a > > simple program that needlessly links in all the samba required libs. > > Although, perhaps the use of --as-needed is not correct. > > as-needed *is* helping though - try it without -Wl,--as-needed and > your time will probably double. Stuart, You are quite right: [mark@chrome:~/tmp]$ time ./t Done. 2m01.22s real 2m00.77s user 0m00.06s system Thanks for pointing that out. -mark
Re: [ld.so] Re: smbd slow to start on -current
On 2019/02/14 10:08, cdr@gmail.com wrote: > I'm thinking that samba isn't the issue here (apart from its need > for a gazillion libraries). I can reproduce the problem with a > simple program that needlessly links in all the samba required libs. > Although, perhaps the use of --as-needed is not correct. as-needed *is* helping though - try it without -Wl,--as-needed and your time will probably double.
Re: [ld.so] Re: smbd slow to start on -current
Folks, I'm thinking that samba isn't the issue here (apart from its need for a gazillion libraries). I can reproduce the problem with a simple program that needlessly links in all the samba required libs. Although, perhaps the use of --as-needed is not correct. -mark Script started on Thu Feb 14 09:50:13 2019 [mark@chrome:~/tmp]$ echo $LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/usr/local/lib/samba [mark@chrome:~/tmp]$ cat t.c #include #include int main(int argc, char *argv[]) { printf("Done.\n"); return 0; } [mark@chrome:~/tmp]$ cat t.sh cc -o t \ -L/usr/local/lib/samba \ -L/usr/lib \ -L/usr/local/lib \ -Wl,--as-needed \ -lpthread \ -lpopt-samba3-samba4 \ -lsamba-util \ -lsmbd-base-samba4 \ -lutil-cmdline-samba4 \ -ltime-basic-samba4 \ -lutil-setid \ -lsamba-debug-samba4 \ -lgenrand-samba4 \ -lreplace \ -lsocket-blocking-samba4 \ -ltevent \ -ltalloc-report-samba4 \ -ldfs-server-ad-samba4 \ -lprinting-migrate-samba4 \ -lgssapi-samba4 \ -ltevent-util \ -lmessages-dgm-samba4 \ -lndr-samba-samba4 \ -lsamba-errors \ -lcliauth-samba4 \ -lCHARSET3-samba4 \ -lnetapi \ -lsamdb \ -lsys-rw-samba4 \ -lsmbd-conn-samba4 \ -lsamba3-util-samba4 \ -lsamba-passdb \ -lutil-tdb-samba4 \ -lnpa-tstream-samba4 \ -lsamba-security-samba4 \ -linterfaces-samba4 \ -lmessages-util-samba4 \ -lauth-samba4 \ -lmsrpc3-samba4 \ -lserver-id-db-samba4 \ -ldbwrap-samba4 \ -liov-buf-samba4 \ -lcommon-auth-samba4 \ -lsmbconf \ -lsamba-cluster-support-samba4 \ -lkrb5samba-samba4 \ -ldcerpc-samba-samba4 \ -lndr-krb5pac \ -lsamba-sockets-samba4 \ -lndr \ -lsecrets3-samba4 \ -lcli-spoolss-samba4 \ -lkrb5-samba4 \ -lroken-samba4 \ -lasn1-samba4 \ -lhcrypto-samba4 \ -lcom_err-samba4 \ -lwind-samba4 \ -lmsghdr-samba4 \ -lndr-standard \ -lasn1util-samba4 \ -lndr-nbt \ -lads-samba4 \ -lsamba-hostconfig \ -lldb \ -lsamdb-common-samba4 \ -lcli-ldap-common-samba4 \ -lauthkrb5-samba4 \ -lldbsamba-samba4 \ -lsamba-credentials \ -lwbclient \ -lflag-mapping-samba4 \ -lsmbldap \ -lsmbldaphelper-samba4 \ -lauth4-samba4 \ -lgensec-samba4 \ -laddns-samba4 \ -lcli-cldap-samba4 \ -lcli-smb-common-samba4 \ -lgse-samba4 \ -ldcerpc-binding \ -lndr-samba4 \ -ltdb-wrap-samba4 \ -lMESSAGING-SEND-samba4 \ -lsmbd-shim-samba4 \ -lutil-reg-samba4 \ -levents-samba4 \ -lheimbase-samba4 \ -lhx509-samba4 \ -ltrusts-util-samba4 \ -lserver-role-samba4 \ -lwinbind-client-samba4 \ -lsamba-modules-samba4 \ -lMESSAGING-samba4 \ -lauth-unix-token-samba4 \ -ldcerpc-samba4 \ -lcli-ldap-samba4 \ -lsmb-transport-samba4 \ -lcli-nbt-samba4 \ -lsmbclient-raw-samba4 \ -lhttp-samba4 \ -lnetif-samba4 \ -lavahi-common \ -lcrypto \ -lavahi-client \ -lpam \ -liconv \ -ltdb \ -lintl \ -lz \ -ljansson \ -lgnutls \ -llber-2.4 \ -lldap-2.4 \ -lcups \ -lexecinfo \ -lpopt \ -lfam \ -ltalloc \ -ldbus-1 \ -lp11-kit \ -lffi \ -lidn2 \ -lunistring \ -ltasn1 \ -lnettle \ -lhogweed \ -lgmp \ -lsasl2 \ -lssl \ -lm \ t.c [mark@chrome:~/tmp]$ sh t.sh [mark@chrome:~/tmp]$ time ./t Done. 1m09.15s real 1m08.86s user 0m00.07s system [mark@chrome:~/tmp]$ exit Script done on Thu Feb 14 09:52:19 2019 -Original Message- From: owner-po...@openbsd.org On Behalf Of Jeremie Courreges-Anglas Sent: 14 February 2019 08:27 To: Ian McWilliam Cc: Stuart Henderson ; Mark Willson ; ports@openbsd.org Subject: Re: [ld.so] Re: smbd slow to start on -current On Thu, Feb 14 2019, Ian McWilliam wrote: > Hmm > > > ianm-openbsd:samba {134} time rcctl start samba > > smbd(ok) > > nmbd(ok) > > 25.730u 0.140s 0:25.89 99.9%0+0k 0+56io 4pf+0w > > That doesn't feel to me as bad as when the --as-needed was removed. Yup. Something is very wrong (tm), no idea if that's the switch to ld.lld(1) or the (not-so-)recent changes in ld.so(8). /usr/local/sbin/samba is still broken at runtime, too. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
Re: [ld.so] Re: smbd slow to start on -current
On Thu, Feb 14 2019, Ian McWilliam wrote: > Hmm > > > ianm-openbsd:samba {134} time rcctl start samba > > smbd(ok) > > nmbd(ok) > > 25.730u 0.140s 0:25.89 99.9%0+0k 0+56io 4pf+0w > > That doesn't feel to me as bad as when the --as-needed was removed. Yup. Something is very wrong (tm), no idea if that's the switch to ld.lld(1) or the (not-so-)recent changes in ld.so(8). /usr/local/sbin/samba is still broken at runtime, too. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
Re: [ld.so] Re: smbd slow to start on -current
Hmm ianm-openbsd:samba {134} time rcctl start samba smbd(ok) nmbd(ok) 25.730u 0.140s 0:25.89 99.9%0+0k 0+56io 4pf+0w That doesn't feel to me as bad as when the --as-needed was removed. This is on a system built from sources fetched roughly 14th Feb 9:30am AEDT. OpenBSD 6.4-current (GENERIC.MP) #1: Thu Feb 14 13:08:24 AEDT 2019 i...@ianm-openbsd.uws-libsystems.edu.au:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3141402624 (2995MB) avail mem = 3036569600 (2895MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (248 entries) bios0: vendor Phoenix Technologies LTD version "6.00" date 04/13/2018 bios0: VMware, Inc. VMware Virtual Platform Ian McWilliam From: owner-po...@openbsd.org on behalf of Ian McWilliam Sent: Thursday, 14 February 2019 10:54 AM To: Stuart Henderson; Mark Willson Cc: ports@openbsd.org Subject: Re: [ld.so] Re: smbd slow to start on -current The bloated wart hog of windows networking rears its ugly head again Linker experts needed. These are things that may or may not happen depending on whether or not we are OpenBSD. buildtools/waf/samba/samba_autoconf.py def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf): # we don't want any libraries or modules to rely on runtime # resolution of symbols if not sys.platform.startswith("openbsd"): conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []: if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']): conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] source3/wscript if sys.platform != 'openbsd5': conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True) --- lib/ldb/wscript # we don't want any libraries or modules to rely on runtime # resolution of symbols if not sys.platform.startswith("openbsd"): conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) Ian McWilliam From: owner-po...@openbsd.org on behalf of Stuart Henderson Sent: Thursday, 14 February 2019 4:36 AM To: Mark Willson Cc: ports@openbsd.org Subject: [ld.so] Re: smbd slow to start on -current In gmane.os.openbsd.misc, you wrote: Moving from misc@ to ports@ where it will be more visible. > Folks, > > I'm running -current from 2019-02-11 (dmesg below) and seeing > very slow start up with samba's smbd (4.8.7 version from ports). > > It appears to be a recurrence of the issue described here: > > https://groups.google.com/forum/#!topic/fa.openbsd.tech/yFTn1lyOQQI > > and here > > https://bugzilla.samba.org/show_bug.cgi?id=11355 Not sure what is going on and the effect does seem similar to the earlier case from before -as-needed was used, but looking at build logs, smbd *is* built with -as-needed: 19:10:58 runner cc default/source3/rpc_server/fssd_34.o default/source3/rpc_server/epmd_32.o default/source3/rpc_server/lsasd_33.o default/source3/smbd/server_142.o default/source3/smbd/smbd_cleanupd_142.o -o /usr/obj/ports/samba-4.8.7/samba-4.8.7/bin/default/source3/smbd/smbd -Wl,-z,relro,-z,now -lpthread -Wl,-no-undefined -Wl,--as-needed -lc -fstack-protector -Wl,-rpath,/usr/local/lib -Ldefault/source4/lib/socket -Ldefault/source4/lib/http -Ldefault/source4/libcli -Ldefault/libcli/nbt -Ldefault/source4/cluster -Ldefault/source4/libcli/ldap -Ldefault/source4/auth -Ldefault/source4/libcli/wbclient -Ldefault/nsswitch -Ldefault/source4/lib/events -Ldefault/libcli/registry -Ldefault/source4/lib/messaging -Ldefault/lib/tdb_wrap -Ldefault/source4/librpc -Ldefault/libcli/smb -Ldefault/libcli/cldap -Ldefault/lib/addns -Ldefault/auth/gensec -Ldefault/source4/auth/ntlm -Ldefault/libds/common -Ldefault/nsswitch/libwbclient -Ldefault/auth/credentials -Ldefault/lib/ldb-samba -Ldefault/so urce4/au th/kerberos -Ldefault/libcli/ldap -Ldefault/lib/ldb -Ldefault/lib/param -Ldefault/lib -Ldefault/lib/krb5_wrap -Ldefault/auth -Ldefault/lib/dbwrap -Ldefault/source3/auth -Ldefault/lib/socket -Ldefault/libcli/security -Ldefault/libcli/named_pipe_auth -Ldefault/source4/dsdb -Ldefault/libcli/auth -Ldefault/libcli/util -Ldefault/librpc -Ldefault/source4/heimdal_build -Ldefault/dfs_server -Ldefault/lib/tevent -Ldefault/lib/replace -Ldefault/lib/util -Ldefault/source3 -L/usr/local/lib -Wl,-Bdynamic -lpopt-samba3-samba4 -lsamba-util -lsmbd-base-samba4 -lutil-cmdline-samba4 -ltime-basic-samba4 -lutil-setid -lsamba-debug-samba4 -lgenrand-samba4 -lreplace -lsocket-blocking-samba4 -ltevent -ltalloc-report-samba4 -ldfs-server-ad-samba4 -lprinting-migrate-samba4 -lgssapi-samba4 -ltevent-util -lmessages-dgm-samb
Re: [ld.so] Re: smbd slow to start on -current
The bloated wart hog of windows networking rears its ugly head again Linker experts needed. These are things that may or may not happen depending on whether or not we are OpenBSD. buildtools/waf/samba/samba_autoconf.py def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf): # we don't want any libraries or modules to rely on runtime # resolution of symbols if not sys.platform.startswith("openbsd"): conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []: if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']): conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] source3/wscript if sys.platform != 'openbsd5': conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True) --- lib/ldb/wscript # we don't want any libraries or modules to rely on runtime # resolution of symbols if not sys.platform.startswith("openbsd"): conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) Ian McWilliam From: owner-po...@openbsd.org on behalf of Stuart Henderson Sent: Thursday, 14 February 2019 4:36 AM To: Mark Willson Cc: ports@openbsd.org Subject: [ld.so] Re: smbd slow to start on -current In gmane.os.openbsd.misc, you wrote: Moving from misc@ to ports@ where it will be more visible. > Folks, > > I'm running -current from 2019-02-11 (dmesg below) and seeing > very slow start up with samba's smbd (4.8.7 version from ports). > > It appears to be a recurrence of the issue described here: > > https://groups.google.com/forum/#!topic/fa.openbsd.tech/yFTn1lyOQQI > > and here > > https://bugzilla.samba.org/show_bug.cgi?id=11355 Not sure what is going on and the effect does seem similar to the earlier case from before -as-needed was used, but looking at build logs, smbd *is* built with -as-needed: 19:10:58 runner cc default/source3/rpc_server/fssd_34.o default/source3/rpc_server/epmd_32.o default/source3/rpc_server/lsasd_33.o default/source3/smbd/server_142.o default/source3/smbd/smbd_cleanupd_142.o -o /usr/obj/ports/samba-4.8.7/samba-4.8.7/bin/default/source3/smbd/smbd -Wl,-z,relro,-z,now -lpthread -Wl,-no-undefined -Wl,--as-needed -lc -fstack-protector -Wl,-rpath,/usr/local/lib -Ldefault/source4/lib/socket -Ldefault/source4/lib/http -Ldefault/source4/libcli -Ldefault/libcli/nbt -Ldefault/source4/cluster -Ldefault/source4/libcli/ldap -Ldefault/source4/auth -Ldefault/source4/libcli/wbclient -Ldefault/nsswitch -Ldefault/source4/lib/events -Ldefault/libcli/registry -Ldefault/source4/lib/messaging -Ldefault/lib/tdb_wrap -Ldefault/source4/librpc -Ldefault/libcli/smb -Ldefault/libcli/cldap -Ldefault/lib/addns -Ldefault/auth/gensec -Ldefault/source4/auth/ntlm -Ldefault/libds/common -Ldefault/nsswitch/libwbclient -Ldefault/auth/credentials -Ldefault/lib/ldb-samba -Ldefault/so urce4/au th/kerberos -Ldefault/libcli/ldap -Ldefault/lib/ldb -Ldefault/lib/param -Ldefault/lib -Ldefault/lib/krb5_wrap -Ldefault/auth -Ldefault/lib/dbwrap -Ldefault/source3/auth -Ldefault/lib/socket -Ldefault/libcli/security -Ldefault/libcli/named_pipe_auth -Ldefault/source4/dsdb -Ldefault/libcli/auth -Ldefault/libcli/util -Ldefault/librpc -Ldefault/source4/heimdal_build -Ldefault/dfs_server -Ldefault/lib/tevent -Ldefault/lib/replace -Ldefault/lib/util -Ldefault/source3 -L/usr/local/lib -Wl,-Bdynamic -lpopt-samba3-samba4 -lsamba-util -lsmbd-base-samba4 -lutil-cmdline-samba4 -ltime-basic-samba4 -lutil-setid -lsamba-debug-samba4 -lgenrand-samba4 -lreplace -lsocket-blocking-samba4 -ltevent -ltalloc-report-samba4 -ldfs-server-ad-samba4 -lprinting-migrate-samba4 -lgssapi-samba4 -ltevent-util -lmessages-dgm-samba4 -lndr-samba-samba4 -lsamba-errors -lnet-keytab-samba4 -lcliauth-samba4 -lCHARSET3-samba4 -lnetapi -lsamdb -lsys-rw-samba4 -lsmbd-conn-samba4 -lsamba3-util-samba4 -lsamba-passdb - lutil-td b-samba4 -lnpa-tstream-samba4 -lsamba-security-samba4 -linterfaces-samba4 -lmessages-util-samba4 -lauth-samba4 -llibsmb-samba4 -lmsrpc3-samba4 -lserver-id-db-samba4 -ldbwrap-samba4 -liov-buf-samba4 -lcommon-auth-samba4 -lsmbconf -lsamba-cluster-support-samba4 -lkrb5samba-samba4 -ldcerpc-samba-samba4 -lndr-krb5pac -lsamba-sockets-samba4 -lndr -lsecrets3-samba4 -lcli-spoolss-samba4 -lkrb5-samba4 -lroken-samba4 -lasn1-samba4 -lhcrypto-samba4 -lcom_err-samba4 -lwind-samba4 -lmsghdr-samba4 -lndr-standard -lasn1util-samba4 -lndr-nbt -lads-samba4 -lsamba-hostconfig -llibcli-netlogon3-samba4 -lldb -lsamdb-common-samba4 -lcli-ldap-common-samba4 -lauthkrb5-samba4 -lldbsamba-samba4 -lsamba-credentials -lwbclient -lflag-mapping-samba4 -lsmbldap -lsmbldaphelper-samba4 -lauth4-samba4 -llibcli-lsa3-samba4 -lgensec-samba4 -lad
[ld.so] Re: smbd slow to start on -current
In gmane.os.openbsd.misc, you wrote: Moving from misc@ to ports@ where it will be more visible. > Folks, > > I'm running -current from 2019-02-11 (dmesg below) and seeing > very slow start up with samba's smbd (4.8.7 version from ports). > > It appears to be a recurrence of the issue described here: > > https://groups.google.com/forum/#!topic/fa.openbsd.tech/yFTn1lyOQQI > > and here > > https://bugzilla.samba.org/show_bug.cgi?id=11355 Not sure what is going on and the effect does seem similar to the earlier case from before -as-needed was used, but looking at build logs, smbd *is* built with -as-needed: 19:10:58 runner cc default/source3/rpc_server/fssd_34.o default/source3/rpc_server/epmd_32.o default/source3/rpc_server/lsasd_33.o default/source3/smbd/server_142.o default/source3/smbd/smbd_cleanupd_142.o -o /usr/obj/ports/samba-4.8.7/samba-4.8.7/bin/default/source3/smbd/smbd -Wl,-z,relro,-z,now -lpthread -Wl,-no-undefined -Wl,--as-needed -lc -fstack-protector -Wl,-rpath,/usr/local/lib -Ldefault/source4/lib/socket -Ldefault/source4/lib/http -Ldefault/source4/libcli -Ldefault/libcli/nbt -Ldefault/source4/cluster -Ldefault/source4/libcli/ldap -Ldefault/source4/auth -Ldefault/source4/libcli/wbclient -Ldefault/nsswitch -Ldefault/source4/lib/events -Ldefault/libcli/registry -Ldefault/source4/lib/messaging -Ldefault/lib/tdb_wrap -Ldefault/source4/librpc -Ldefault/libcli/smb -Ldefault/libcli/cldap -Ldefault/lib/addns -Ldefault/auth/gensec -Ldefault/source4/auth/ntlm -Ldefault/libds/common -Ldefault/nsswitch/libwbclient -Ldefault/auth/credentials -Ldefault/lib/ldb-samba -Ldefault/source4/au th/kerberos -Ldefault/libcli/ldap -Ldefault/lib/ldb -Ldefault/lib/param -Ldefault/lib -Ldefault/lib/krb5_wrap -Ldefault/auth -Ldefault/lib/dbwrap -Ldefault/source3/auth -Ldefault/lib/socket -Ldefault/libcli/security -Ldefault/libcli/named_pipe_auth -Ldefault/source4/dsdb -Ldefault/libcli/auth -Ldefault/libcli/util -Ldefault/librpc -Ldefault/source4/heimdal_build -Ldefault/dfs_server -Ldefault/lib/tevent -Ldefault/lib/replace -Ldefault/lib/util -Ldefault/source3 -L/usr/local/lib -Wl,-Bdynamic -lpopt-samba3-samba4 -lsamba-util -lsmbd-base-samba4 -lutil-cmdline-samba4 -ltime-basic-samba4 -lutil-setid -lsamba-debug-samba4 -lgenrand-samba4 -lreplace -lsocket-blocking-samba4 -ltevent -ltalloc-report-samba4 -ldfs-server-ad-samba4 -lprinting-migrate-samba4 -lgssapi-samba4 -ltevent-util -lmessages-dgm-samba4 -lndr-samba-samba4 -lsamba-errors -lnet-keytab-samba4 -lcliauth-samba4 -lCHARSET3-samba4 -lnetapi -lsamdb -lsys-rw-samba4 -lsmbd-conn-samba4 -lsamba3-util-samba4 -lsamba-passdb -lutil-td b-samba4 -lnpa-tstream-samba4 -lsamba-security-samba4 -linterfaces-samba4 -lmessages-util-samba4 -lauth-samba4 -llibsmb-samba4 -lmsrpc3-samba4 -lserver-id-db-samba4 -ldbwrap-samba4 -liov-buf-samba4 -lcommon-auth-samba4 -lsmbconf -lsamba-cluster-support-samba4 -lkrb5samba-samba4 -ldcerpc-samba-samba4 -lndr-krb5pac -lsamba-sockets-samba4 -lndr -lsecrets3-samba4 -lcli-spoolss-samba4 -lkrb5-samba4 -lroken-samba4 -lasn1-samba4 -lhcrypto-samba4 -lcom_err-samba4 -lwind-samba4 -lmsghdr-samba4 -lndr-standard -lasn1util-samba4 -lndr-nbt -lads-samba4 -lsamba-hostconfig -llibcli-netlogon3-samba4 -lldb -lsamdb-common-samba4 -lcli-ldap-common-samba4 -lauthkrb5-samba4 -lldbsamba-samba4 -lsamba-credentials -lwbclient -lflag-mapping-samba4 -lsmbldap -lsmbldaphelper-samba4 -lauth4-samba4 -llibcli-lsa3-samba4 -lgensec-samba4 -laddns-samba4 -lcli-cldap-samba4 -lcli-smb-common-samba4 -lgse-samba4 -ldcerpc-binding -lndr-samba4 -ltdb-wrap-samba4 -lMESSAGING-SEND-samba4 -lsmbd-shim-samba4 -lutil-reg-samba4 -levents-samba4 -lheimbase-samba4 -lhx509-samba4 -ltrusts-util-samba4 -lserver-role-samba4 -lwinbind-client-samba4 -lsamba-modules-samba4 -lMESSAGING-samba4 -lLIBWBCLIENT-OLD-samba4 -lauth-unix-token-samba4 -ldcerpc -ldcerpc-samba4 -lcli-ldap-samba4 -lsmb-transport-samba4 -lcluster-samba4 -lcli-nbt-samba4 -lsmbclient-raw-samba4 -lhttp-samba4 -lnetif-samba4 -lavahi-common -lcrypto -lavahi-client -lpam -liconv -ltdb -lutil -lintl -lz -ljansson -lgcrypt -lgnutls -llber -lldap -lcups -lexecinfo -lpopt -lfam -ltalloc > The delay can be seen using this command: > LD_DEBUG=1 smbd -D 2>&1 | ts %.s > > The key piece of output is here, showing a 55s delay after > examining /usr/lib/libm.so.10.1: > > > 1550056982.254470 linking dep /usr/local/lib/libgmp.so.10.0 as child of > /usr/local/lib/libhogweed.so.2.0 > 1550056982.254539 examining: '/usr/local/lib/libgmp.so.10.0' > 1550056982.254609 examining: '/usr/local/lib/libsasl2.so.3.1' > 1550056982.254678 examining: '/usr/lib/libssl.so.47.3' > 1550056982.254747 loading: libcrypto.so.45.3 required by > /usr/lib/libssl.so.47.3 > 1550056982.254816 linking dep /usr/lib/libcrypto.so.45.3 as child of > /usr/lib/libssl.so.47.3 > 1550056982.254886 examining: '/usr/lib/libm.so.10.1' > 1550057037.791375 flags /usr/libexec/ld.so = 0x0 > 1550057037.791565 obj /usr/libexec/ld.so has smbd as h