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

High resource usage #11

Open
mica-angeli opened this issue Jan 25, 2019 · 3 comments
Open

High resource usage #11

mica-angeli opened this issue Jan 25, 2019 · 3 comments

Comments

@mica-angeli
Copy link

I noticed that running this driver, although it works, it consumes 100% of one of my CPU cores:

ricardo@src-09-lx:~$ top | grep advanced
27266 ricardo   20   0  334196   9900   9000 R  87.5  0.1 990:23.06 advanced_n+ 
27266 ricardo   20   0  334196   9900   9000 R 100.3  0.1 990:26.08 advanced_n+ 
27266 ricardo   20   0  334196   9900   9000 R 100.3  0.1 990:29.09 advanced_n+ 
27266 ricardo   20   0  334196   9900   9000 R 100.3  0.1 990:32.10 advanced_n+ 
27266 ricardo   20   0  334196   9900   9000 R 100.0  0.1 990:35.11 advanced_n+ 
27266 ricardo   20   0  334196   9900   9000 R  97.0  0.1 990:38.03 advanced_n+ 
27266 ricardo   20   0  334196   9900   9000 R  99.3  0.1 990:41.01 advanced_n+ 

By comparison, running a ROS driver for a different IMU consumes about 0.1% of the processor. I haven't looked into the code yet, but I suspect that it's polling for data over and over again and consuming processor cycles doing nothing.

@kylerlaird
Copy link

It's been a long time since I updated my fork, but one of the things I did was slash the CPU utilization. You might want to take a look at it.

@mica-angeli
Copy link
Author

mica-angeli commented Feb 20, 2019

Thanks for the heads up. Unfortunately, I was not able to use your fork. Instead, I looked through all the existing forks and used cosama's. I'm initiating a pull request in his behalf now.

@nznobody
Copy link

Note: This repository is abandoned by Advanced Navigation Support [email protected]. When asking them about this, they pointed me to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants