[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Performance issues lately.
- To: Quanah Gibson-Mount <quanah@zimbra.com>
- Subject: Re: Performance issues lately.
- From: Jorgen Lundman <lundman@lundman.net>
- Date: Mon, 15 Nov 2010 09:10:28 +0900
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lundman.net; s=dkim; t=1289747436; bh=FebNKXBJKCax4KY4pmW/IdYuIuUx1oJ2bud719V4QJU=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IHHF4Z7UImJdahac4aQlwwiAH2equSaiINd/HJ898e/A9YKQvuMbWuTk+xcB84S/J Yv6vGDBeOxcnv4ftPqcYRYtbndv1Z+0zboPZhvCmvY9E7CxANhD9D3SGCMT9nwWtJq funB7qOeEYp0mcuwMhwbOOSOsQ6oHkZ0LQ9ckVFg=
- In-reply-to: <80933F49EC4BB1F052776EAB@[192.168.1.7]>
- References: <4CDFB64F.4020002@lundman.net> <80933F49EC4BB1F052776EAB@[192.168.1.7]>
- User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.15) Gecko/20101027 SeaMonkey/2.0.10
No real reason, tried various different settings but to no real advantage.
Now I have:
Filesystem size used avail capacity Mounted on
swap 19G 7.7G 11G 42% /tmp
# grep cache DB_CONFIG
set_cachesize 8 0 1
# time /usr/local/BerkeleyDB.4.8/bin/db_stat -d id2entry.bdb
real 6m6.099s
# time cp id2entry.bdb /dev/null
real 0m0.040s
(It's not on disk)
I thought to delete id2entry.bdb, and use slapindex to re-generate it but that
appears not to be a supported feature. slapindex can not run without a valid
id2entry.bdb. This is why I tried slapcat, rm *, slapadd. But no difference in
speed up.
If I truss with -u *:* (All inter-library calls) I get no "single" large system
call, just a lot of work somewhere (that does not call read/write etc). Alas,
the number of lines in truss file is:
6209933 /var/tmp/db_stat_truss
Lund
Quanah Gibson-Mount wrote:
--On Sunday, November 14, 2010 7:13 PM +0900 Jorgen Lundman
<lundman@lundman.net> wrote:
dbconfig set_cachesize 4 0 8
Why are you breaking your cache into segments? This has always had a
negative performance impact in all tests I've done, and stopped being
necessary to do with BDB 4.3 and later.
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
--
Jorgen Lundman | <lundman@lundman.net>
Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
Japan | +81 (0)3 -3375-1767 (home)