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

nrf0_rx_thread using 100% cpu #8

Closed
edillmann opened this issue May 26, 2019 · 4 comments
Closed

nrf0_rx_thread using 100% cpu #8

edillmann opened this issue May 26, 2019 · 4 comments

Comments

@edillmann
Copy link

Hi,

The nrf0_rx_thread is using 100% cpu, shouldn't RX be IRQ driven ?

Regards,
Eric

@sergey-suloev
Copy link
Contributor

sergey-suloev commented May 26, 2019

@edillmann It already is, by the way. The RX thread sleeps waiting for the event which arrives from the ISR.

@mciupak
Copy link
Owner

mciupak commented May 27, 2019

Yes, it is interrupt/event driven with wait queues, so it should not use 100%, unless there is something wrong...

What does debug dmesg say when it hits 100% cpu?

Unfortunate;y I do not have an access to working setup now so I cannot check this. @sergey-suloev do you have maybe a working setup and if so could you please check cpu usage of rx thread?

@sergey-suloev
Copy link
Contributor

sergey-suloev commented May 27, 2019

@mciupak I don't have either.
But when I was testing it (about 2-3 mon ago) there was NO 100% usage. Never.
My test environment was an Allwinner H3-based board, kernel 4.20.

@mciupak
Copy link
Owner

mciupak commented May 27, 2019

Neither I haven't seen such behavior.

@edillmann Please share more details regarding you build and setup. And dmesg logs as well. There is also status register printed to dmesg if you read it via sysfs.

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