[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Help tweaking settings so slapd is not writing to disk so much



To enable shared memmory I just do this? 

In DB_CONFIG: set_shm_key 1 
And
Put the slapd conf: olcDbShmKey to 1

And rebuild the bdb database in /var/lib/ldap/



I have a default (centos6) DB_CONFIG setup.
========================================== 
set_cachesize 0 268435456 1
set_lg_regionmax 262144
set_lg_bsize 2097152


db_stat -m -h /var/lib/ldap/
============================
320MB 2KB 24B   Total cache size
1       Number of caches
1       Maximum number of caches
320MB 8KB       Pool individual cache size
0       Maximum memory-mapped file size
0       Maximum open file descriptors
0       Maximum sequential buffer writes
0       Sleep after writing maximum sequential buffers
0       Requested pages mapped into the process' address space
16M     Requested pages found in the cache (99%)
46      Requested pages not found in the cache
704     Pages created in the cache
46      Pages read into the cache
1271    Pages written from the cache to the backing file
0       Clean pages forced from the cache
0       Dirty pages forced from the cache
0       Dirty pages written by trickle-sync thread
750     Current total page count
557     Current clean page count
193     Current dirty page count
32771   Number of hash buckets used for page location
16M     Total number of times hash chains searched for a page (16253171)
2       The longest hash chain searched for a page
16M     Total number of hash chain entries checked for page (16304063)
1694    The number of hash bucket locks that required waiting (0%)
793     The maximum number of times any hash bucket lock was waited for
(0%)
0       The number of region locks that required waiting (0%)
0       The number of buffers frozen
0       The number of buffers thawed
0       The number of frozen buffers freed
865     The number of page allocations
0       The number of hash buckets examined during allocations
0       The maximum number of hash buckets examined for an allocation
0       The number of pages examined during allocations
0       The max number of pages examined for an allocation
0       Threads waited on page I/O



Pool File: sendmailMTAAliasValue.bdb
4096    Page size
0       Requested pages mapped into the process' address space
1498    Requested pages found in the cache (99%)
2       Requested pages not found in the cache
0       Pages created in the cache
2       Pages read into the cache
1       Pages written from the cache to the backing file
Pool File: uidNumber.bdb
4096    Page size
0       Requested pages mapped into the process' address space
44065   Requested pages found in the cache (99%)
2       Requested pages not found in the cache
10      Pages created in the cache
2       Pages read into the cache
22      Pages written from the cache to the backing file