Gencache by default should be stabilized every 100 writes or 5 minutes, whichever comes first. However, Samba 4.2.x has a regression where stabilization may happen on nearly every gencache write. This makes things like `net sam listmem` with many group members extremely slow.
This is fixed in master by commit 600b40db9d95c20c04fd517165dff81b20e35e8e (gencache: don't fail gencache_stabilize if there were records to delete.) But it should probably be merged into v4-2-test since it's a significant performance regression for some operations.
Created attachment 11029 [details]
git-am cherry-pick from master for 4.2.next
Added bug id to commit message.
Re-assigning to Karolin for inclusion in 4.2.next.
(In reply to Jeremy Allison from comment #2)
Pushed to autobuild-v4-2-test.
(In reply to Karolin Seeger from comment #3)
Pushed to v4-2-test.
Closing out bug report.