[bind10-dev] numeric/integer size on CC channel

Francisco Obispo fobispo at isc.org
Fri Jun 21 03:35:29 UTC 2013


I have not been part of the full discussion, but statistical data should roll over, as counters keep incrementing.

In order to detect from the collector side, it is important to have an indicator from 'when' the server was started, so that it can be compared against the previous value.

In BIND9 there is the 'boot-time' element in the XML which I use extensively to determine wether it's safe to subtract the value from the previous sample, and if the value is less than the previous but has the same boot-time, it means that the counter rolled over.

This is why I believe it's important to define 64bit counters, and use a simulated 64bit using a two pair 32-bit in 32-bit architectures.. BIND9 covers this pretty well, perhaps we should re-use some of that?

Francisco



On Jun 20, 2013, at 8:25 PM, fujiwara at jprs.co.jp wrote:

> Do you mean that statistics data will corrupt if it exceeds 2^63 ?
> 
> Or do you mean that statistics data size is limited to 2^63 ?
> 
> The latter case, I can agree.



More information about the bind10-dev mailing list