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 Usage and Disk Write #617
Comments
Hi, this issue with the high CPU usage is happening with me too. Hardware: iKoolCore R1 |
Hi, I'm running into both the high CPU and Disk writing issue. Hardware: Synology -I've also observed that it's particularly bad when viewing the Dashboard and Results page. Thanks! |
I can literally hear the NAS hard drives work when i open the web ui. |
There is some significant overhead occurring right now while running the task scheduler and queue. I've got those improvements scheduled for v0.16.0 which I'll add this issue to so the testing is done. |
Also worth noting, the spike on the hour are the speedtests running as a part of your schedule. Ookla's Speedtest CLI uses a lot of resources when running. |
Hi, thanks for the information, but I'm sure this doesn't apply to me. My speedtests are scheduled to run while I'm sleeping. Fortunately when I close the tab/browser that is showing the dashboard or results page, the cpu drops within a few seconds. Thanks for investigating this! |
@alexjustesen Thank you very much. If I can help in any way, I'm at your disposal. |
I made some small changes in the release I just tagged, if you wouldn't mind letting me know if this improves CPU usage that'd be awesome. https://github.com/alexjustesen/speedtest-tracker/releases/tag/v0.11.17 |
If it helps for some reason (because it seems like frontend is involved): I'm on Firefox with Manjaro Linux. |
@SkoricIT do you mind also testing with polling disabled? I updated the docs with a new Environment Variables page to help you out |
Hey Alex, I haven't had any issues on the last few days with the old version, and to be honest I haven't checked the web GUI of the on the past 4 days. Just saw the notifications on the thread and I updated my docker image, I'll keep the tab open to verify if it is a front-end related issue and I'll let you know if anything changes. I can't point which system process is hanging due to the VM completely freezing when the issue is happening, even the SSH is unresponsive. I also increased the VM cores from 2 to 3 (I wan't to be able to connect to the VM when the issue happens) and here's my docker-compose.yml:
|
I set both options to false, which seems to have reduced a lot of requests but it's somehow still polling: Peek.2023-06-10.15-44.mp4See if you can tell when i change the tab in the browser. 🙂 I would be happy without any polling and optionally a simple JS refresh trigger or something. 🙂 |
Hmmm... now that you said Alex it makes sense, I set the PUID and PGID as 1000 following the instructions at I'll fix it up and let you guys know. |
Hmm, just checked Alex and ignore my last comment, the ids are correct.
|
@alexjustesen Maybe we can have an option to just completely disable auto-update (have static pages) and only refresh on button press or reload? |
You can disable polling through the env vars btw: https://docs.speedtest-tracker.dev/getting-started/environment-variables |
Have disabled this a while ago. environment:
- DASHBOARD_POLLING=false
- RESULTS_POLLING=false |
@alexjustesen Even though i have above in my environment this still happens: Peek.2023-08-25.16-22.mp4 |
@SkoricIT one contributing factor could be that I left |
nvm the issue is open in #701 |
i also noticed high constant cpu usage compared to all my other containers. all this app does is schedule to run once a day during off hours to check the internet speed, and keep a log for it. if you want u can even be sent an alert. but why is the cpu constantly high? hopefully there is a fix :( |
This comment has been minimized.
This comment has been minimized.
@imcdona Can you please post proof of your allegations? Thanks! |
@imcdona Bro, do you have any proof of your claim? See, you can inspect any docker image (even the pre-built ones) on the dockerhub website... also dockerhub scans the images for malwares and vulnerabilities... |
You did? If you did definitely didn't get anything so make sure you follow https://github.com/alexjustesen/speedtest-tracker/security/policy to report issues. I take these allegations pretty seriously so proof is required and generally speaking it's best to reach out to the dev and allow them to fix any security issues before posting about it. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Please send this again, I've had no other reports of malware in the image or the image Speedtest Tracker is based off of. Additionally please let me know what your build process was in that email so I can attempt to re-produce it. Edit: comment was hidden so that it can be researched per the sec guidelines. |
Why did you mark the comment where I explained the issue along with evidence that it's infected with perctl as a "duplicate" (so it's hidden and nobody can see the evidence I provided) and then request I send you an email with the exact same details I provided in the comment you hid from everyone? Why do you feel the need to hide the fact it's infected with perfct? What does that have to do with "sec guidelines"? |
I have a procedure for security related issues that needs to be followed to ensure proper research can be conducted and for the safety of other users.
As far as communication timeline goes:
I'm not hiding anything about the issue or the code, it's open source. If you have concerns about code being hidden you can see the entire history of the application under releases. This will be the last ask to please send an email with the information in detail above so that research can be conducted. FAQ
I'm happy to have follow up discussions (post them in q&a under discussions) on general security practices but let's keep the discussion on this issue to the constant reads/writes which was a result of polling on the dashboard when kept open. |
If perctl isn't in the source code then it's being added during the image build process. Out of an abundance of caution, why not remove the image and suggest users build the image from source? The safety of users is paramount, right? |
@coanghel high resource usage should be a non-issue while using the new LSIO image. If someone on this thread can verify what I'm seeing I'd like to close this out. |
@alexjustesen I will check it out with a fresh instance. |
@alexjustesen Seems fixed for me, even with enabled polling and everything it stays at about 0.1 - 0.34 percent CPU. On leading dash it jumps to 65 percent for a second. I think it looks very good now. Thanks! |
Thanks for confirming I think we can close this out! |
Describe the bug
Speedtest-Tracker constantly running a process resulting in a small, but non-zero, amount of disk write and cpu usage.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No disk write and minimal CPU usage when not performing a speed test.
Environment (please complete the following information):
Screenshots
Logs
If applicable, check the logs for any error that might of occurred.
Additional context
Observing in htop in the container points the finger to a php script. Speedtest-tracker is configured with an hourly cron and influxdb link
The text was updated successfully, but these errors were encountered: