Skip to contentSkip to conversation

Xenomai User Space: Using 100% CPU power

Xenomai-help M. Koehrer 2 participants 2 messages Nov 13, 2006

lore
Share & tools
lore

M. Koehrer

author
#0 lore raw

Hi everybody,

I have an application where I need extreme precise timing (about 1µs) for a couple of seconds using a standard PC (to access a I/O PCI board).
For this, I want to write an application that initializes normally and
whenever the software is in a certain state, I want to enter a "high-precision-timing mode". In this high-precision-timing mode, I want to disable all interrupts and poll permanently on a PCI I/O board. The timing itself can be directly taken from the CPU's TSC using rdtsc.
Within this mode, the time measurement of register changes on the PCI I/O board is very important. After a couple of seconds, when all relevant data is taken, I want to leave this "high-precision-mode" and come back to the normal mode.
Then the measurement results are interpreted in detail.
All this should happen in user mode, not in kernel mode.

My questions are now:
Is this possible using Xenomai?
How can I enter a mode that disables all interrupts (including timer) for a while?

Thanks for any help on this!

Regards

Mathias

Signature · 9 lines
Mathias Koehrer
[email protected]


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
#1 lore raw
Quoted 14 lines · M. Koehrer

Hi everybody,

I have an application where I need extreme precise timing (about 1µs) for a couple of seconds using a standard PC (to access a I/O PCI board).
For this, I want to write an application that initializes normally and
whenever the software is in a certain state, I want to enter a "high-precision-timing mode". In this high-precision-timing mode, I want to disable all interrupts and poll permanently on a PCI I/O board. The timing itself can be directly taken from the CPU's TSC using rdtsc.
Within this mode, the time measurement of register changes on the PCI I/O board is very important. After a couple of seconds, when all relevant data is taken, I want to leave this "high-precision-mode" and come back to the normal mode.
Then the measurement results are interpreted in detail.
All this should happen in user mode, not in kernel mode.

Quoted 3 lines

My questions are now:
Is this possible using Xenomai?
How can I enter a mode that disables all interrupts (including timer) for a while?

We had this discussion recently here, see

https://mail.gna.org/public/xenomai-help/2006-10/msg00172.html

And be aware that you are about to toast Linux's time keeping (but I guess that of lower priority in this scenario).

Jan