Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - 1ms latency every 6.5 second with pulses/signals: (3 Items)
   
1ms latency every 6.5 second with pulses/signals  
First post here.

We need to use periodic threads and we get good latencies (1.5usec) except there is an ugly 1ms latency that shows up 
every 6.53 second, which is not acceptable for our application. I've tried to get rid of it by increasing the priority, 
disabling services, testing a different computer using signals/pulses and so on but it won't go away.

One thing that I noticed is that the first 1ms latency always appear at 6.53 second relative to the execution of the 
program (and every 6.53 second after). Thus if this was caused by an interrupting service on the computer I'd think that
 the first 1ms latency would show up at different times.

I am posting the minimal code here hoping that someone can help. My compile command is: 
qcc -V4.2.4,gcc_ntox86 -o latency latency.c 
and you can pipe the output with:
./latency > output

Regards.

/sl

                                                            
Attachment: Text latency.c 3.25 KB
RE: 1ms latency every 6.5 second with pulses/signals  

> -----Message d'origine-----
> De : Simon Leonard [mailto:community-noreply@qnx.com]
> Envoyé : 12 octobre 2010 13:04
> À : ostech-core_os
> Objet : 1ms latency every 6.5 second with pulses/signals
> 
> First post here.
> 
> We need to use periodic threads and we get good latencies (1.5usec) except
> there is an ugly 1ms latency that shows up every 6.53 second, which is not
> acceptable for our application. I've tried to get rid of it by increasing the
> priority, disabling services, testing a different computer using signals/pulses
> and so on but it won't go away.
> 
> One thing that I noticed is that the first 1ms latency always appear at 6.53
> second relative to the execution of the program (and every 6.53 second
> after). Thus if this was caused by an interrupting service on the computer I'd
> think that the first 1ms latency would show up at different times.
> 
> I am posting the minimal code here hoping that someone can help. My
> compile command is:
> qcc -V4.2.4,gcc_ntox86 -o latency latency.c and you can pipe the output with:
> ./latency > output
> 

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_prog/timing.html

> Regards.
> 
> /sl
> 
> 
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post70315
Re: RE: 1ms latency every 6.5 second with pulses/signals  
Brilliant!

Thanks a million.

/sl