Specifies the size of the pages used to hold items in the database, in bytes. Valid page sizes are 512, 1024, 2048, 4096, 8192, 16384, 32768, and 65536 bytes. If the page size is not explicitly set, Directory Server defaults to a page size of 8192 bytes. Ideally, page size is set such that entries fit in database pages without wasting space. Whether it is possible to achieve an ideal database page size depends on your entries, and on whether they are subject to change in size.
You must be prepared to export all databases to LDIF, remove existing databases, and import all databases from LDIF when modifying this attribute.
For ZFS file systems, you may find performance is best when the file system block size is set to equal the database page size. For example, try setting both to 32K or 64K.
To change the value of nsslapd-db-page-size, perform the following steps.
Shut down the Directory Server instance using the dsadm command.
Back up the Directory Server databases to LDIF using the dsadm command.
Remove all existing database files.
These files include subdirectories of the database directory, database transaction logs under the nsslapd-db-logdirectory directory, and everything under the nsslapd-db-home-directory directory.
Change the value of the attribute in dse.ldif.
Restore the Directory Server databases from LDIF using the dsadm command.
Restart the Directory Server instance using the dsadm command.
Changing this default value can have significant performance impact. If the page size is too small, it results in extensive page splitting and copying, whereas if the page size is too large, it can waste disk space.
The following list describes the characteristics of this configuration attribute.
512 bytes to 64 KB
See attributes(5) for descriptions of the following attributes:
Obsolete: Scheduled for removal after this release