Performance of DLZ skeleton

Meng Zhang <[email protected]> Mon, 5 Jan 2015 16:17:51 -0500
Newsgroups gmane.network.dns.bind9.dlz
Message-ID <[email protected]>
--===============0373506860598883400==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_7436959A-9E82-4E2F-91DF-5A843C79F778"


--Apple-Mail=_7436959A-9E82-4E2F-91DF-5A843C79F778
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


Hi, @there

I=E2=80=99m implementing one DLZ driver for mongodb, but following is =
some concern about the performance of DLZ skeleton itself.

Basically, here is what I do

1. for the findzone callback
simply, return ISC_R_SUCCESS.

2. for the lookup callback, hard-code an SOA anwser there.
dns_sdlz_putrr(lookup,"SOA",3600,"ns-us.my-domain.org. =
admin.my-domain.org. 2010070801 3600 600 86400 3600");
return ISC_R_SUCCESS;

3. when registering the driver with the flag DNS_SDLZFLAG_THREADSAFE, =
the thruput is only 4476.909199 QPS
but once getting rid of DNS_SDLZFLAG_THREADSAFE, the throuput can reach =
12496.515034 QPS

The funny thing is that if I choose to use zone file implementation, the =
thruput can be 51273.505698 QPS.

I'm trying to understand what the performance penalty is within DLZ =
framework.

Any feedback is welcome!


Thanks

Regards,
Meng



--Apple-Mail=_7436959A-9E82-4E2F-91DF-5A843C79F778
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D""><br class=3D""></div><div class=3D""><font =
face=3D"Menlo" class=3D"">Hi, @there</font></div><div class=3D""><br =
class=3D""></div><div style=3D"margin: 0px;" class=3D""><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D"">I=E2=80=99=
m implementing one DLZ driver for mongodb, but following is some concern =
about the performance of DLZ skeleton itself.</font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D""><br =
class=3D""></font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D"">Basically, here is what I do</font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D""><br =
class=3D""></font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D"">1. for the findzone callback</font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D"">simply, =
return ISC_R_SUCCESS.</font></div><div style=3D"margin: 0px;" =
class=3D""><font face=3D"Menlo" class=3D""><br =
class=3D""></font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D"">2. for the lookup callback, hard-code an SOA =
anwser there.</font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D"">dns_sdlz_putrr(lookup,"SOA",3600,"<a =
href=3D"http://ns-us.my-domain.org" class=3D"">ns-us.my-domain.org</a>. =
<a href=3D"http://admin.my-domain.org" class=3D"">admin.my-domain.org</a>.=
 2010070801 3600 600 86400 3600");</font></div><div style=3D"margin: =
0px;" class=3D""><font face=3D"Menlo" class=3D"">return =
ISC_R_SUCCESS;</font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D""><br class=3D""></font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D"">3. =
when registering the driver with the flag DNS_SDLZFLAG_THREADSAFE, the =
thruput is only 4476.909199 QPS</font></div><div style=3D"margin: 0px;" =
class=3D""><font face=3D"Menlo" class=3D"">but once getting rid of =
DNS_SDLZFLAG_THREADSAFE, the throuput can reach 12496.515034 =
QPS</font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D""><br class=3D""></font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D"">The =
funny thing is that if I choose to use zone file implementation, the =
thruput can be 51273.505698 QPS.</font></div><div style=3D"margin: 0px;" =
class=3D""><font face=3D"Menlo" class=3D""><br =
class=3D""></font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D"">I'm trying to understand what the performance =
penalty is within DLZ framework.</font></div><div style=3D"margin: 0px;" =
class=3D""><font face=3D"Menlo" class=3D""><br =
class=3D""></font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D"">Any feedback is welcome!</font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" class=3D""><br =
class=3D""></font></div><div style=3D"margin: 0px;" class=3D""><font =
face=3D"Menlo" class=3D""><br class=3D""></font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" =
class=3D"">Thanks</font></div><div style=3D"margin: 0px;" class=3D""><font=
 face=3D"Menlo" class=3D""><br class=3D""></font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" =
class=3D"">Regards,</font></div><div style=3D"margin: 0px;" =
class=3D""><font face=3D"Menlo" class=3D"">Meng</font></div><div =
style=3D"font-family: Menlo; margin: 0px;" class=3D""><br =
class=3D""></div></div><div class=3D""><br class=3D""></div></body></html>=

--Apple-Mail=_7436959A-9E82-4E2F-91DF-5A843C79F778--


--===============0373506860598883400==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
--===============0373506860598883400==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bind-dlz-testers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers

--===============0373506860598883400==--