[Dnsmasq-discuss] Stats improvement

Simon Kelley simon at thekelleys.org.uk
Fri Mar 28 19:57:11 UTC 2014


On 28/03/14 16:35, Dave Taht wrote:

> 
>> I haven't looked at the code yet, but my take on this was originally that
>> I'd wanted a single dns reply for all the statistics (can live
>> without), 64 bit counters, and not only tracking misses but the
>> latency cost of a miss. Then there are misses that are never
>> resolved... and (even harder), things like a 5 minute rolling
>> average... and a breakdown by query type (AAAA, A, DS, etc)
> 
>> gettimeofday() is very efficient on modern linuxes (it gets the time from a
>> shared page cache without even making a syscall), but I can see that
>> you might want to be able to compile that out.
> 
>> And I wasn't expecting you to get to it in this release! Just basic stats is
>> great....
> 

What's there now is the stats that are already computed and made
available in the log when SIGUSR1 is received. A more convenient way to
get those was the subject of an independent request.

Doing more and better stats is definitely a subject for a later release,
subject to code bloat etc etc.

Cheers,


Simon.



More information about the Dnsmasq-discuss mailing list