All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai User Space: Using 100% CPU power
@ 2006-11-13 15:35 M. Koehrer
  2006-11-13 15:57 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: M. Koehrer @ 2006-11-13 15:35 UTC (permalink / raw)
  To: xenomai

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




-- 
Mathias Koehrer
mathias_koehrer@domain.hid


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


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

* Re: [Xenomai-help] Xenomai User Space: Using 100% CPU power
  2006-11-13 15:35 [Xenomai-help] Xenomai User Space: Using 100% CPU power M. Koehrer
@ 2006-11-13 15:57 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2006-11-13 15:57 UTC (permalink / raw)
  To: M. Koehrer; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]

M. Koehrer wrote:
> 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?

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

end of thread, other threads:[~2006-11-13 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-13 15:35 [Xenomai-help] Xenomai User Space: Using 100% CPU power M. Koehrer
2006-11-13 15:57 ` 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.