[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_pvt_mp_ multiprecision stuff
- To: OpenLDAP Devel <openldap-devel@OpenLDAP.org>
- Subject: ldap_pvt_mp_ multiprecision stuff
- From: Howard Chu <hyc@symas.com>
- Date: Wed, 08 Feb 2006 22:25:56 -0800
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060208 SeaMonkey/1.5a Mnenhy/0.7.3.0
I'm seeing a significant amount of CPU use after a search completes,
apparently just from updating the op counters. The CPU really should not
be 50-90% busy after processing a single query, after the client has
already disconnected. I think it might be better to prefer long long's
to the bignum or gmp stuff. Are we really concerned that any 64 bit
counter is going to overflow? Even on 10Gbit ethernet it will take ~544
years to overflow a 64 bit byte counter, and that's assuming a
continuous output stream at 100% bandwidth utilization.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/