tdb memory consumption

tridge at tridge at
Mon Feb 12 22:07:43 GMT 2007


Just spoke to Volker, and I got it totally wrong :-)

The bit I missed is this:

	if (tdb->num_lockrecs > 1) {
		*lck = tdb->lockrecs[tdb->num_lockrecs-1];
	tdb->num_lockrecs -= 1;

that effectively shrinks the array when the count on an element drops
to zero. So the memory usage will in the worst case be the maximum
number of hash chains actually locked times 12.

Sorry for the false alarm!

Cheers, Tridge

More information about the samba-technical mailing list