[Xenomai] How to locate the max latency

Zheng, Qi qi.zheng at intel.com
Thu Jul 5 08:55:59 CEST 2018

1. I run the test one hour for a round, totally tested for 12 rounds.
     The data were consistent, on console mode, max latency were between 10us to 19us, on GUI mode, they were between 28us to 42us.
2. I tried the PREEMPT-RT kernel, yes, there was similar increase.

Best Regards

SSG->OTC->One Linux Platform Engineering Team (Shanghai)

-----Original Message-----
From: Jan Kiszka [mailto:jan.kiszka at siemens.com] 
Sent: Thursday, July 5, 2018 2:02 PM
To: Zheng, Qi <qi.zheng at intel.com>; xenomai at xenomai.org
Subject: Re: How to locate the max latency

On 2018-07-03 10:59, Zheng, Qi wrote:
> I am using xenomai 3.0.5 (https://xenomai.org/downloads/xenomai/stable/xenomai-3.0.5.tar.bz2) on the Intel SKL platform.
> On console mode or accessed by vnc viewer (no i915 graphics interrupt), the max latency values are usually below 20us no matter low or high loading (by stress-ng).
> But the max latency can reach up to 40us on GUI (gnome)  mode (dozens of i915 interrupt counts per second).
> I tried enabling the ipipe trace function, but couldn't find valuable information.
> Is there any other good ways to locate the max latency?
> Or does anybody have experience on reducing the latency caused by graphics (such as i915) ?
> Many thanks.
First of all, how long did you run the tests? Maybe enabling graphics just increases the probability to hit the peak, and the same is conceptually possible without it.

It may also be the case that this is hardware-induced (GPU). Do you see a similar increase in the latency (even if from a different ground
level) when using the PREEMPT-RT kernel?


Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux

More information about the Xenomai mailing list