Roland-Smith-Imperial
Roland-Smith-Imperial
Oops, apologies for the messy formatting of that python code !
Hi Tim Many thanks for the suggestion, I gave the PREEMPT_RT kernel variant a go as suggested above, it is still a slight "downgrade" in terms of average sample rate...
 
Histogram for a "standard" 6.12.28 kernel in non-RT mode below for comparison.

Many thanks to popcornmix, pelwell, P33M and timg236 for all your insights much appreciated. It sounds like the (minor) slow down we see is the result of some pretty deep...
>> https://github.com/raspberrypi/linux/pull/6862 is a trial patch to reduce (remove?) the overhead of the GPIO chip safety measures. Many thanks, that's very helpful, happy to give some beta software a go,...