[Dnsmasq-discuss] Unseen cache limit?
Lonnie Abelbeck
lists at lonnie.abelbeck.com
Tue Jun 2 01:03:21 BST 2015
Robert,
Looking at the code there is an upper limit of 10000 for --cache-size
-- src/option.c --
case 'c': /* --cache-size */
{
int size;
if (!atoi_check(arg, &size))
ret_err(gen_err);
else
{
/* zero is OK, and means no caching. */
if (size < 0)
size = 0;
else if (size > 10000)
size = 10000;
daemon->cachesize = size;
}
break;
}
--
I'm sure Simon has a good reason for that upper limit. Possibly a cache-size of 50,000 is beyond the design goal of dnsmasq.
Lonnie
On Jun 1, 2015, at 6:21 PM, Robert Smith <twopoint71 at gmail.com> wrote:
> Hi,
>
> I wonder if there is some sort of internal limit on caching?
>
> I set cache-size=50000, restarted dnsmasq and the limit
> according to the caching service is 10000
>
> # kill -10 10150; tail -n5 /var/log/messages | egrep 'cache size'
> Jun 1 19:18:41 dnsmasq1 dnsmasq[10150]: cache size 10000, 0/2660
> cache insertions re-used unexpired cache entries.
>
> Thanks for your attention to this matter,
> Robert
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
More information about the Dnsmasq-discuss
mailing list