High latency seemingly caused by Peak rtcan driver for xenomai-3
Hello everyone
I have an application that uses rtcan for communicating with the outside world. My problem is that I occasionally have very high latency that I'm trying to debug. After going through the regular checks with kernel parameters, smi, mallocs, io etc. I have found that I don't even have to start my application to get the high latency issue. It is enough to simply start the rt-can interface.
So here is what I do:
1) Fresh reboot, no rt-modules loaded
Quoted 1 line
latency
Results show about 1.0 us maximum.
2) Insert xeno_can_peak_pci with 2x4 channels
Quoted 2 lines
modprobe
xeno_can_peak_pci
latency
Results show no difference, still low max latency
3) CAN traffic on all 8 channels, open one channel at a time test latency in between
Quoted 2 lines
rtcanconfig rtcan0 -b 1000000 up
latency
Results show that the maximal latency follows the following formula maxLatency_uSec = (15*(nChannelsCard2 > 0)+15*nChannelsCard1)+ (15*(nChannelsCard2 > 0)+15*nChannelsCard2)
My question is thus, are these latency values normal for this kind of driver or are there things that I can do to remedy the situation?
Regards
Per Öberg