Re: [Zinq-general] Patch to open data.cdb no more than once per second

Peter Pentchev <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[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... :)

G'luck,
Peter

-- 
Peter Pentchev	[email protected]    [email protected]    [email protected]
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Do you think anybody has ever had *precisely this thought* before?
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAknMieAACgkQ7Ri2jRYZRVO/aQCePA2OuLd9fcE2kO+EyUrFWKKF
O28An2m1t5xB0hDsj4Y95Dis+RuFIkM6
=MXho
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.