-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Constant CPU load/Spikes #2044
Comments
Well, turns out the source is straight in main.go: |
Yeah, GC in Go is not ideal at all. Anyways, that much overhead is unexpected, I see nothing like that with the default config. I guess the overhead depends on the number of alive objects, and with your config it is significantly higher |
@waffshappen could you please do one more test? What's interesting to me is which part of |
Can confirm it solves the issue. |
@szolin I'd still like to keep it, but we can call it less often for instance. Also, I don't understand why it causes that much overhead, I don't observe this on my instance. Also, this: |
My performance results table using your filtering lists on rpi:
Where:
So:
About FreeOSMemory:
About |
Well, let's make it configurable then. |
|
Please record the verbose-level log and check what happens when you see this spike. |
`2020/09/12 20:00:22 25967#559 [debug] GET /control/safesearch/status ... 2020/09/12 20:15:19 25967#1636 [debug] 176.103.130.130:53: response: ok 2020/09/12 20:15:27 25967#1644 [debug] 1.1.1.1:53: response: ok |
Do all these spikes correspond to the time when you were using the web interface to check settings? |
@ameshkov I will do some further investigation. I had those peaks last night as well without interacting with the web interface. I am not sure they are caused by AdGuard at all. I am sorry. I will do further analysis and will open a new bug report once I am certain whats causing this... |
Merge in DNS/adguard-home from 4437-rm-mem-opt to master Updates #4437. Updates #2044. Squashed commit of the following: commit d1e5520 Merge: 73a6b49 8bb9546 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 19:37:09 2022 +0300 Merge branch 'master' into 4437-rm-mem-opt commit 73a6b49 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 18:33:23 2022 +0300 all: imp log of changes commit a62efcd Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 18:27:42 2022 +0300 home: depr memory opt
Merge in DNS/adguard-home from 4437-rm-mem-opt to master Updates #4437. Updates #2044. Squashed commit of the following: commit d1e5520 Merge: 73a6b49 8bb9546 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 19:37:09 2022 +0300 Merge branch 'master' into 4437-rm-mem-opt commit 73a6b49 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 18:33:23 2022 +0300 all: imp log of changes commit a62efcd Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 18:27:42 2022 +0300 home: depr memory opt
Merge in DNS/adguard-home from 4437-rm-mem-opt to master Updates AdguardTeam#4437. Updates AdguardTeam#2044. Squashed commit of the following: commit d1e5520 Merge: 73a6b49 8bb9546 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 19:37:09 2022 +0300 Merge branch 'master' into 4437-rm-mem-opt commit 73a6b49 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 18:33:23 2022 +0300 all: imp log of changes commit a62efcd Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 18:27:42 2022 +0300 home: depr memory opt
As in previous Thread:
Originally posted by @ameshkov in #2041 (comment)
The text was updated successfully, but these errors were encountered: