AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Performance issues on Edgerouter Lite

Open Blackbird399 opened this issue 3 months ago • 2 comments

Prerequisites

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.

Blackbird399 avatar Aug 26 '26 11:08 Blackbird399

Here's a log I took earlier this month when I thought it was happening (I've been away)

adguard.log

.

Blackbird399 avatar Aug 26 '26 18:08 Blackbird399

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

sofvaskina avatar Aug 27 '26 09:08 sofvaskina