High number of Idle Wake Ups (top app)
Please answer the following questions for yourself before submitting an issue.
- [x] I am running the latest version
- [x] I made sure all content blockers are enabled in Safari settings
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
AdGuard version
2.1.4
Environment
- OS: 15.7.5 (24G624)
- Safari version: Release 240 (WebKit 20625.1.10.19.3)
What filters do you have enabled?
AdGuard Base filter
Issue Details
Steps to reproduce:
- open Safari
- do nothing
- see high number of Idle Wake Ups in Activity Monitor
Expected Behavior
Show a low number like all other small utilities that also run in background
Actual Behavior
Top Idle Wake Ups app
Screenshots
Screenshot 1:
Additional Information
No response
Hello @mailinglists35
Thank you for bringing this to our attention I have forwarded the information to the development team for further investigation
Hello @mailinglists35!
Please answer the question
Is the “login item” setting for AdGuard mini enabled or disabled on your device?
@IaroslavKhvorostenko I'm also experiencing this, and my login item is set to enabled.
Hello @MineGene @mailinglists35
In order to investigate the issue we'll need AG Mini logs. Please do the following:
-
Go to AG Mini Setting and enable Debug logging.
-
Reproduce the problem and remember the time of reproducing.
-
Click Export logs on the Settings tab. If you can't export the logs you can get them in ~/Library/Group Containers/TC3Q7MAJXF.com.adguard.mac/Library/Logs/com.adguard.safari.AdGuard/
-
Send this file to [email protected]:
- include
[agmini]keyword andISSUE_NUMBERin the subject of your email - specify the exact time when the issue occurred
- include
@IaroslavKhvorostenko understood.
It would be useful to know what a healthy rate of wake ups are.
Would you be able to provide a healthy wake up range, and what would be deemed excessive by AdGuard Mini's standards?
Hello @MineGene
We're currently looking into this issue to get a clearer picture of what the expected numbers should be. Our goal is to reduce these values, as there are definitely too many wake-ups happening right now.
To give you an idea, anything over 150 wake-ups while in standby mode is excessive.
Providing your logs will give us valuable data and really help us sort this out much faster.
@IaroslavKhvorostenko debug logs have been sent.
Closely monitoring the idle wake ups of all other processes on my machine, I'd even call 150 excessive in standby.
Every background process on my machine has under 10 idle wake ups, with only agmini, kernel_task, Safari, Mail, and the Activity Monitor using more as they're currently active. agmini tends to idle at a constant 77-80, which definitely should not be the case.
Below is a screenshot of my Activity Monitor showing idle wake ups ranked in descending order, with agmini being the highlighted blue process.
- Go to AG Mini Setting and enable Debug logging.
started logging. But: wouldn't this toggle alone add up even more idle wake ups? (just wondering)
@MineGene Thank you for sending the logs and providing additional feedback.
@mailinglists35 It's true that the number of wake-ups will be higher in debug mode. We've actually already isolated the issue, and our team is currently looking into it. Because of this, there's no need for you to send your logs anymore
Hello!
The fix will be available starting from version 2.3.
@MineGene , I have also sent a test build to verify this issue. In standby mode, the number of wakeups was around 0–1. I sent the download link to your email address.
@mailinglists35 , unfortunately, I don't have your email address. If you would also like to test the new build, please provide your email, and I will send it to you
Any feedback at your earliest convenience would be great
Hello!
The fix will be available starting from version 2.3.
@MineGene , I have also sent a test build to verify this issue. In standby mode, the number of wakeups was around 0–1. I sent the download link to your email address.
@mailinglists35 , unfortunately, I don't have your email address. If you would also like to test the new build, please provide your email, and I will send it to you
Any feedback at your earliest convenience would be great
provided via email, got the build. it crashed, I allowed submiting the report, I also pasted the crash data that macOS displays when a crash occurs (the "Send to apple" window). let me know if it reached your side.
Hi @IaroslavKhvorostenko, thanks.
I've been running the build in the background with my MBP lid closed since installing agmini. Unfortunately, there doesn't seem to be any improvement—in fact, idle wake-ups have increased when agmini isn't actively being used.
As shown below, it's been running for a couple of hours and is still idling around ~118. This screenshot was taken right after opening the MBP lid following that period of inactivity.
Hello @mailinglists35 @MineGene Thank you for the feedback. I will forward this information to our development team
I may have found a specific trigger for this issue.
In my case, the high idle load happens when the Safari extension "AdGuard for Safari" is enabled, but AdGuard Mini is not activated.
The Safari toolbar popup shows (translated from German, so I don't know exactly if that is the correct wording in English):
AdGuard Mini not activated
While it is in this state, I see constant Safari/AdGuard-related CPU activity and high idle power draw.
After clicking the button in the Safari popup to activate AdGuard Mini, the load drops immediately.
Before activating AdGuard Mini:
- Idle power draw on Mac: ~38 W
- Constant Safari/AdGuard-related CPU activity
After activating AdGuard Mini:
- Idle power draw: ~18 W
- No relevant background load
This may already be covered by the planned fix for v2.3, but I wanted to add this because it looks like a reproducible half-activated state rather than only general idle wakeups.
Hello @jimmy-ck The behavior described is similar to this. This fix will be available in version 2.2.1 very soon
@IaroslavKhvorostenko Ah, yes. I missed that one, sorry. Thanks that this get's fixed soon!
Hi @mailinglists35 We're preparing this build, right now. I'll write the link in this thread. Thanks!
Hi @dmitriivqa39 @IaroslavKhvorostenko, this remains an issue for me on the latest TestFlight beta.
I'm seeing a constant of ~150 idle wake ups since the latest beta became available, when checking out its activity in the Activity Monitor.
Is this in line with your expectations, or should it be lower?
Let's close this issue after the task will be deployed