winbindd_cache.tdb size issue in 3.2.15

valyekhin at aidoss.com valyekhin at aidoss.com
Fri Oct 30 09:58:22 MDT 2009


Hello.

After update Samba from v. 3.0.28a to v.  3.2.15 we've noticed that  
winbibdd_cache.tdb
file has been increased up to 10 times. After some testing we got the  
following file
sizes (in bytes)

6 users in AD:  3.0.28a - 53248, 3.2.15 - 389120
1005 users in AD: 0.28a - 1802240, 3.2.15 - 13963264
10005 users in AD: 0.28a - 18464768, 3.2.15 - 144846848

We've found out that 3.2.15 uses another algorythm for making room for  
new records in the
tdb file. If 3.0.28a allocates space for at least 10 more records,  
3.2.15 allocates space
for at least 100 more records, and at least 25% more space.
We've created a patch which transfers algorythm for allocation space from
3.0.28a.
After using this patch we've got the next results:
6 users in AD:  3.0.28a - 53248, 3.2.15 patched - 61440
1005 users in AD: 0.28a - 1802240, 3.2.15 patched - 1922916
10005 users in AD: 0.28a - 18464768, 3.2.15 patched - 19709952

But we have some doubts as for the correctness of the patch and we're  
not sure that it
won't damage anything.

Please, clarify this item.

Thanks...

Regards, Vladimir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.2.15.winbind_cache.size.research.diff
Type: text/x-diff
Size: 1124 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20091030/acfa8805/attachment.diff>


More information about the samba-technical mailing list