HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

16.2 Tuning database performance
This section is divided into the following parts that describe methods for tuning database
performance:
“Optimizing search performance” (page 539)
“Tuning transaction logging” (page 540)
“Changing the location of the database transaction log” (page 540)
“Changing the database checkpoint interval” (page 541)
“Disabling durable transactions” (page 541)
“Specifying transaction batching” (page 541)
16.2.1 Optimizing search performance
Improve server performance on searches by tuning database settings. The database attributes that
affect performance mainly define the amount of memory available to the server. There are two
kinds of database caches, one for the default database cache and the other for the entry cache.
The server has one default database cache per server, and one entry cache per database.
To improve the cache hit ratio on search operations, increase the amount of data that the Directory
Server maintains in the database cache. Do this by increasing the cache size. The maximum values
that can be set for these attributes depends on the amount of real memory on the machine. Roughly,
the amount of available memory on the machine should always be greater than sum total of the
default database cache size and sum of each entry cache size.
Use caution when changing these two attributes. The ability to improve server performance with
these attributes depends on the size of the database, the amount of physical memory available on
the machine, and whether directory searches are random (that is, if the directory clients are
searching for random and widely scattered directory data).
If the database does not fit into memory and if searches are random, attempting to increase the
values set on these attributes does not help directory performance. In fact, changing these attributes
may harm overall performance.
The following attributes can be tuned:
The attributes of the database that manages all other database instances. The Directory Server
Console only shows the databases that contain the directory data and the NetscapeRoot
database. However, the server uses another database to manage these. On this database,
the following attributes can be changed to improve performance:
The amount of memory to make available for all databases (maximum cache size).
The maximum number of entries for the server to verify in response to a search request
(look-through limit).
The amount of memory to make available for import (import cache size).
The attributes of each database used to store directory data, including the server configuration
data in the NetscapeRoot database. On these databases, to improve performance, configure
the amount of memory to make available for cached entries (memory available for cache).
To configure the default database attributes that apply to all other database instances:
1. In the Directory Server Console, select the Configuration tab; then, in the navigation tree,
expand the Data Icon, and highlight the Database Settings node.
This displays the Database tabs in the right pane.
16.2 Tuning database performance 539