Significant memory usage

Ondřej Surý ondrej at isc.org
Mon Jun 9 04:17:44 UTC 2025


Yes, there's no math involved, it just honors the limit.

FTR you can also say:

max-cache-size 2GB;

You don't have to specify it to the last byte.

Ondrej
--
Ondřej Surý (He/Him)
ondrej at isc.org

My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours.

> On 9. 6. 2025, at 6:12, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
> 
> Odd. I tried:
> 
> max-cache-size 1717986918;
> 
> and restarted and I don’t see anything in the logs about it.  But I did when I used a percentage.
> 
> 
> 
>> On Jun 8, 2025, at 10:02 PM, Ondřej Surý <ondrej at isc.org> wrote:
>> 
>> The 1.7GB is what the system is reporting. That’s why I asked as I’ve seen OpenWRT reporting weird or no values before.
>> 
>> 171MB cache is little on a low side and negative effects from overmem LRU cleaning will going to hurt the performance.
>> 
>> I would suggest to set a fixed size for the cache - 1.6GB-2GB should be more than enough for your purposes.
>> 
>> Ondrej
>> --
>> Ondřej Surý — ISC (He/Him)
>> 
>> My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours.
>> 
>>> On 9. 6. 2025, at 5:45, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
>>> 
>>> Jun  8 21:34:08 OpenWrt named[8106]: /etc/bind/named.conf:42: 'max-cache-size 10%' - setting to 171MB (out of 1714MB)
>>> 
>>> but no idea where the 1741MB that it is basing that off of is coming from.
>> 
> 



More information about the bind-users mailing list