[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ot: djbdns/daemontools



Am Freitag,  1. Dezember 2000 22:01 schrieb Brian Kifiak:
> > The data.cdb file should be cached by the os, so you should have
> > enough memory to do so
>
> no.  cdb was designed so you don't have to have enough memory to
> hold the records.
>
> http://cr.yp.to/cdb.html
>
>    "No random limits: cdb can handle any database up to 4 gigabytes.
>    There are no other restrictions; records don't even have to fit
>    into memory. Databases are stored in a machine-independent
>    format."
>
> sure it'll be faster if it's in memory.  but it doesn't have to be.

Oh, I wasn't clear. It _should_ fit into memory for perfomance, but it _need_ 
not to.
This point is important for the understanding why tinydns does not read the 
data into memory (like BIND does) and is anyway faster in usual operation.
-- 

Henning Brauer         |  BS Web Services
Hostmaster BSWS        |  Roedingsmarkt 14
hostmaster@bsws.de     |  20459 Hamburg
www.bsws.de            |  Germany