[Dnsmasq-discuss] Memory usage growing over time — possibly due to logging or caching (v2.90 / OpenEmbedded kirkstone)

Geert Stappers stappers at stappers.nl
Tue Apr 15 20:54:22 UTC 2025


On Mon, Apr 14, 2025 at 10:58:25PM +0100, Simon Kelley wrote:
> Instead of restarting dnsmasq, try deleting the log file and telling dnsmasq
> to open a new one.
> 
> 
> rm /var/log/dnsmasq.log
> killall -USR2 dnsmasq
> 
> 
> If that also causes the memory usage to fall, then you are being led astray
> by a the log file being memory mapped.

Which matches design choice "Used memory is wasted memory".


> If the memory usage doesn't fall, there might be a real memory leak.

Acknowledge on **there might be** a real memory leak.


Groeten
Geert Stappers
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list