Significant memory usage

Philip Prindeville philipp_subx at redfish-solutions.com
Mon Jun 9 04:20:35 UTC 2025


I’ll try to get a smoking gun.

How do you configure an explicit number of bytes with max-cache-size?

The manpage says:

max-cache-size ( default | unlimited | <sizeval> | <percentage> );


but doesn’t explain the syntax of “sizeval”.

I tried “1638M” but that doesn’t seem to have an effect.



> On Jun 8, 2025, at 10:16 PM, Ondřej Surý <ondrej at isc.org> wrote:
> 
> I don't see anything wrong with the memory in the attached file - 13MB doesn't seem to be causing any havoc.
> 
> And it roughly matches what I am seeing here with fresh named instance on 64-bit machine:
> 
> $ smem -P name[d]
>  PID User     Command                         Swap      USS      PSS      RSS
> 61387 ondrej   /home/ondrej/Projects/bind9        0     9684    11944    18628
> 
> Can you send one when you think there's a runaway memory problem? Because this one seems to be sane:
> 
> /statistics/memory/contexts/context/name=OpenSSL
> /statistics/memory/contexts/context/inuse=517912
> /statistics/memory/contexts/context/name=uv
> /statistics/memory/contexts/context/inuse=4864
> /statistics/memory/contexts/context/name=libxml2
> /statistics/memory/contexts/context/inuse=401336
> /statistics/memory/contexts/context/name=named_log
> /statistics/memory/contexts/context/inuse=9512
> /statistics/memory/contexts/context/name=main
> /statistics/memory/contexts/context/inuse=1796991
> /statistics/memory/contexts/context/name=loop-00000000
> /statistics/memory/contexts/context/inuse=2037860
> /statistics/memory/contexts/context/name=loop-00000001
> /statistics/memory/contexts/context/inuse=2005796
> /statistics/memory/contexts/context/name=helper-00000000
> /statistics/memory/contexts/context/inuse=0
> /statistics/memory/contexts/context/name=helper-00000001
> /statistics/memory/contexts/context/inuse=0
> /statistics/memory/contexts/context/name=zonemgr-mctxpoo
> /statistics/memory/contexts/context/inuse=370549
> /statistics/memory/contexts/context/name=zonemgr-mctxpoo
> /statistics/memory/contexts/context/inuse=341440
> /statistics/memory/contexts/context/name=clientmgr
> /statistics/memory/contexts/context/inuse=836648
> /statistics/memory/contexts/context/name=clientmgr
> /statistics/memory/contexts/context/inuse=962224
> /statistics/memory/contexts/context/name=cache
> /statistics/memory/contexts/context/inuse=1513124
> /statistics/memory/contexts/context/name=cache_heap
> /statistics/memory/contexts/context/inuse=49264
> /statistics/memory/contexts/context/name=ADB
> /statistics/memory/contexts/context/inuse=1848966
> /statistics/memory/contexts/context/name=ADB_dynamic
> /statistics/memory/contexts/context/inuse=147632
> /statistics/memory/contexts/context/name=cache
> /statistics/memory/contexts/context/inuse=38586
> /statistics/memory/contexts/context/name=cache_heap
> /statistics/memory/contexts/context/inuse=112
> /statistics/memory/contexts/context/name=ADB
> /statistics/memory/contexts/context/inuse=664
> /statistics/memory/contexts/context/name=ADB_dynamic
> /statistics/memory/contexts/context/inuse=196784
> /statistics/memory/summary/InUse=13080208
> 
> 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.
> 
>> Here’s my statistics-channel output:
>> 
>> <named-stats.xml>



More information about the bind-users mailing list