[bind10-dev] Enabling/disabling logging on per-message basis

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Mon Mar 26 18:25:40 UTC 2012


At Mon, 26 Mar 2012 15:01:39 +0200,
Michal 'vorner' Vaner <michal.vaner at nic.cz> wrote:

> So, I measured the impact of adding the map there, in ticket #1752. It turns if
> there's a tight loop doing only logging of messages that are not output, the
> performance drops to 73% (from 86114991 messages per second to 62564871). Jinmei
> proposed further optimisation, but I believe that with the amount logging we do
> in real code (we do more of the other stuff than the logging, we definitely
> don't do 86 million messages per second), the impact would be pretty small.

To me, it's not so obvious.  We have quite a lot of debug level log
messages in performance sensitive path, so a downgrade of 27% looks
still alarming, even if I understand other stuff should dominate the
overall process.

Personally, I'd still keep this overhead minimum (e.g. within 5%
range) unless the optimization requires hundreds of additional code.

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.


More information about the bind10-dev mailing list