I was having odd performance issues while trying to improve latency in different scenarios.
Ultimately, I was able to conclude that it was a matter of the Pi thermal-throttling the CPU.I found that overclocking the CPU to 2.0GHz had a small improvement in LinuxCNC's latency test, but would eventually overheat and ruin test results.
I ended up running a number of tests with a tool called "stressberry", which monopolizes all 4 cores with prime-finding and logs the internally-reported CPU temperatures. After seeing that reported temperatures were far higher than would be expected with the actively-cooled heatsink I have attached to the Pi, I swapped out the standoffs for the heatsink with ones that were about 1mm shorter to improve contact with the CPU.
This small change had a tremendous impact on the stressberry tests:
This is the same test, run for the same amount of time, before and after.
I've been meaning to report back these finding, because I've been trying to get the fantastic results shown previously in this thread:
forum.linuxcnc.org/9-installing-linuxcnc...cnc?start=150#253623
There is a protection diode that dies if you hook up the gpio wrong. It heats up by the psu connector. If you remove it you may find your pi works again.
I don't suppose you have a link to something I can reference regarding this?