[prev in list] [next in list] [prev in thread] [next in thread]
List: unbound-users
Subject: Re: Unbound 1.6.1rc2 prerelease
From: Luiz Fernando Softov via Unbound-users <unbound-users () unbound ! net>
Date: 2017-02-14 9:57:10
Message-ID: CAKy26iMO93G6xr1+PPr_9RiF+eM1Jhi5PgULgdTffHodjZ3_GA () mail ! gmail ! com
[Download RAW message or body]
Hi,
I don't know if it's relevant, but in January i have sent a message to the
mailing list
about this.
http://unbound.net/pipermail/unbound-users/2017-January/004626.html
> Yes, I would like to get the diff file for that patch. Lower CPU usage
> is nice, and SHM is an interesting construction. Can you send me the
> diff; or link to the github pull/push thingy that contains the diff (or
> the newest diff if you updated it recently)?
. . .
I put my changes here. https://github.com/softov/unbound
This branch is 1 commit ahead, 12 commits behind NLnetLabs:master.
But, if you need, I can make the update.
> Depending on how invasive this is, I can put it in the mainline code
> (optional) or it can be a patch that is available to other users in the
> contrib directory.
As I said before.
This make 2 SHM instances and I am using the timer to stats-interval to
fill the memory.
I have some daemons, reading this stats with shmget each second.
It's been a few weeks since I launched the last release with
this changes for my clients.
I have ~2400 clients running my SO, called FreeBRS - Free BrByte Routing
System.
Which is a release based on FreeBSD.
For those clients, the average of requests are between 50 and 1500 per
second.
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.
-- -- -- -- -- -- -- -- -- -- -- --
> Although there may be an rc3 because of pkg-config vs autoconf problems,
> I don't want to introduce features in rc3; so it'd be there for the
> subsequent release.
I thing there is more to do about, like.
1 - setting variables in conf (I don't know how)
* shm-key: number
* shm-enabled: yes or no
Maybe
* shm-interval: number, if 0 or null shm will be filled in the timer
of stat-interval, like i have made, > 0 will be created a reserved timer
and I don't know how to interact with the base or how much I can change
because, you know using threads, this can create problems
2 - reset shared memory - zerofill values
3 - A header file.h to be referenced in the binary who is reading this info
like a file with the struct and etc.
For now, I only need the conf options, and I don't know how to make those.
It will be my pleasure to help you in some way.
The Unbound have been helping the community a lot.
Here in Brazil, its used by about 80% of the ISPs.
Thanks for the reply.
Best regards, Softov
[Attachment #3 (text/html)]
<div dir="ltr"><div><font face="monospace, monospace">Hi,</font></div><div><font \
face="monospace, monospace">I don't know if it's relevant, but in January i \
have sent a message to the mailing list</font></div><div><font face="monospace, \
monospace">about this.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace"><a \
href="http://unbound.net/pipermail/unbound-users/2017-January/004626.html">http://unbo \
und.net/pipermail/unbound-users/2017-January/004626.html</a></font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, \
monospace">> Yes, I would like to get the diff file for that patch. Lower CPU \
usage</font></div><div><font face="monospace, monospace">> is nice, and SHM is an \
interesting construction. Can you send me the</font></div><div><font \
face="monospace, monospace">> diff; or link to the github pull/push thingy that \
contains the diff (or</font></div><div><font face="monospace, monospace">> the \
newest diff if you updated it recently)?</font></div><div><font face="monospace, \
monospace">. . .</font></div><div><font face="monospace, monospace">I put my changes \
here. <a href="https://github.com/softov/unbound">https://github.com/softov/unbound</a></font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, \
monospace">This branch is 1 commit ahead, 12 commits behind \
NLnetLabs:master.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">But, if you need, \
I can make the update.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">> \
Depending on how invasive this is, I can put it in the mainline \
code</font></div><div><font face="monospace, monospace">> (optional) or it \
can be a patch that is available to other users in the</font></div><div><font \
face="monospace, monospace">> contrib directory.</font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, \
monospace">As I said before.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">This make 2 SHM \
instances and I am using the timer to stats-interval to fill the \
memory.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">I have some \
daemons, reading this stats with shmget each \
second.</font></div><div><font face="monospace, monospace">It's been a few \
weeks since I launched the last release with this \
changes for my clients.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">I have ~2400 \
clients running my SO, called FreeBRS - Free BrByte Routing \
System.</font></div><div><font face="monospace, monospace">Which is a release based \
on FreeBSD.</font></div><div><font face="monospace, monospace">For those clients, the \
average of requests are between 50 and 1500 per second.</font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I \
all clientes, the CPU consume is 0%, while using my own \
daemon,</font></div><div><font face="monospace, monospace"> who use ssl in a tcp \
connection like unbound-control.</font></div><div><font face="monospace, \
monospace">The CPU increase ~3% in my daemon and ~2,5% in \
unbound.</font></div><div><font face="monospace, monospace">-- -- -- -- -- -- -- -- \
-- -- -- --</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">> Although \
there may be an rc3 because of pkg-config vs autoconf \
problems,</font></div><div><font face="monospace, monospace">> I don't want to \
introduce features in rc3; so it'd be there for the</font></div><div><font \
face="monospace, monospace">> subsequent release.</font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I \
thing there is more to do about, like.</font></div><div><font face="monospace, \
monospace">1 - setting variables in conf (I don't know \
how)</font></div><div><font face="monospace, monospace">* shm-key: \
number</font></div><div><font face="monospace, monospace">* shm-enabled: yes or \
no</font></div><div><font face="monospace, monospace">Maybe</font></div><div><font \
face="monospace, monospace">* shm-interval: number, if 0 or null shm will be filled \
in the timer</font></div><div><font face="monospace, monospace"> of stat-interval, \
like i have made, > 0 will be created a reserved timer</font></div><div><font \
face="monospace, monospace"> and I don't know how to interact with the base or \
how much I can change</font></div><div><font face="monospace, monospace"> because, \
you know using threads, this can create problems</font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">2 \
- reset shared memory - zerofill values</font></div><div><font face="monospace, \
monospace">3 - A header file.h to be referenced in the binary who is reading this \
info</font></div><div><font face="monospace, monospace">like a file with the struct \
and etc.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">For now, I only \
need the conf options, and I don't know how to make those.</font></div><div><font \
face="monospace, monospace"><br></font></div><div><font face="monospace, \
monospace">It will be my pleasure to help you in some way.</font></div><div><font \
face="monospace, monospace">The Unbound have been helping the community a \
lot.</font></div><div><font face="monospace, monospace">Here in Brazil, its used by \
about 80% of the ISPs.</font></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">Thanks for the \
reply.</font></div><div><font face="monospace, monospace">Best regards, \
Softov</font></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic