[Samba] gencache.tdb size and cache flush

Francesco Malvezzi
2018-08-29T08:28:05Z

Hi all,

I have a midsize AD domain with some 50k users but only 100 workstations
joined.

Sometimes I find server CPU throttling at 100%. In order to let it drop
and have smooth performance I delete cache:

systemctl stop samba
net cache flush
systemctl start samba

First of all, is it needed a samba stop to flush the cache?

Even if cache flush does the job to restore performance, I am clueless
about the root cause of the problem. Before flushing cache the
gencache.tdb had 15k entries. Is it large? Do you think is it worth time
to investigate why it grows so much or is it just normal?

thank you,

franz