Re: [Zinq-general] Patch to open data.cdb no more than once per second
Mark Johnson <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
2009/3/27 Peter Pentchev <[email protected]>: > On Fri, Mar 27, 2009 at 12:40:50AM +0000, Jose Celestino wrote: >> Words by Mark Johnson [Thu, Mar 26, 2009 at 07:19:19PM -0500]: >> > On Thu, Mar 26, 2009 at 7:07 PM, Jose Celestino <[email protected]> wrote: >> > > Words by Mark Johnson [Thu, Mar 26, 2009 at 06:55:39PM -0500]: >> > >> >> > >> The idea is to minimize the per query overhead. I don't know that >> > >> trading a mmap/munmap per query for a stat per query would be that >> > >> great of a trade. Reopening data.cdb only upon receipt of, say, a >> > >> SIGHUP, would be even better, but that would *really* surprise people. >> > > >> > > Why would іt surprise? It is actualy a good idea. >> > >> > It's not how people expect djbdns to behave. >> >> Well, maybe, but changing data and makeing would be transparent for the >> user if make did the HUP after the cdb was in place. > > Well, maybe, but changing data on a remote server and rsync'ing wouldn't :) > Or changing data and running tinydns-data directly from another interface, > or directly generating the cdb file through another cdb-format-aware > tool, or... :) Exactly. There are perhaps ways to address these scenarios, but this is really a bigger change than I want to make at the moment.