|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [OT] CDB performance
From: Andrzej Kukuła (akukula
gmail.com)
Date: Tue Jul 12 2005 - 02:15:15 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/11/05, Michael Tokarev <mjt
tls.msk.ru> wrote:
> Andrzej Kukuła wrote:
> > Hello,
> >
> > I just remembered an interesting topic on CDB performance problem
> > related to mmap()ing and munmap()ing the database on every query.
> > Worth reading.
> >
> > <http://msgs.securepoint.com/cgi-bin/get/djbdns-0404/34.html>
>
> By the way, Dan's (older) CDB implementation had no mmap support
> at all, it did open, several seek+read, close for every lookup
> (when used in, say, qmail-smtpd or the like). This approach
> does not have the downsides of mmap()/munmap() overhead.
Yes, and you can still use it, just change x=mmap(...) into x =
(char*) 0 and it'll work the way you describing.
BTW Are there ways/chances to overcome 4GB CDB limit?
Regards,
Andrzej Kukula
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]