I have a periodic stream of serial data coming into my Xavier NX that seems to work fine when the CPU has a low load average. Once the CPU becomes loaded, I begin to notice high latency in my serial read() calls where they begin to block on the order of ~0.5-1.0s. I know that the serial data is coming in much higher rate than this. I have tried setting the thread priority to the highest for the thread performing the read() calls and still have the same problem.
Is there any tuning I can do to fix this issues?
Thanks for any help you can provide.