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

Michal 'vorner' Vaner michal.vaner at nic.cz
Mon Jun 24 06:37:31 UTC 2013


Hello

On Fri, Jun 21, 2013 at 11:44:12AM -0700, Francisco Obispo wrote:
> Unless you use some sort of shared memory system that stores its own counters on a per-thread basis, and then have another thread do a collection and aggregation of the data for reporting purposes. may sound like a crazy idea but may prevent bottlenecks in case of a large number of threads on busy servers.

Actually, we don't have threads there at all, in Auth. There are some threads in
the Xfrin and Xfrout, but just for the long-running handling, so the counters
are incremented outside of them AFAIK. The architecture for resolver was not
fixed. So speaking about atomic increments sounds little bit premature.

Also, I'm not sure if it's faster to use the (sometimes very slow) atomic
instructions, or one mutex for all the counters at once.

With regards

-- 
Anyone who goes to a psychiatrist ought to have his head examined.
		-- Samuel Goldwyn

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20130624/3effbcf7/attachment.bin>


More information about the bind10-dev mailing list