On 2021-03-11, Daniel Wagner <wagi@xxxxxxxxx> wrote: > On 10.03.21 21:07, Michel Macena Oliveira wrote: >> At least that's what I expected, but my latencies are much bigger than >> Cyclictest ones. >> From cyclictest I get an average in my computer of something between >> 2300 and 2500 nanoseconds. However, in my application I'm having >> something between 47000 and 55000 nanoseconds. As you can see it is >> much higher! >> >> I'm not sure of what I'm doing wrong, could you help or suggest something? > > Check if your system uses power managment. cyclictest disables the power > management by using the /dev/cpu_dma_latency API. In addition, avoid file I/O in your real-time thread. Store your calculations in a variable and let another thread read it and write to disk. Then it would be more "equivalent to Cyclict test". John Ogness