Chapter 3. Plug-in Implemented Server Functionality Reference
174
database, 2 gigabytes is used when loading two databases, and so on. Ensure there is
sufficient physical memory to prevent swapping from occurring, as this would result in
performance degradation.
Parameter
Description
Entry DN
cn=config, cn=ldbm database, cn=plugins,
cn=config
Valid Range
500 kilobytes to 4 gigabytes for 32-bit platforms
and 500 kilobytes to 2^64-1 for 64-bit platforms
Default Value
20000000
Syntax
Integer
Example
nsslapd-import-cachesize: 20000000
3.4.1.23. 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 the import cache to 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 import cache.
By default, the
nsslapd-import-cache-autosize
attribute is enabled and is set to a value of
-1
.
This value autosizes the import cache for the
ldif2db
operation only, automatically allocating fifty
percent (50%) of the free physical memory for the import cache. 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
-1
value autosizes
the import cache just for the
ldif2db
operation and not for any, including import, general Directory
Server tasks.
NOTE
The purpose of a
-1
setting is to enable the
ldif2db
operation to benefit from free
physical memory but, at the same time, not compete for valuable memory with the entry
cache, which is used for general operations of the Directory Server.
Setting the
nsslapd-import-cache-autosize
attribute value to
0
turns off the import cache
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 value of
20000000
.
There are three caches in the context of Directory Server: database cache, entry cache, and import
cache. The import cache is only used during the import operation. The
nsslapd-cache-autosize
Содержание 8.1
Страница 8: ...viii ...
Страница 14: ...xiv ...
Страница 16: ...2 ...
Страница 250: ...236 ...
Страница 334: ...320 ...
Страница 372: ...358 ...