Supporting large caches (> 4GB) in BIND?

Chris Thompson cet1 at cam.ac.uk
Mon Feb 15 22:09:36 UTC 2010


On Feb 15 2010, Shumon Huque wrote:

[...]
>But there is a hardcoded limit of 4GB (ISC_UINT32_MAX) for the
>max-cache-size parameter:
>
>bin/named/server.c:
>
>                if (value > ISC_UINT32_MAX) {
>                        cfg_obj_log(obj, ns_g_lctx, ISC_LOG_ERROR,
>                                    "'max-cache-size "
>                                    "%" ISC_PRINT_QUADFORMAT "d' is too large",
>                                    value);
>                        result = ISC_R_RANGE;
>                        goto cleanup;
>                }
>                max_cache_size = (isc_uint32_t)value;

Regardless of Shumon's particular case, this looks like something
that is going to bite more nameservers in the next few years, as
caches expand to accommodate increasing numbers of RRSIG records
(which are not small).

-- 
Chris Thompson
Email: cet1 at cam.ac.uk



More information about the bind-users mailing list