r19685: Two changes inspired by problems with huge tdbs. tdbtool's list command now
commit577d0ff658596f8246f120e0342cc5c9e4077ece
authorVolker Lendecke <vlendec@samba.org>
Mon, 13 Nov 2006 09:34:55 +0000 (13 09:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:46 +0000 (10 12:15 -0500)
treeea58b12fec769eea7c026fb3dd0d3431d9a37382
parent53eaa603eb84047263c27d57b8c0f5ce8e157189
r19685: Two changes inspired by problems with huge tdbs. tdbtool's list command now
prints the hash on every record for easier awk'ing, and tdbbackup allows a
different hash chain length on the backed up tdb.

Jeremy, Günther, this might be interesting for you huge domains. Not only
locking.tdb, also the winbind ones might grow huge.

In the installation I fixed with this winbind spent a huge amount of CPU
spinning through a degenerated winbindd_idmap.tdb with entries for more than
15.000 users. With a default number of hash chains of 131 on that tdb you can
imagine that the lists get large.

Not merging to 4, I don't get tdbbackup to compile there right now.

What about changing the global default hash chain number to be dramatically
larger? Disk is cheap these days.

Volker
source/tdb/common/dump.c
source/tdb/common/tdbback.c
source/tdb/include/tdbback.h
source/tdb/tools/tdbbackup.c