Database Plug-in Attributes
Chapter 3 Plug-in Implemented Server Functionality Reference 173
nsslapd-import-cache-autosize
This performance tuning-related attribute automatically sets the size of the import
cache (
importCache
) to be used during the command-line-based import process of
LDIF files to the database (the
ldif2db
operation).
In Directory Server, the import operation can be run as a server task or exclusively
on the command-line. In the task mode, the import operation runs as a general
Directory Server operation. The
nsslapd-import-cache-autosize
attribute
enables you to set
importCache
automatically to a predetermined size when the
import operation is run on the command-line. The attribute can also 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-autosize
attribute 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 hardcoded and cannot be changed.
You can set the attribute value to
50
(
nsslapd-import-cache-size:50
) to have
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
-1
value autosizes
importCache
just for the
ldif2db
operation and not for any, including import, general Directory Server
tasks.
Setting the
nsslapd-import-cache-autosize
attribute 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, the default for which
is
20,000,000
.
Keep in mind that there are three caches in the context of Directory Server,
dbCache
,
entryCache
, and
importCache
.
importCache
is only used during the
import operation. The attribute
nsslapd-cache-autosize
, 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
.
NOTE The purpose of
-1
setting is to enable the
ldif2db
operation to
benefit on 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.