-
Notifications
You must be signed in to change notification settings - Fork 676
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 UHD CPU usage when idle, networked X310 #838
Comments
100% seems weird, but I wonder if this is a duplicate of #514. Can you show the thread names in htop? Also, what hardware is this running on? |
@afountain-brsc Thanks for getting back to us. The Now you might wonder when and if we're going to do something about it, if the other issue is three years old. The thing is, while this is a known problem, it doesn't usually cause a CPU to run at 100%. On my system, for example, the CPU usage of that thread hovers around 8%, and on a different system it was around 30%. If it's at 8%, we can tolerate it and therefore the pain threshold isn't high enough to fix it (this is not a trivial fix). So I wonder what the difference is. Maybe I'll try your compiler flags. There is a busy polling loop in the |
Issue Description
When creating a
multi_usrp
object targeting one or two X310 radios (with two UBX160 daughtercards each), one CPU core is completely maxed out on our system when we are not doing anything with themulti_usrp
object.Setup Details
We have seen this happen with UHD v4.8.0.0, as well as v4.4.0.0 and have not tried other versions. We use the default X310 XG firmware image for each release, obtained by using the
uhd_images_downloader
utility. We have been building the UHD from source with the following set of steps:OS: Ubuntu 20.04 LTS
Network card: Intel X710
Expected Behavior
Low CPU usage when not transmitting or receiving with the multi_usrp object.
Actual Behaviour
100% CPU usage of one core when idle
Steps to reproduce the problem
The following program reproduces the issue:
Compiled with:
and run with
./high_cpu_usage.exe
.While running, the following is observed with

htop
:and it produces the following output on the console:
The text was updated successfully, but these errors were encountered: