[Bug 297297] smbd shows 400-600MB RSS per process in top
[email protected] Wed, 05 Aug 2026 14:07:09 +0000
| Newsgroups | gmane.os.freebsd.devel.ports.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297297 --- Comment #2 from Ronin Carter <[email protected]> --- Created attachment 273486 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D273486&action= =3Dedit The patch disables per-hash-bucket robust mutexes for Samba's volatile TDBs= on FreeBSD Two changes, both FreeBSD-only (#ifdef __FreeBSD__), zero impact on Linux: 1. source3/lib/dbwrap/dbwrap_open.c =E2=80=94 default try_mutex to false = in db_open(), so the six volatile SMB TDBs (brlock, leases, locking, smbXsrv_open/session/tcon_global) no longer set TDB_MUTEX_LOCKING (~60k mutexes). Still overridable via the existing dbwrap_tdb_mutexes smb.co= nf param. 2. source3/lib/gencache.c =E2=80=94 drop the default gencache:hash_size f= rom 10000 to 131, since gencache hardcodes TDB_MUTEX_LOCKING and can't be turned off (~1= 0k mutexes). Measured effect on the affected host (Samba 4.23.8, FreeBSD 15.0): smbd parent RSS 585MB =E2=86=92 52MB, ~70,460 =E2=86=92 133 shared 4KB mappings,= SMB shares verified working. --=20 You are receiving this mail because: You are the assignee for the bug.=