OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: adk20 on December 31, 2022, 10:09:11 AM

Title: Static DHCPv4 hogging memory?
Post by: adk20 on December 31, 2022, 10:09:11 AM
Hi forum,

I am on 22.7.10_2. Yesterday, I configured some static DHCPv4 mappings. With every entry in the mapping table, my memory use increased. After having created three entries, something had hogged all my free memory (6GB) and filled up my entire swap.

Rebooting fixed the issue and everything was back to normal.

Creating more static mapping entries reliably reproduced the issue.

Is this a known bug?

Regards,
adk
Title: Re: Static DHCPv4 hogging memory?
Post by: EdwinKM on December 31, 2022, 10:58:34 AM
i do not see it
https://github.com/opnsense/core/issues?q=is%3Aissue+is%3Aopen+dhcp
Title: Re: Static DHCPv4 hogging memory?
Post by: Vilhonator on January 01, 2023, 01:43:08 PM
Culprit was more likely a IDS/IDP or other resource hungry services being active as well and all clients accessing DNS and internet at same time.

It's quite normal if it doesn't happen often and affect your network in any way and happens in specific situations (like when all clients are most active). If it happens often despite rebooting, then I would start digging deeper into it.

Just keep an eye on it, if with just average usage you face same issue within next few days and your network starts to get affected by it, it is worth looking deeper.
Title: Re: Static DHCPv4 hogging memory?
Post by: Vilhonator on January 01, 2023, 02:13:56 PM
It's also worth noting, that if you are running Maltrail, it is better to disable it.

Maltrail uses by default 10% of available RAM, which is quite a bit for firewall with 6GB RAM. So I would recommend not using it.

DHCP alone hardly would cause RAM usage to maximum, but services like Surricata and proxy can