All of lore.kernel.org
 help / color / mirror / Atom feed
* nanosleep() accuracy
@ 2007-08-16 22:52 GolovaSteek
  2007-08-17  7:00 ` Michal Schmidt
  0 siblings, 1 reply; 5+ messages in thread
From: GolovaSteek @ 2007-08-16 22:52 UTC (permalink / raw)
  To: linux-kernel

Hello!
I need use sleep with accurat timing.
I use 2.6.21 with rt-prempt patch.
with enabled rt_preempt, dyn_ticks, and local_apic
But

req.tv_nsec = 300000;
req.tv_sec = 0;
nanosleep(&req,NULL)

make pause around 310-330 microseconds.

I tried to understend how work nanosleep(), but it not depends from
jiffies and from smp_apic_timer_interrupt.

When can accuracy be lost?
And how are process waked up?


GolovaSteek

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-17 11:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-16 22:52 nanosleep() accuracy GolovaSteek
2007-08-17  7:00 ` Michal Schmidt
2007-08-17  7:44   ` GolovaSteek
2007-08-17  7:54     ` Jan Engelhardt
2007-08-17 11:08     ` Michal Schmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.