Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG - CPU 100% - Randomly #5964

Closed
4 tasks done
Freebase394 opened this issue Jul 4, 2023 · 8 comments
Closed
4 tasks done

BUG - CPU 100% - Randomly #5964

Freebase394 opened this issue Jul 4, 2023 · 8 comments
Labels
duplicate Duplicate or merged issues.

Comments

@Freebase394
Copy link

Freebase394 commented Jul 4, 2023

Prerequisites

Platform (OS and CPU architecture)

Linux/AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

AdGuard Home, version v0.107.33

Action

nslookup -debug -type=a 'www.example.com' '127.0.0.1'

RESUSULT:
adguard02:/opt/AdGuardHome# nslookup -debug -type=a 'www.google.com' '127.0.0.1'
Server: 127.0.0.1
Address: 127.0.0.1:53

Query #0 completed in 35ms:
Non-authoritative answer:
Name: www.google.com
Address: 216.239.38.120

Expected result

I expected the AdGuardHome process to run stably and normally!

Actual result

But it turns out that somehow, it has some entropy and is being used abruptly consuming all system CPU resources.
WARNING: This is my 3rd attempt, I had AdGuardHome running on my RaspberyPi3 b+, I had the version "AdGuard Home v0.107.28xx" on it and it ran smoothly and beautifully, I even had my raspbery pi on for weeks straight, no anomalies.

But from some of the versions "AdGuard Home v0.107.30xx" totally randomly, and without explanation my raspbery pi simply crashed and stopped responding[From the looks of it, it seemed to be stuck somehow, as the system was totally down because it was completely in use (all its cores being in use randomly at 100%)] I tried to reinstall multiple times, but always the same, "A few hours later, the same thing"
Since a few days ago I switched to a x64 environment "Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz".

Note: I can guarantee this single vCore is as strong or even stronger than the 4 cores of my raspberryPi 3 b+.
I've enabling the following features on the new AdGuardHome machine:
1 vCore - Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
4096 Mb(4GB) RAM
"AlpineOS --> 3.18.0"

I can prove that the maximum CPU consumptions when updating BlockLists etc... It just represents this:
This always responding and processing to more and 10 clients in house....
image

Suddenly and out of nowhere, something happens: I don't understand where the anomaly comes from:
image

Additional information and/or screenshots

My virtual machine is currently in this state:
CPU consumption status: 100%.
image
My cluster usualy is at 30ºC || = 86°F on vCore0, and now is like this:

image

@Freebase394 Freebase394 changed the title BUG - CPU 100% - After update BUG - CPU 100% - Randomly Jul 4, 2023
@Freebase394
Copy link
Author

It seems to be tested and try the fixes on edge versions here #5898 ...
Later, if fixed we can close this issue ...

@locolupo
Copy link

same issue here, thanks for reporting @Freebase394

@Freebase394
Copy link
Author

@locolupo Thank you for your post.
This proves that I am not the only human being having this problem.
Could you please post some Prints of the anomalies of your problem, like cpu status.... machine with 100% usage... print of the crash of your virtual machine etc... logs etc...please

@ainar-g
Copy link
Contributor

ainar-g commented Jul 11, 2023

@Freebase394, @locolupo, #5896 is the issue where we're tracking this. As the fix developed there has been ported to Edge and Beta channels, could any one of you check if it works for you?

@ainar-g ainar-g added the waiting for data Waiting for users to provide more data. label Jul 11, 2023
@Freebase394
Copy link
Author

Freebase394 commented Jul 11, 2023

@ainar-g Thanks! Installed Beta version using the folowing command:
Script to install a beta version:
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c beta

I'm going to leave this server running, it's being the primary DNS for my entire home network, with 7~10 devices around here on the network!
Let's see how the one behaves!
Hopefully well!
I promise to bring new feedback in a few days!

My VM properties:
image

For Beta installed just now:
All ok for now:
image

Version installed:
image

image

@Freebase394
Copy link
Author

Freebase394 commented Jul 12, 2023

Well...
@ainar-g This is for you and your team to see that the work you have done so far is working very well!

For now everything has been running "quite" stable and solid!
Now i'm using a total of rules equal to: (+/-) 6365523 on my own AdGuardHome [DNS blocklists AdGuard Home will block domains matching the blocklists]

My Hypervisor: Proxmox 8.0.3
CPU: i5-3470 CPU @ 3.20GHz (4 total cores)

My VM running:
Status: running
HA State: none
Node: pve
CPU usage: 0.04% of 2 CPU(s) (I'm only have 2 vCPU)
Memory usage: 32.00% (511.96 MiB of 1.56 GiB)
SWAP usage: 2.50% (9.99 MiB of 400.00 MiB)
Bootdisk size: 3.02% (240.61 MiB of 7.78 GiB)

image

Every time I update my lists, this is the status of the VM behavior on top of an LX container(Alpine OS Linux --> Very small distro)
It does not reach values above 30%/45% of the entire cpu!
image

Memory Consuption:
image

Network status:
image

Disk IO
image

@ainar-g
Copy link
Contributor

ainar-g commented Jul 12, 2023

Short-term CPU spikes during filter updates are to be expected, especially if there are a lot of rules. I assume, as long as the persistent 100 % CPU spike is gone, the issue can be be considered resolved by the update?

@Freebase394
Copy link
Author

Seems to be fixed.
"AdGuard Home, version v0.108.0-b.41"
All ok after 5 days running!
I will close this issue now!

@ainar-g ainar-g added duplicate Duplicate or merged issues. and removed waiting for data Waiting for users to provide more data. labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate or merged issues.
Projects
None yet
Development

No branches or pull requests

3 participants