[Date Prev][Date Next] [Chronological] [Thread] [Top]

Index filesize [auf Viren überprüft]



Hi!

What influences the index filesize?
I disabled all indices but
# slapd.conf
index objectClass eq
index cn eq,sub
and there are no other entries in the bdb-database definition than suffix, rootdn, rootpw and directory.
There is no DB_CONFIG file.
It ist OL 2.2.23


I delete all file in the database directory and start slapd. Files are recreated.

root@trzs088:/ldap/main-data # l
total 1096
drwxr-sr-x   2 root     system         4096 Feb 24 17:39 .
drwxr-xr-x   4 root     system          256 Feb 23 18:21 ..
-rw-------   1 root     system        16384 Feb 24 17:39 __db.001
-rw-------   1 root     system       278528 Feb 24 17:39 __db.002
-rw-------   1 root     system        98304 Feb 24 17:39 __db.003
-rw-------   1 root     system       483328 Feb 24 17:39 __db.004
-rw-------   1 root     system        24576 Feb 24 17:39 __db.005
-rw-------   1 root     system         8192 Feb 24 17:39 dn2id.bdb
-rw-------   1 root     system        32768 Feb 24 17:39 id2entry.bdb
-rw-------   1 root     system        41998 Feb 24 17:39 log.0000000001

Then I add 5 (five!) entries (about 30 attributes at all!) and get this:
drwxr-sr-x   2 root     system         4096 Feb 24 17:39 .
drwxr-xr-x   4 root     system          256 Feb 23 18:21 ..
-rw-------   1 root     system        16384 Feb 24 17:39 __db.001
-rw-------   1 root     system       278528 Feb 24 17:39 __db.002
-rw-------   1 root     system        98304 Feb 24 17:39 __db.003
-rw-------   1 root     system       483328 Feb 24 17:39 __db.004
-rw-------   1 root     system        24576 Feb 24 17:39 __db.005
-rw-------   1 root     system    108442288 Feb 24 17:39 cn.bdb
-rw-------   1 root     system    108442288 Feb 24 17:39 dn2id.bdb
-rw-------   1 root     system    108454576 Feb 24 17:39 id2entry.bdb
-rw-------   1 root     system        70753 Feb 24 17:39 log.0000000001
-rw-------   1 root     system    108442288 Feb 24 17:39 objectClass.bdb

4 x 100 Megabyte of data!
When I do the same with ldapadd, it looks like this:

root@trzs088:/ldap/main-data # l
total 1224
drwxr-sr-x   2 root     system         4096 Feb 24 17:41 .
drwxr-xr-x   4 root     system          256 Feb 23 18:21 ..
-rw-------   1 root     system        16384 Feb 24 17:41 __db.001
-rw-------   1 root     system       278528 Feb 24 17:41 __db.002
-rw-------   1 root     system        98304 Feb 24 17:41 __db.003
-rw-------   1 root     system       483328 Feb 24 17:41 __db.004
-rw-------   1 root     system        24576 Feb 24 17:41 __db.005
-rw-------   1 root     system         8192 Feb 24 17:41 cn.bdb
-rw-------   1 root     system         8192 Feb 24 17:41 dn2id.bdb
-rw-------   1 root     system        32768 Feb 24 17:41 id2entry.bdb
-rw-------   1 root     system        73615 Feb 24 17:41 log.0000000001
-rw-------   1 root     system         8192 Feb 24 17:41 objectClass.bdb

When I run slapindex after ldapadd, there are again 400 MByte...
I checked slap[add|index] takes the right slapd.conf by using "-f "


Hans