Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

6.4. Setting the Size of the DN Cache


The entryrdn index is used to associate DNs and RDNs with entries. It enables the server to efficiently perform subtree rename, entry move, and moddn operations. The DN cache is used to cache the in-memory representation of the entryrdn index to avoid expensive file I/O and transformation operations. For best performance, especially with but not limited to entry rename and move operations, set the DN cache to a size that enables Directory Server to cache all DNs in the database.
If a DN is not stored in the cache, Directory Server reads the DN from the entryrdn.db index database file and converts the DNs from the on-disk format to the in-memory format. DNs that are stored in the cache enable the server to skip the disk I/O and conversion steps.

6.4.1. Setting the Size of the DN Cache Using the Command Line

To set the DN cache size of a database using the command line:
  1. Display the suffixes and their corresponding back end:
    # dsconf -D "cn=Directory Manager" ldap://server.example.com suffix list
    dc=example,dc=com (userroot)
    Copy to Clipboard Toggle word wrap
    This command displays the name of the back end database next to each suffix. You require the suffix's database name in the next step.
  2. To disable database and entry cache auto-sizing, enter:
    # dsconf -D "cn=Directory Manager" ldap://server.example.com backend config set --cache-autosize=0
    Copy to Clipboard Toggle word wrap
  3. To set the DN cache size, enter:
    # dsconf -D "cn=Directory Manager" ldap://server.example.com backend suffix set --dncache-memsize=20971520 userRoot
    Copy to Clipboard Toggle word wrap
    This command sets the DN cache for the userRoot database to 20 megabytes.
  4. Restart the Directory Service instance:
    # dsctl instance_name restart
    Copy to Clipboard Toggle word wrap

6.4.2. Setting the Size of the DN Cache Using the Web Console

To set DN cache size of a database using the Web Console:
  1. Open the Directory Server user interface in the web console. For details, see Logging Into Directory Server Using the Web Console section in the Red Hat Directory Server Administration Guide.
  2. Select the instance.
  3. On the Database tab, select the suffix for which you want to set the DN cache size.
  4. Enter the size in bytes into the DN Cache Size (bytes) field.
  5. Click Save Configuration.
  6. Click the Actions button, and select Restart Instance.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat