* [Xenomai-help] TSCs synchron on multi-core CPUs?
@ 2008-06-03 14:07 M. Koehrer
2008-06-03 14:29 ` Karl Reichert
0 siblings, 1 reply; 3+ messages in thread
From: M. Koehrer @ 2008-06-03 14:07 UTC (permalink / raw)
To: xenomai
Hi everybody,
I have a question concerning the time stamp counters of the Intel core2duo/quad CPUs.
They will be used e.g. with the Xenomai native skin call rt_time_tsc which ends up in
an assembler statement "rdtsc".
My question is now:
Are the values of TSC synchron with dual/quad core CPUs? Or is there a possible drift between
the CPUs?
Background of the question is:
I want to measure the time of a event that occurs within one task.
A second event is checked in another task on a different core. The time difference between the
events has to be checked.
Can this be done precisely with rdtsc() or is a mechanism required that uses the TSC of exactly one
core?
Thanks for all hints on that question!
Regards
Mathias
--
Mathias Koehrer
mathias_koehrer@domain.hid
Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] TSCs synchron on multi-core CPUs?
2008-06-03 14:07 [Xenomai-help] TSCs synchron on multi-core CPUs? M. Koehrer
@ 2008-06-03 14:29 ` Karl Reichert
2008-06-03 16:47 ` Jan Kiszka
0 siblings, 1 reply; 3+ messages in thread
From: Karl Reichert @ 2008-06-03 14:29 UTC (permalink / raw)
To: M. Koehrer, xenomai
> Hi everybody,
>
> I have a question concerning the time stamp counters of the Intel
> core2duo/quad CPUs.
> They will be used e.g. with the Xenomai native skin call rt_time_tsc which
> ends up in
> an assembler statement "rdtsc".
> My question is now:
> Are the values of TSC synchron with dual/quad core CPUs? Or is there a
> possible drift between
> the CPUs?
> Background of the question is:
> I want to measure the time of a event that occurs within one task.
> A second event is checked in another task on a different core. The time
> difference between the
> events has to be checked.
> Can this be done precisely with rdtsc() or is a mechanism required that
> uses the TSC of exactly one
> core?
>
> Thanks for all hints on that question!
>
> Regards
>
> Mathias
Hi Mathias,
TSC of the cores may differ: http://en.wikipedia.org/wiki/Time_Stamp_Counter
Best regards
Karl
--
von Karl Reichert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] TSCs synchron on multi-core CPUs?
2008-06-03 14:29 ` Karl Reichert
@ 2008-06-03 16:47 ` Jan Kiszka
0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2008-06-03 16:47 UTC (permalink / raw)
To: Karl Reichert, M. Koehrer; +Cc: xenomai
Karl Reichert wrote:
>> Hi everybody,
>>
>> I have a question concerning the time stamp counters of the Intel
>> core2duo/quad CPUs.
>> They will be used e.g. with the Xenomai native skin call rt_time_tsc which
>> ends up in
>> an assembler statement "rdtsc".
>> My question is now:
>> Are the values of TSC synchron with dual/quad core CPUs? Or is there a
>> possible drift between
>> the CPUs?
>> Background of the question is:
>> I want to measure the time of a event that occurs within one task.
>> A second event is checked in another task on a different core. The time
>> difference between the
>> events has to be checked.
>> Can this be done precisely with rdtsc() or is a mechanism required that
>> uses the TSC of exactly one
>> core?
>>
>> Thanks for all hints on that question!
>>
>> Regards
>>
>> Mathias
>
> Hi Mathias,
>
> TSC of the cores may differ: http://en.wikipedia.org/wiki/Time_Stamp_Counter
And if they do on your box, clocktest from the testsuite can tell you.
Note that Xenomai currently relies on TSC being synchronized, or that
you switch to a TSC-less CPU type in your kernel config. Once this
becomes and actual problem for a use case, one may consider adding HPET
as clocksource for Xenomai. So far this wasn't the case.
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-03 16:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 14:07 [Xenomai-help] TSCs synchron on multi-core CPUs? M. Koehrer
2008-06-03 14:29 ` Karl Reichert
2008-06-03 16:47 ` Jan Kiszka
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.