Re: Calculating latency using high resolution timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 9 Jun 2010, Sarin, Suseelan wrote:

> Hi All,
> 
> My real-time program has a thread which needs to run at every 2ms. I
> want to calculate the latency of this thread and I am using
> clock_gettime for this. I am bit confused here that whether I can do
> this. My doubt is, if the system is loaded to the extend that an RT
> task can have considerable latency, can I trust the time read from the
> high resolution timer of the system?

Yes, it's accurate. cyclictest relies on that as well.

> Also, with these measurements, I am seeing a ~5msec latency. Is there
> a way I can exactly point out the reason for this latency?

Tracing. See cyclictest.c for how that's done.

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux