[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Optimization help
- To: openldap-technical@openldap.org
- Subject: Optimization help
- From: Pawan Kamboj <pawank.kamboj@gmail.com>
- Date: Fri, 30 Nov 2012 13:09:53 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=h1g98dBo4fcCo4My4DmNmep7vneVVJbGZ/H0hpwrL3k=; b=DU2pJZVPYL95xImFfEQMuMOLOETksdy9as644D+eNo+ufJCUvVN3zA5ntvyMEoSFSL JG2/Flu4SvzY+Tmxq1bcvGpXMHYXBV+APSkG5Q+2G73hhUygJt6cSj8/kpBagePGoRMi dZYvc2vlPfSyuikE2htomw/nE8JZO/sDrctW9CNpZhuGMfE95IFlR07YXFR+OvSbQ9ts oeqJMCyLtSMNovVHfCB7qc7nGwCZiPb7PhPjqNJyJvD5QgXeIajawtIHsgRr+wo52h16 klmcamtze5rersjgAIpnQsp2Ju7annFg6TKEFYDyVa2koKzWMaQK7Rvu2W1do9ALxlU/ ILng==
Hi,
What can I do to maximize the performance of my openldap setup which running in master-slave mode using syncrepl?
System has 8GM RAM and 4GB swap space
Openldap-2.3.32 and DB.4.5
----------------------------------
Total dn count is 2450000.
LDIF size is 670MB using ldapsearch
dbd size is :
du -c -h *.bdb
69M authenticationId.bdb
227M cn.bdb
602M dn2id.bdb
27M entryCSN.bdb
24M entryUUID.bdb
2.5G id2entry.bdb
6.4M mail.bdb
4.6M objectClass.bdb
16M ou.bdb
263M sn.bdb
740M uid.bdb
4.4G total
-----------------------
Portion of slapd.conf:
cachesize 50000
checkpoint 4096 10
sizelimit 2500000
-------------------------
DB_CONFIG
# Set the database in memory cache size.
set_cachesize 2 0 1
# Set database flags.
set_flags DB_TXN_NOSYNC
set_lk_max_locks 2000
set_lk_max_objects 1000
set_lk_max_lockers 1000
set_txn_timeout 3000000
set_lock_timeout 3000000
set_lg_regionmax 1048576
set_lg_max 10485760
set_lg_bsize 2097152
set_lg_dir /usr/local/var/master/logs
db_stat -h /usr/local/master/db -m | head -n 2
2GB Total cache size
1 Number of caches
Thanks
Pawan Kumar