Performance issues on Edgerouter Lite
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, MIPS64
Installation
Other (please mention in the description)
Setup
On a router, DHCP is handled by the router
AdGuard Home version
v0.107.78
Action
Normal use with ~70K DNS queries per day results in CPU use > 50%. I don't think this is new as I only notice that the VPN now cannot connect above about 1Mb/s. top shows 2 AdGuardHome process consuming most of the CPU resource:
13654 root 20 0 1446096 109812 26260 S 121.7 22.3 20634:03 AdGuardHome 13654 root 20 0 1446096 109812 26260 S 119.2 22.3 20634:06 AdGuardHome
Expected result
CPU use was under 10% and VPN connection at around 10Mb/s
Actual result
CPU is maxed out with little bandwidth available for OVPN connection.
Additional information and/or screenshots
EdgeOS 3.0.1 EdgeRouterLite
I'll try and backtrack versions to see when it appeared.
Here's a log I took earlier this month when I thought it was happening (I've been away)
.
Thank you for the log. The main issue lies in your configuration: your upstreams are set to parallel mode with 10 encrypted upstreams (DoT/DoH to Google/Cloudflare). In parallel mode, each request is sent immediately to all 10 provider servers, and on the MIPS64 EdgeRouter Lite kernel (without hardware AES support), establishing a TLS connection overloads the processor. The log shows that in 3 minutes, 1,635 incoming requests resulted in 2,873 connections to the provider servers.
To resolve this issue, switch to load_balance or fastest_addr mode and keep only 1–2 source servers. For MIPS-based devices, it’s better to use origin servers with the udp:// protocol or run a local unbound server.
You can check out the wiki on upstreams: https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#upstreams