On Sat, Mar 6, 2021 at 5:32 AM Michael Hamilton
This might not be the right place to raise this - it might be better sent to a samba user list, but...
On tumbleweed I've noticed that nmbd consistently delays booting to the login prompt by several seconds. Systemd-analyse blame and systemd-analyse critical chain report numbers such as:
5.295s nmb.service
3.036s systemd-fsck-root.service
2.419s systemd-udev-settle.service
The critical chain to graphical target is reported as 11.344s. If I disable smbd and nmbd this drops to 7.360s.
Looking at its source code, nmbd appears to sleep(5) in three places while waiting for interfaces to become available:
find ./samba/source3/nmbd -type f | xargs grep sleep ./samba/source3/nmbd/nmbd.c: sleep(5); ./samba/source3/nmbd/nmbd_subnetdb.c: sleep(5); ./samba/source3/nmbd/nmbd_subnetdb.c: sleep(5);
Huh ? it *sleeps* waiting for what network interfaces to come up? doesn't poll or otherwise ask netlink for the network status? that's.. broken.. try ordering nmb after network-online.target and enable the relevant $networkmanagmenttool-wait-online.service