Skip to contentSkip to conversation

latency in kernel mode

Xenomai-help Joachim Meyer 4 participants 5 messages Jun 25, 2008 – Jul 9, 2008

lore
Share & tools
lore
#0 lore raw

Hi

I still don't know what to do with the latency test in kernel mode. Every others test works fine except for the IRQ test, but I was told this is normal for an non x86 architecture. Can anybody give me a hint what I can do? What would probably be the problem? How important is it, that that test won't work? Should I ignore it and start with programming some real-time-stuff? But if I start now and get problems later I would always think, the failed test could be the reason for the problem too....

Here's the output:
---------------------------------------------------------------------------------------------
bash-3.00# cd /usr/xenomai/testsuite/latency/ bash-3.00# ./run -- -t1
*
*
* Type ^C to stop this application.
*
*
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25

---|------------|------------|------------|--------|-------------------------
RTS|  267928.028|  805352.732|      32.768|       0|    00:00:10/00:00:10

bash-3.00#
----------------------------------------------------------------------------------------------

Thanks for your help and patience.
Joachim
____________________________________________________________________
Ihre Messenger, Communities und E-Mails jetzt in einem Programm! WEB.DE MultiMessenger http://www.produkte.web.de/messenger/?did=3071

#1 lore raw
Quoted 10 lines · Joachim Meyer

bash-3.00# ./run -- -t1
*
*
* Type ^C to stop this application.
*
*
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25

Quoted 6 lines
---|------------|------------|------------|--------|-------------------------
RTS|  267928.028|  805352.732|      32.768|       0|    00:00:10/00:00:10

bash-3.00#
----------------------------------------------------------------------------------------------

Thanks for your help and patience.

Enable the timerbench driver in kernel configuration. If you want to enable several testing drivers and everything to work "out of thebox", enable them as module, and do not load the modules by yourself, let the run script load the apropriate module. Otherwise, specify the correct testing driver index to the test you run.

Signature · 1 line
					    Gilles.
#2 lore raw

Hi guys, I wonder do the same test as described below on my system. Where's the timerbench driver? I was looking for this option but I couldn't find it on my .conifg.
Is it necessary to do what Joachim said at previous email?:

" I enabled the timerbench module, and installed it with the other modules (IRQ Benchmark and Context Switch).
The Switchtest test works, so I think the modules are correct installed and the tests are able to load them...."

Thanks,

Breno

2008/6/25 Gilles Chanteperdrix <[email protected]>:

Quoted 36 lines
Quoted 11 lines · Joachim Meyer

bash-3.00# ./run -- -t1
*
*
* Type ^C to stop this application.
*
*
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25

---|------------|------------|------------|--------|-------------------------

Quoted 3 lines

RTS| 267928.028| 805352.732| 32.768| 0| 00:00:10/00:00:10
bash-3.00#

----------------------------------------------------------------------------------------------

Quoted 2 lines

Thanks for your help and patience.

Enable the timerbench driver in kernel configuration. If you want to enable several testing drivers and everything to work "out of thebox", enable them as module, and do not load the modules by yourself, let the run script load the apropriate module. Otherwise, specify the correct testing driver index to the test you run.

--

Gilles.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#3 lore raw
Quoted 3 lines · Breno Carneiro Pinheiro

Hi guys, I wonder do the same test as described below on my system. Where's the timerbench driver? I was looking for this option but I couldn't find it on my .conifg.

As documented in section 1.2 of README.INSTALL, all Xenomai options are available under the menu "Real-time susbsytem" in Linux kernel configuration.

Quoted 6 lines

Is it necessary to do what Joachim said at previous email?:

" I enabled the timerbench module, and installed it with the other modules (IRQ Benchmark and Context Switch). The Switchtest test works, so I think the modules are correct installed and the tests are able to load them...."

If you mean install the modules then no, you do not need to install Xenomai modules, but if you do not do so, you will have to pass their full path to insmod, and Xenomai "run" scripts will not be able to find them by themselves.

Signature · 1 line
					    Gilles.
#4 lore raw
In reply to Joachim Meyer
Quoted 1 line · Joachim Meyer

I still don't know what to do with the latency test in kernel mode.

[...]

Quoted 5 lines

Here's the output:
---------------------------------------------------------------------------------------------
bash-3.00# cd /usr/xenomai/testsuite/latency/
bash-3.00# ./run -- -t1
*

Quoted 8 lines

*
* Type ^C to stop this application.
*
*
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25

Did you compile and load the kernel driver xeno_timerbench.ko?

Signature · 1 line
Sebastian