-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Continuous CPU usage on Raspberry Pi 3 Model B #9475
Comments
@alexdrl could you retest this with the latest 1.5.1? |
I am using the 1.5.1 version, coming from the influxdb:latest docker image, and I am seeing the same behaviour... Do you want me to reupload some logs? |
@alexdrl I checked internally and we have at least one person running 1.4.2 on an RPi 3 and seeing ~6% cpu usage but he's not running in docker. Could you test InfluxDB outside of docker? |
@dgnorton this weekend I'll check that. I'll install the .deb package. Thanks! |
@alexdrl two other ideas brought up during our internal discussion were:
|
Wow, this has changed the stable at 100% CPU usage to a stable 0% CPU with usage spikes :D What does that component do? I'll post another graph of the CPU and memory utilisation with more hours of logging with telegraf. PD: Improving the general speed of some ARM instructions using go 1.10 also seem like a good idea. |
That's great news!
Monitoring keeps track of InfluxDB's internal stats like number of points written, estimate of number of series, etc. Useful for diagnosing problems sometimes. Some of these internal stats can be expensive to compute with 100% accuracy. However, that level of accuracy isn't always needed. E.g., if Thanks for reporting. I'm going to close this issue since that config change seems to have fixed your problem. If you feel there's still an issue with this, we can reopen the issue. |
Thank for you for looking and solving the issue, and for the complete explanation. Ping me if you want me to test a Go 1.10 compiled version with that option enabled. |
Not sure if the bug should be re-opened, but I experienced the same behaviour on a Raspberry Pi Zero. I am running an instance of Influxdb with only 2 writes each 11 seconds. I saw lots of empty values so I started investigating. Turns out influxdb was running on close to full cpu most of the time. The above config change seems to have fixed my problems partly. I am seeing 4-6% cpu utilization on writes, rather than 97% continously. I am not a developer but this smells buggy to me? Thanks a lot for the solution though! =) |
For some strange reason my solution was to stop service, start influxd by hand, let it run for a while, and high cpu load went. :D |
Used a lot of CPU on Raspberrys. influxdata/influxdb#9475
Bug report
System info: InfluxDB 1.4.3 (latest Docker image on arm)
Steps to reproduce:
Hello, I am seeing a continous high CPU usage running this container on a Raspberry Pi 3
Also, the memory usage is a bit odd
I am hosting grafana, influxdb and home-assistant here. I have noticed this when I started to get monitoring from this containers using telegraf.
![img_20180223_121937](https://user-images.githubusercontent.com/26382633/36591933-f3b2cb3e-1893-11e8-9421-0cf84f311c8f.png)
I have tried to stop grafana and home-assistant, and the spikes of CPU usage continue. What can I do?
Expected behavior: Normal CPU usage, and some CPU spikes.
Actual behavior: High CPU usage.
Additional info: [Include gist of relevant config, logs, etc.]
I've discovered now this debug commands, so in a few hours I'll post the result of some of this commands.
Also, if this is an issue of for performance, locking, etc the following commands are useful to create debug information for the team.
vars.txt
profiles.tar.gz
I have no iostat installed in the Raspberry Pi, but I can install it if needed.
The text was updated successfully, but these errors were encountered: