LX0-104 · Question #192
What does cachesize 1000000 represent in the slapd.conf file?
The correct answer is A. The number of entries to be cached.. In slapd.conf, the cachesize directive, when followed by a number like 1000000, specifies the maximum number of entries that the database cache should hold.
Question
Options
- AThe number of entries to be cached.
- BThe size of the cache in Bytes.
- CThe size of the cache in bits.
- DThe minimum cache size in Bytes.
- EThe maximum cache size in Bytes.
How the community answered
(33 responses)- A91% (30)
- C3% (1)
- D6% (2)
Why each option
In `slapd.conf`, the `cachesize` directive, when followed by a number like `1000000`, specifies the maximum number of entries that the database cache should hold.
The `cachesize` directive in OpenLDAP's `slapd.conf` (specifically for back-bdb/hdb backends) is used to specify the maximum number of entries that the IDL (ID List) cache can hold. A value like `1000000` means the cache can store up to one million entry IDs.
The `cachesize` directive specifies the number of entries, not the size of the cache in Bytes; the database's memory map size (`dbcachesize` or `set_cachesize` in `DB_CONFIG`) controls the byte size.
The `cachesize` directive specifies the number of entries, not the size of the cache in bits.
The `cachesize` directive specifies the maximum number of entries, not a minimum, and it is not measured in Bytes.
The `cachesize` directive specifies the maximum number of entries, not the maximum size in Bytes.
Concept tested: OpenLDAP database cache configuration
Source: https://www.openldap.org/doc/admin24/bdb.html
Topics
Community Discussion
No community discussion yet for this question.