Ulrich Windl writes:
It would be interesting to see the quotient of "size of mdb" / "size of the database in slapcat format".
Can't tell size in slapcat format from the MDB database, but we can look at the sub-databases ad2i + dn2i + id2e which make up the unindexed slapd data, and compare with "Number of pages used". See the "mdb_stat -e -a" output.
Maybe mdb_stat should accept several '-s subname' arguments if someone would rather see just the interesting DBs instead of -a(ll).
OK, this ignores any indexes that will also consume some space...
In mdb, data and indexes are all in the same datafile.