Hi all,
I would like to know how I can tunning my ldap (openldap 2.4.23 on RHEL5.4 64-bits) installation:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
13480 root 25 0 1378m 18m 4296 S 25.9 0.5 7241:07 1.3g slapd
I already read the page http://www.openldap.org/faq/data/cache/1075.html (ex: Number of hash buckets ), but I not have all informations for calculate the size.
[root@xxxxxxx openldap-data]# du -h . 43M .
My BDB database take only 43M The accesslog take : 62M .
How can I reduce memory (swap) usage and CPU usage (sometimes I see 134%)
Thank you
Stéphane Purnelle
----------------------------------- Stéphane PURNELLE Admin. Systèmes et Réseaux Service Informatique Corman S.A. Tel : 00 32 (0)87/342467
--On April 4, 2011 10:22:52 AM +0200 Stéphane PURNELLE stephane.purnelle@corman.be wrote:
Hi all,
I would like to know how I can tunning my ldap (openldap 2.4.23 on RHEL5.4 64-bits) installation:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 13480 root 25 0 1378m 18m 4296 S 25.9 0.5 7241:07 1.3g slapd
I already read the page http://www.openldap.org/faq/data/cache/1075.html (ex: Number of hash buckets ), but I not have all informations for calculate the size.
You fail to provide enough information to help you. How many entries do you have? What OpenLDAP backend are you using? What is the size of *just* the database (du -c -h *.bdb) for both main and accesslog dbs? How many threads do you have configured in slapd.conf/cn=config? How many real cores/cpus does the system have?
--Quanah
Hi,
Backend : BDB
DB size: Database: 4,1M Accesslog: 6,6M
CPU: 2 x 4 core
For thread configuration : default configuration
For the entries question: How to know many entries I have ?
Thanks
Stéphane Purnelle
----------------------------------- Stéphane PURNELLE Admin. Systèmes et Réseaux Service Informatique Corman S.A. Tel : 00 32 (0)87/342467
Quanah Gibson-Mount quanah@zimbra.com wrote on 05/04/2011 02:22:01:
Quanah Gibson-Mount quanah@zimbra.com 05/04/2011 02:22
A
Stéphane PURNELLE stephane.purnelle@corman.be, openldap- technical@openldap.org
cc
Objet
Re: help needed for tuning my openldap
--On April 4, 2011 10:22:52 AM +0200 Stéphane PURNELLE stephane.purnelle@corman.be wrote:
Hi all,
I would like to know how I can tunning my ldap (openldap 2.4.23 on RHEL5.4 64-bits) installation:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 13480 root 25 0 1378m 18m 4296 S 25.9 0.5 7241:07 1.3g slapd
I already read the page
http://www.openldap.org/faq/data/cache/1075.html
(ex: Number of hash buckets ), but I not have all informations for calculate the size.
You fail to provide enough information to help you. How many entries do
you have? What OpenLDAP backend are you using? What is the size of
*just*
the database (du -c -h *.bdb) for both main and accesslog dbs? How many
threads do you have configured in slapd.conf/cn=config? How many real cores/cpus does the system have?
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--On April 5, 2011 9:25:11 AM +0200 Stéphane PURNELLE stephane.purnelle@corman.be wrote:
Hi,
Backend : BDB
DB size: Database: 4,1M Accesslog: 6,6M
CPU: 2 x 4 core
For thread configuration : default configuration
For the entries question: How to know many entries I have ?
Please don't top post.
For the number of entries, I usually slapcat my db, then grep ^dn: "LDIF file" | wc -l
--Quanah
Quanah Gibson-Mount quanah@zimbra.com wrote on 05/04/2011 19:02:45:
Quanah Gibson-Mount quanah@zimbra.com 05/04/2011 19:03
A
Stéphane PURNELLE stephane.purnelle@corman.be, openldap- technical@openldap.org
cc
Objet
Re: help needed for tuning my openldap
--On April 5, 2011 9:25:11 AM +0200 Stéphane PURNELLE stephane.purnelle@corman.be wrote:
Hi,
Backend : BDB
DB size: Database: 4,1M Accesslog: 6,6M
CPU: 2 x 4 core
For thread configuration : default configuration
For the entries question: How to know many entries I have ?
Please don't top post.
For the number of entries, I usually slapcat my db, then grep ^dn: "LDIF
file" | wc -l
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
I have 796 entries
thanks
Stéphane Purnelle
----------------------------------- Stéphane PURNELLE Admin. Systèmes et Réseaux Service Informatique Corman S.A. Tel : 00 32 (0)87/342467
--On Thursday, April 07, 2011 10:10 AM +0200 Stéphane PURNELLE stephane.purnelle@corman.be wrote:
I have 796 entries
Then it sounds like you have a very very small database. ;) Just make sure your entrycache (cachesize) is 1,000 and your idlcachesize is 3,000 and you should be fine for that part.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org