It took me a long time to notice, but smbd is showing hundreds of megabytes of memory usage per process, even at startup and with a blank config file. I've used it for a long time and don't remember it ever standing out, so it must have been in the 30MB range, not the 3x 250 it is now.
freshly installed freebsd 14.3 vm, before and after starting 4.19 or 4.20 smbd:
for comparison, new linux ubuntu 24 lts vm with smbd 4.19.5:
This is what I'd expect the numbers to look, and I'm pretty sure this is what they looked like at some point. I have no idea what caused the change or how to determine its cause. The freebsd port has 47 patches, so it could be one of them. Could also be bad code in the codebase.
freshly installed freebsd 14.3 vm, before and after starting 4.19 or 4.20 smbd:
Code:
Mem: 10M Active, 860K Inact, 201M Wired, 25M Buf, 3740M Free
Mem: 310M Active, 2424K Inact, 927M Wired, 38M Buf, 2712M Free
SIZE RES
292M 485M smbd --daemon
251M 407M smbd: notifyd
251M 407M smbd: cleanupd
Code:
Mem: 3824.7 total, 3350.8 free, 475.3 used, 217.8 buff
Mem: 3824.7 total, 3337.2 free, 481.8 used, 228.1 buff
VIRT RES SHR
88M 25M 22M smbd
85M 6M 3M smbd-notifyd
85M 6M 2M smbd-cleanupd
Last edited: