BIND 10 #170: document how stats are collected (via spec files)
BIND 10 Development
do-not-reply at isc.org
Fri Sep 17 04:32:12 UTC 2010
#170: document how stats are collected (via spec files)
-----------------------------+----------------------------------------------
Reporter: larissas | Owner: naokikambe
Type: task | Status: reviewing
Priority: major | Milestone: 06. 4th Incremental Release
Component: statistics | Resolution:
Keywords: | Sensitive: 0
Estimatedhours: 0.0 | Hours:
Billable: 0 | Totalhours:
Internal: 0 |
-----------------------------+----------------------------------------------
Comment(by jinmei):
Replying to [comment:18 jinmei]:
> Suppose we handle 100,000 qps, and have a counter of number of queries.
If it's a 64bit unsigned integer, it won't overflow until 368,452,886,146
years later. Even if it's 32bit, it won't overflow until 85 years later.
>
Sorry, I've noticed the calculation was incorrect. These should be
5,849,424 years and 0.0014 years, respectively:
{{{
>>> 2**64 / (3600 * 24 * 365 * 100000)
5849424.17355072
>>> 2**32 / (3600 * 24 * 365 * 100000)
0.0013619251953323186
}}}
(ignoring leap years)
But a 64bit counter still seems more than enough.
--
Ticket URL: <http://bind10.isc.org/ticket/170#comment:20>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list