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

node-red-node-pi-gpio: python script nrgpio consuming a lot of processor time #1090

Open
colinl opened this issue Mar 4, 2025 · 0 comments

Comments

@colinl
Copy link

colinl commented Mar 4, 2025

On an original PI Zero, running NR 4.0 on Bullseye, with Python 3 I find that for each gpio pin configured there is an instance of the nrgpio script running. Each one of those consumes about 3% of the processor, even when there is no IO activity. Even on a Pi 3 it is 0.7%.
Looking at the source of nrgpio I deduce that the python input function may be polling stdin which is not ideal if I am right. Perhaps there is no alternative.

I have not been able to try it on python 2 to see if this is worse with 3, as I don't have a pi running 2.

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

1 participant