All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] Xenomai Digest, Vol 34, Issue 10
       [not found] <mailman.3.1423479601.12448.xenomai@xenomai.org>
@ 2015-02-09 11:51 ` Andreas Glatz
  2015-02-09 16:13   ` Dauphin Alexandre
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Glatz @ 2015-02-09 11:51 UTC (permalink / raw)
  To: xenomai, alexandre.dauphin, Gilles Chanteperdrix

>
> Hello,
>
> My probleme is that i can't launch any latency tests , they always hang .
> I work with a Imx6 quad core board ( arm architecture ) , my kernel version is :
>
> # cat /proc/version
> Linux version 3.0.43 (root@modx6sdk) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04) )
>
> there , is the xenomai configuration i used :
> # /usr/xenomai/bin/xeno-config
> xeno-config --verbose
> ??????? --version="2.6.4"
> ??????? --cc="arm-linux-gnueabi-gcc"
> ??????? --arch="arm"
> ??????? --prefix="/usr/xenomai"
> ??????? --xeno-cflags="-I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__"
> ??????? --xeno-ldflags="-L/usr/xenomai/lib -lxenomai -lpthread -lrt "
> ??????? --posix-cflags=""
> ??????? --posix-ldflags="-Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib -lpthread_rt -lxenomai -lpthread -lrt "
> ??????? --library-dir="/usr/xenomai/lib"
>
> Whene i run some latency test , it always hangs after "warming up..." and nothing append then..
>
> # /usr/xenomai/bin/latency -p 1000
> == Sampling period: 120000 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> warming up...

This works on my imx6 quadcore board with the following output (see my
configuration after the output)

root@imx6q-pbab01:~/tmp# /usr/local/bin/latency -p 1000
== Sampling period: 1000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|     11.515|     30.878|     51.626|       0|     0|     11.515|     51.626

RTD|     10.065|     30.843|     52.919|       0|     0|     10.065|     52.919
RTD|     10.095|     30.540|     51.767|       0|     0|     10.065|     52.919
RTD|     20.101|     31.338|     56.363|       0|     0|     10.065|     56.363
RTD|     11.267|     31.070|     57.196|       0|     0|     10.065|     57.196
RTD|     11.368|     28.328|     48.202|       0|     0|     10.065|     57.196
RTD|     11.262|     24.580|     57.979|       0|     0|     10.065|     57.979
RTD|     11.621|     24.404|     44.404|       0|     0|     10.065|     57.979
RTD|     10.919|     24.787|     44.368|       0|     0|     10.065|     57.979
RTD|     11.297|     24.999|     49.681|       0|     0|     10.065|     57.979
RTD|     11.898|     24.661|     42.373|       0|     0|     10.065|     57.979
RTD|     11.878|     28.681|     50.040|       0|     0|     10.065|     57.979
RTD|     20.555|     30.797|     60.893|       0|     0|     10.065|     60.893
RTD|     21.474|     31.181|     58.646|       0|     0|     10.065|     60.893
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS|     10.065|     28.363|     60.893|       0|     0|    00:00:15/00:00:15
root@imx6q-pbab01:~/tmp# cat /proc/version
Linux version 3.14.17-fslc+g6c6f90b (andreas@gorse) (gcc version 4.8.2
(GCC) ) #3 SMP PREEMPT Wed Nov 26 13:05:24 GMT 2014
root@imx6q-pbab01:~/tmp# cat /proc/xenomai/version
2.6.4
root@imx6q-pbab01:~/tmp# cat /proc/ipipe/version
4


>
> I tried to change the periode ,but it doesn't make any changes.
>
> # /usr/xenomai/bin/latency -p 120000 -T 600
> == Sampling period: 120000 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> warming up...
> ---|-----------|-----------|-----------|--------|------|-------------------------
> RTS|? 25252.525|????? 0.000| -25252.526|?????? 0|???? 0|??? 00:10:00/00:10:00

Works too on my board:

root@imx6q-pbab01:~/tmp#  /usr/xenomai/bin/latency -p 120000 -T 600
-sh: /usr/xenomai/bin/latency: No such file or directory
root@imx6q-pbab01:~/tmp# /usr/local/bin/latency -p 120000 -T 600
== Sampling period: 120000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 120000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD|     43.005|     48.494|     54.626|       0|     0|     43.005|     54.626
RTD|     41.348|     49.893|     63.641|       0|     0|     41.348|     63.641
RTD|     40.863|     49.121|     59.176|       0|     0|     40.863|     63.641
RTD|     40.843|     45.722|     55.141|       0|     0|     40.843|     63.641
RTD|     42.929|     51.747|     64.328|       0|     0|     40.843|     64.328
RTD|     43.616|     49.873|     58.813|       0|     0|     40.843|     64.328
RTD|     40.050|     52.313|     61.272|       0|     0|     40.050|     64.328
RTD|     39.792|     48.010|     61.909|       0|     0|     39.792|     64.328
RTD|     45.717|     57.247|     66.479|       0|     0|     39.792|     66.479
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS|     39.792|     50.267|     66.479|       0|     0|    00:00:09/00:10:00
root@imx6q-pbab01:~/tmp#



>
> In my configuration , CONFIG_CPU_FREQ? , CONFIG_CPU_IDLE and CONFIG_KGDB? are disable ;
>
> I don't know what is wrong with my configuration and i thank you a lot for your help.

Does any other xenomai test run on your board?

e.g. xeno-regression-test -t 0


Andreas


>
> Thanks you,
> Alex


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

* Re: [Xenomai] Xenomai Digest, Vol 34, Issue 10
  2015-02-09 11:51 ` [Xenomai] Xenomai Digest, Vol 34, Issue 10 Andreas Glatz
@ 2015-02-09 16:13   ` Dauphin Alexandre
  0 siblings, 0 replies; 2+ messages in thread
From: Dauphin Alexandre @ 2015-02-09 16:13 UTC (permalink / raw)
  To: Andreas Glatz, xenomai, gilles.chanteperdrix


 >
> Hello,
>
> My probleme is that i can't launch any latency tests , they always hang .
> I work with a Imx6 quad core board ( arm architecture ) , my kernel version is :
>
> # cat /proc/version
> Linux version 3.0.43 (root@modx6sdk) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04) )
>
> there , is the xenomai configuration i used :
> # /usr/xenomai/bin/xeno-config
> xeno-config --verbose
> ??????? --version="2.6.4"
> ??????? --cc="arm-linux-gnueabi-gcc"
> ??????? --arch="arm"
> ??????? --prefix="/usr/xenomai"
> ??????? --xeno-cflags="-I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__"
> ??????? --xeno-ldflags="-L/usr/xenomai/lib -lxenomai -lpthread -lrt "
> ??????? --posix-cflags=""
> ??????? --posix-ldflags="-Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib -lpthread_rt -lxenomai -lpthread -lrt "
> ??????? --library-dir="/usr/xenomai/lib"
>
> Whene i run some latency test , it always hangs after "warming up..." and nothing append then..
>
> # /usr/xenomai/bin/latency -p 1000
> == Sampling period: 120000 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> warming up...

This works on my imx6 quadcore board with the following output (see my
configuration after the output)

root@imx6q-pbab01:~/tmp# /usr/local/bin/latency -p 1000
== Sampling period: 1000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD| 11.515| 30.878| 51.626| 0| 0| 11.515| 51.626

RTD| 10.065| 30.843| 52.919| 0| 0| 10.065| 52.919
RTD| 10.095| 30.540| 51.767| 0| 0| 10.065| 52.919
RTD| 20.101| 31.338| 56.363| 0| 0| 10.065| 56.363
RTD| 11.267| 31.070| 57.196| 0| 0| 10.065| 57.196
RTD| 11.368| 28.328| 48.202| 0| 0| 10.065| 57.196
RTD| 11.262| 24.580| 57.979| 0| 0| 10.065| 57.979
RTD| 11.621| 24.404| 44.404| 0| 0| 10.065| 57.979
RTD| 10.919| 24.787| 44.368| 0| 0| 10.065| 57.979
RTD| 11.297| 24.999| 49.681| 0| 0| 10.065| 57.979
RTD| 11.898| 24.661| 42.373| 0| 0| 10.065| 57.979
RTD| 11.878| 28.681| 50.040| 0| 0| 10.065| 57.979
RTD| 20.555| 30.797| 60.893| 0| 0| 10.065| 60.893
RTD| 21.474| 31.181| 58.646| 0| 0| 10.065| 60.893
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS| 10.065| 28.363| 60.893| 0| 0| 00:00:15/00:00:15
root@imx6q-pbab01:~/tmp# cat /proc/version
Linux version 3.14.17-fslc+g6c6f90b (andreas@gorse) (gcc version 4.8.2
(GCC) ) #3 SMP PREEMPT Wed Nov 26 13:05:24 GMT 2014
root@imx6q-pbab01:~/tmp# cat /proc/xenomai/version
2.6.4
root@imx6q-pbab01:~/tmp# cat /proc/ipipe/version
4


>
> I tried to change the periode ,but it doesn't make any changes.
>
> # /usr/xenomai/bin/latency -p 120000 -T 600
> == Sampling period: 120000 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> warming up...
> ---|-----------|-----------|-----------|--------|------|-------------------------
> RTS|? 25252.525|????? 0.000| -25252.526|?????? 0|???? 0|??? 00:10:00/00:10:00

Works too on my board:

root@imx6q-pbab01:~/tmp# /usr/xenomai/bin/latency -p 120000 -T 600
-sh: /usr/xenomai/bin/latency: No such file or directory
root@imx6q-pbab01:~/tmp# /usr/local/bin/latency -p 120000 -T 600
== Sampling period: 120000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 120000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD| 43.005| 48.494| 54.626| 0| 0| 43.005| 54.626
RTD| 41.348| 49.893| 63.641| 0| 0| 41.348| 63.641
RTD| 40.863| 49.121| 59.176| 0| 0| 40.863| 63.641
RTD| 40.843| 45.722| 55.141| 0| 0| 40.843| 63.641
RTD| 42.929| 51.747| 64.328| 0| 0| 40.843| 64.328
RTD| 43.616| 49.873| 58.813| 0| 0| 40.843| 64.328
RTD| 40.050| 52.313| 61.272| 0| 0| 40.050| 64.328
RTD| 39.792| 48.010| 61.909| 0| 0| 39.792| 64.328
RTD| 45.717| 57.247| 66.479| 0| 0| 39.792| 66.479
^C---|-----------|-----------|-----------|--------|------|-------------------------
RTS| 39.792| 50.267| 66.479| 0| 0| 00:00:09/00:10:00
root@imx6q-pbab01:~/tmp#



>
> In my configuration , CONFIG_CPU_FREQ? , CONFIG_CPU_IDLE and CONFIG_KGDB? are disable ;
>
> I don't know what is wrong with my configuration and i thank you a lot for your help.

Does any other xenomai test run on your board?

e.g. xeno-regression-test -t 0


Andreas


>
> Thanks you,
> Alex
 Whene I cross compiled and run on the board some programes with native API, it works.

The latency and klatency test hangs forever ( i tried to wait a long time with period 1000us)

the regression test gave me this :

# ./xeno-regression-test -t 0
Started child 1546: /bin/sh /usr/xenomai/bin/xeno-test-run-wrapper ./xeno-regression-test -t 0
+ echo 0
+ /usr/xenomai/bin/arith
mul: 0x79364d93, shft: 26
integ: 30, frac: 0x4d9364d9364d9364

signed positive operation: 0x03ffffffffffffff * 1000000000 / 33000000
inline calibration: 0x0000000000000000: 42.939 ns, rejected 0/10000
inlined llimd: 0x79364d9364d9362f: 1644.080 ns, rejected 2/10000
inlined llmulshft: 0x79364d92ffffffe1: 32.903 ns, rejected 0/10000
inlined nodiv_llimd: 0x79364d9364d9362f: 47.979 ns, rejected 1/10000

out of line calibration: 0x0000000000000000: 47.998 ns, rejected 0/10000
out of line llimd: 0x79364d9364d9362f: 1609.945 ns, rejected 2/10000
out of line llmulshft: 0x79364d92ffffffe1: 25.243 ns, rejected 0/10000

out of line nodiv_llimd: 0x79364d9364d9362f: 60.286 ns, rejected 0/10000

signed negative operation: 0xfc00000000000001 * 1000000000 / 33000000
inline calibration: 0x0000000000000000: 42.933 ns, rejected 0/10000
inlined llimd: 0x86c9b26c9b26c9d1: 1644.240 ns, rejected 2/10000
inlined llmulshft: 0x86c9b26d0000001e: 32.839 ns, rejected 0/10000
inlined nodiv_llimd: 0x86c9b26c9b26c9d1: 50.592 ns, rejected 0/10000

out of line calibration: 0x0000000000000000: 74.068 ns, rejected 0/10000
out of line llimd: 0x86c9b26c9b26c9d1: 1590.549 ns, rejected 2/10000
out of line llmulshft: 0xd45d172d0000001e: -2.697 ns, rejected 0/10000

out of line nodiv_llimd: 0x86c9b26c9b26c9d1: 24.437 ns, rejected 0/10000

unsigned operation: 0x03ffffffffffffff * 1000000000 / 33000000
inline calibration: 0x0000000000000000: 42.935 ns, rejected 1/10000
inlined nodiv_ullimd: 0x79364d9364d9362f: 50.513 ns, rejected 0/10000
out of line calibration: 0x0000000000000000: 47.987 ns, rejected 0/10000
out of line nodiv_ullimd: 0x79364d9364d9362f: 38.685 ns, rejected 0/10000
+ /usr/xenomai/bin/clocktest -C 42 -T 30
== Tested clock: 42 (CLOCK_HOST_REALTIME)
CPU      ToD offset [us] ToD drift [us/s]      warps max delta [us]
--- -------------------- ---------------- ---------- --------------
  0                  1.2            0.000          0            0.0
  1                  1.0            0.000          0            0.0
  2                  1.3            0.013          0            0.0
  3                  0.9           -0.013          0            0.0
+ /usr/xenomai/bin/clocktest -T 30
== Tested clock: 0 (CLOCK_REALTIME)
CPU      ToD offset [us] ToD drift [us/s]      warps max delta [us]
--- -------------------- ---------------- ---------- --------------
  0   -946684806505700.6            0.000          0            0.0
  1   -946684806505700.2            0.000          0            0.0
  2   -946684806505700.1            0.015          0            0.0
  3   -946684806505700.2            0.011          0            0.0
+ /usr/xenomai/bin/cond-torture-native
simple_condwait
 ... and its stay blocked here.

My ipipe version is old in comparison with yours Andreas , this may be a problem.

# cat /proc/ipipe/version
1.18-13

thanks you a lot!!

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

end of thread, other threads:[~2015-02-09 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.3.1423479601.12448.xenomai@xenomai.org>
2015-02-09 11:51 ` [Xenomai] Xenomai Digest, Vol 34, Issue 10 Andreas Glatz
2015-02-09 16:13   ` Dauphin Alexandre

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.