Stats Shared Memory

Luiz Fernando Softov fernando at softov.com.br
Mon Jan 30 17:21:13 UTC 2017


​​
Hi there,

I create a fork from github of unbound, and made my changes to include a
Shared Memory like I said before in another mail.

I put my changes here. https://github.com/softov/unbound

This make 2 SHM instances and when there is a timer to stats-interval, this
will full fill the memory.

So others daemons are able to read those stats really fast.

I have a daemons, reading this stats each second.

Now I will make a release of this changes for my clientes.

I have ~2300 clients running my SO, called FreeBRS.
For those clients, the average of requests are between 50 and 1500 per
second.
I can get 80% of HIT.

I all clientes, the CPU consume is 0%, while using my own daemon (who use
ssl in a tcp connection, like unbound-control) the CPU increase ~3% in my
daemon and ~2,5% in unbound.


This is the right way to grab this info.
But, there is more to do about this.
Like
1 - setting variables in conf (I don't know how)
2 - reset shared memory - zerofill values
3 - A header file.h to be referenced in the binary who is reading this info

What I can do to make a pull request?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20170130/97a788c2/attachment.htm>


More information about the Unbound-users mailing list