be set automatically to a predetermined size when the import operation is run on the command-line. The attribute can also be used by Directory Server during the task mode import for allocating a specified percentage of free memory for importCache.

By default, the nsslapd-import-cache-autosizeattribute is enabled and is set to a value of -1. This value autosizes importCache for the ldif2db operation only, automatically allocating fifty percent (50%) of the free physical memory for importCache. The percentage value (50%) is hard-coded and cannot be changed.

Setting the attribute value to 50 (nsslapd-import-cache-autosize: 50) has the same effect on performance during an ldif2db operation. However, such a setting will have the same effect on performance when the import operation is run as a Directory Server task. The -1value autosizes importCache just for the ldif2db operation and not for any, including import, general Directory Server tasks.

NOTE:

The purpose of a -1setting is to enable the ldif2db operation to benefit from free physical memory but, at the same time, not compete for valuable memory with entryCache, which is used for general operations of the Directory Server.

Setting the nsslapd-import-cache-autosizeattribute value to 0 turns off the importCache autosizing feature - that is, no autosizing occurs during either mode of the import operation. Instead, Directory Server uses the “nsslapd-import-cachesize”attribute for import cache size, with a default of 20,000,000.

There are three caches in the context of Directory Server: dbCache, entryCache, and importCache. importCache is only used during the import operation. The nsslapd-cache-autosizeattribute, which is used for autosizing entryCache and dbCache, is used during the Directory Server operations only and not during the ldif2db command-line operation; the attribute value is the percentage of free physical memory to be allocated for entryCache and dbCache.

If both the autosizing attributes, nsslapd-cache-autosizeand nsslapd-import-cache-autosize, are enabled, ensure that their sum is less than 100.

Parameter

Description

Entry DN

cn=config, cn=ldbm database, cn=plugins, cn=config

 

 

Valid Range

-1, 0 (turns import cache autosizing off) to 100

 

 

Default Value

-1 (turns import cache autosizing on for ldif2db only and allocates 50% of the free physical

 

memory to importCache)

 

 

Syntax

Integer

 

 

Example

nsslapd-import-cache-autosize: -1

 

 

3.4.1.27 nsslapd-mode

This attribute specifies the permissions used for newly created index files.

Parameter

Description

Entry DN

cn=config, cn=ldbm database, cn=plugins, cn=config

 

 

Valid Values

Any four-digit octal number. However, mode 0600 is recommended. This allows read and

 

write access for the owner of the index files (which is the user as whom the ns-slapdruns)

 

and no access for other users.

 

 

Default Value

600

 

 

3.4 Database plug-in attributes 143