Memory consumtion up but not down

I have just updatet to 201. And I was curious to try the new DNS firewall. So I activated the sections Advertising, Malware, Phishing and Pornography. Memory consumtion then immediately went up to consume almost all my 4 GB.

I thought “ooops, that’s pretty high” so I deactivated the first category, but memory consupmtion didn’t go down. So I deactivated all of them (no category left activated anymore) but memory consumption doesn’t drop at all.

Is this expected behaviour? I’ll try a reboot after office hours to see if a fresh reboot will solve it.

I can confirm this. I suppose there is an issue in the new function fast_reload, that is used by IPFire to minimize downtime of DNS server. fast_reload operates on a local copy of the config. After update the copy or old config isn’t freed.
Only cure is IMO to restart unbound at a time downtime of DNS of ~2 min doesn’t matter.

I noticed this too.

Could this be a kernel ram handling has changed?

Its using more now with 201

201

I think the main change between 200 and 201 is the DNS Firewall. Because this means more possible changes to the DNS configuration, each yielding a reload.
The ‘reload’ operation makes DNS unresponsive during processing. With large configs, which are a consequence of blocking lists, this downtime is 1-2 min. This isn’t acceptable in many installations.
To circumvent this, a new operation ‘fast-reload’ was implemented in unbound. This operation is used in IPFire CU201 to allow the feature of DNS Firewall.
This operation is new to unbound and may have issues in memory handling. I posted a question in the unbound community. Still awaiting an answer.

In the meantime, I only see my suggestion of restart as remedy. It is working in my system.

See the IPFire DNS Firewall documentation on memory usage.

https://www.ipfire.org/docs/configuration/firewall/dns#memory-consumption

Thanks, I’ve read this. I activated 4 lists and the 4 GB were gone. Guess next time I buy hardware I’ll invest more into RAM :+1:

BTW: I restarted the firewall and RAM-usage was back to normal. So I think that in order to release the memory from unselected categories, one needs to reboot the system. Maybe next time I’ll try to wait 24 or 48 hours to see if it drops after some time even without reboot. I am patient, but only for a very short period of time :slight_smile:

My firewall reboots every week.

As seen buy the saw tooth pattern.

I have 8 gig of ram so not a problem.

Nice to see it doing something.