[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: stats (and back-monitor) counters wrap when overflowing (ITS#3324)
hyc@symas.com wrote:
>It's a bit of an indirection, but I note that OpenSSL includes a BigNum
>library for arbitrary precision. I'm hesitant to make OpenSSL a
>requirement to support back-monitor, but since all of my deployments
>include OpenSSL anyway, I'm also reluctant to add another math library
>dependency.
>
>
Honestly, I preferred to use GMP if available; if not,
counters wrap, but at least remain unsigned!
Here's the output.
[masarati@ando ldap]$ ldapsearch -x -H ldap://:9011 -b
cn=statistics,cn=monitor monitorcounter -LLL
dn: cn=Entries,cn=Statistics,cn=Monitor
monitorCounter: 448337
dn: cn=Referrals,cn=Statistics,cn=Monitor
monitorCounter: 0
dn: cn=PDU,cn=Statistics,cn=Monitor
monitorCounter: 495515
dn: cn=Bytes,cn=Statistics,cn=Monitor
monitorCounter: 5244552798
I haven't checked yet if it still works without GMP
because I can't find a machine without, I'll manually
modify portable.h. I haven't used the custom malloc
facilities of GMP; do you think it's worth, or should
we stay with system's malloc?
p.
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497