joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.45k stars 407 forks source link

Informational Query: Expected CPU loading when PiGPIOd should be effectively idle? #521

Closed Jibun-no-Kage closed 2 years ago

Jibun-no-Kage commented 2 years ago

Informational Query: Expected CPU loading when PiGPIOd should be effectively idle? I am seeing CPU loading between 6 and 9 % when the PiGPIOd process should be effectively idle. Could you provide some insight as to why or how this is the case? Not an issue per se, but seeking understanding on how or why this is the case?

joan2937 commented 2 years ago

The daemon is sampling the levels of GPIO 0-31 two hundred thousand times a second (default values). The background loading is the time taken to go through those levels to see if anything has changed.

http://abyz.me.uk/rpi/pigpio/cif.html#gpioCfgClock

Jibun-no-Kage commented 2 years ago

Ah, thanks. This is great information.