OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: andrew_241 on April 23, 2024, 07:19:12 AM

Title: High CPU usage from dhcrelay
Post by: andrew_241 on April 23, 2024, 07:19:12 AM
Is anyone else experiencing this? dhcrelay in 24.1.6 is pegged at 100 percent usage. The NIC (igb1) is passed through to the OPNsense VM guest (running on Windows Server 2022 in Hyper-V) and has the LAN plus two VLANs running through it. 'Activity' shows that it is the LAN's dhcrelay process.
Title: Re: High CPU usage from dhcrelay
Post by: andrew_241 on April 23, 2024, 07:23:05 AM
I don't even need to be running the DHCP relay on the LAN, since the DHCP servers are on the same subnet.
Title: Re: High CPU usage from dhcrelay
Post by: franco on April 23, 2024, 12:05:43 PM
It was probably looping packets all day due to that setup?


Cheers,
Franco
Title: Re: High CPU usage from dhcrelay
Post by: andrew_241 on April 24, 2024, 05:38:02 AM
Quote from: franco on April 23, 2024, 12:05:43 PM
It was probably looping packets all day due to that setup?


Cheers,
Franco

Heh, probably, though I didn't do any packet capture to verify.
Title: Re: High CPU usage from dhcrelay
Post by: Shcshc on April 24, 2024, 06:43:57 AM
I had same problem. then I deactivated relay on same network as the dc(dhcp server) and the problem is solved


Gesendet von iPhone mit Tapatalk Pro
Title: Re: High CPU usage from dhcrelay
Post by: WM54 on April 24, 2024, 07:18:27 PM
Thank you very much - this solved my issue!
Title: Re: High CPU usage from dhcrelay
Post by: EffEnnK on May 01, 2024, 01:30:47 PM
Quote from: Shcshc on April 24, 2024, 06:43:57 AM
I had same problem. then I deactivated relay on same network as the dc(dhcp server) and the problem is solved


Gesendet von iPhone mit Tapatalk Pro

I have exactly the same problem: dhcrelay uses 100% CPU and not relaying DHCP packets. I have multiple VLANs with Microsoft DHCP Failover setup, this was worked great before 24.1.6, and nothing was changed in config. I am using Hyper-V Server, OPNsense is running in a virtual machine with multiple interfaces. DHCP Guard was not enabled at all.
Title: Re: High CPU usage from dhcrelay
Post by: franco on May 01, 2024, 02:16:27 PM
As I said 100% CPU means you are looping DHCP packets.


Cheers,
Franco
Title: Re: High CPU usage from dhcrelay
Post by: derhelge on May 03, 2024, 02:22:15 PM
Same issue with Business Edition 24.4 and ESXi virtualization :-\ Looping packages sounds right...  have imported a  snapshot version from before and will investigate this next week. I don't know what I need to reconfigure yet.
Title: Re: High CPU usage from dhcrelay
Post by: franco on May 27, 2024, 01:16:06 PM
https://github.com/opnsense/core/issues/7471#issuecomment-2133085251

feedback on the latest binary is welcome...