djbdns
[Top] [All Lists]

64bit dnscache

To: dns@list.cr.yp.to
Subject: 64bit dnscache
From: Jeremy Kister <djb-dns@jeremykister.com>
Date: Sun, 04 Feb 2007 03:22:38 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
I have a need to run dnscache with more than 4GB memory.

I've got a Solaris 9 machine on a Sun Fire V215 dual cpu with 10GB RAM.

I appended "-m64" to both conf-cc and conf-ld, changed cache.c's
cachesize max to 33285996544 and compiled -- everything seemed to
compile fine.

But I get an error whenever at (or above):

# grep . DATALIMIT CACHESIZE
DATALIMIT:4294967296
CACHESIZE:4000000000

dnscache: fatal: not enough memory for cache of size 4000000000

I thought it might automagically work, but I was apparently wrong.

Google's got some info about a patch for tinydns running 64bit, but i didnt see anything for dnscache.

Does anyone have tips to run dnscache with more than 4GB ram and/or compiled 64bit?

--

Jeremy Kister
http://jeremy.kister.net./

<Prev in Thread] Current Thread [Next in Thread>