no-brainer realtime issue
Quoted 4 lines
Which framebuffer support did you select at kernel level?
What is the output of testsuite/latency while using the VT console?
I'm using the gx1fb framebuffer for the geode. However, since this problem occurs even when the VT outputting the text is not active, I don't think it's fb related.
The latency output is just a bunch of numbers. :P
Here is some output with the latency -p 500 command, and halfway through it I put a 100% load on the cpu.
== Sampling period: 500 us
== Test mode: periodic user-mode task
warming up...
RTT| 00:00:01 (periodic user-mode task, 500 us period) RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat
worst
RTD| -2327277| -1766041| -1196976| 0| -2327277|
-1196976
RTD| -3443424| -2882532| -2293218| 0| -3443424|
-1196976
RTD| -4558603| 3176566| -3412343| 0| -4558603|
-1196976
RTD| -5663780| 2061495| -4522950| 0| -5663780|
-1196976
RTD| -6764019| 976449| -5637527| 0| -6764019|
-1196976
RTD| -7885937| -137963| -6750223| 0| -7885937|
-1196976
RTD| -8993661| -1254331| -7868111| 0| -8993661|
-1196976
RTD| -10141655| -2395933| -8979941| 0| -10141655|
-1196976 ---|------------|------------|------------|--------|------------------------ -
RTS| -10141655| -277784| -1196976| 0| 00:00:08/00:00:08
Quoted 6 lines · Steven Seeger
Quoted 4 lines
Which framebuffer support did you select at kernel level?
What is the output of testsuite/latency while using the VT console?
Quoted 6 lines
I'm using the gx1fb framebuffer for the geode. However, since this problem occurs even when the VT outputting the text is not active, I don't think it's fb related.
The latency output is just a bunch of numbers. :P
Until those numbers are sane, there is no point in trying anything else though.
Quoted 3 lines
Here is some output with the latency -p 500 command, and halfway through it I put a 100% load on the cpu.
Ok, the testsuite clearly fails on your board, and something in the current setup prevents any real-time use. .config would help.
Quoted 28 lines
== Sampling period: 500 us
== Test mode: periodic user-mode task
warming up...RTT| 00:00:01 (periodic user-mode task, 500 us period) RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---latworst
RTD| -2327277| -1766041| -1196976| 0| -2327277|
-1196976
RTD| -3443424| -2882532| -2293218| 0| -3443424|
-1196976
RTD| -4558603| 3176566| -3412343| 0| -4558603|
-1196976
RTD| -5663780| 2061495| -4522950| 0| -5663780|
-1196976
RTD| -6764019| 976449| -5637527| 0| -6764019|
-1196976
RTD| -7885937| -137963| -6750223| 0| -7885937|
-1196976
RTD| -8993661| -1254331| -7868111| 0| -8993661|
-1196976
RTD| -10141655| -2395933| -8979941| 0| -10141655|
-1196976 ---|------------|------------|------------|--------|------------------------ -
RTS| -10141655| -277784| -1196976| 0| 00:00:08/00:00:08
Signature · 1 line
Philippe.
Maybe I didn't set it up right? I followed the instructions in the README.INSTALL file. Attached is my linux tree's .config.
Steven
Quoted 8 lines
Until those numbers are sane, there is no point in trying anything else though.
Ok, the testsuite clearly fails on your board, and something in the current setup
prevents any real-time use. .config would help.
Quoted 3 lines · Steven Seeger
Maybe I didn't set it up right? I followed the instructions in the README.INSTALL file. Attached is my linux tree's .config.
Try enabling the SMI workaround (Xeno's "Machine" menu), just in case, since you are running a Geode box.
Quoted 11 lines
Steven
Quoted 6 lines
Until those numbers are sane, there is no point in trying anything else though.
Ok, the testsuite clearly fails on your board, and something in the current setup prevents any real-time use. .config would help.
Signature · 1 line
Philippe.
Hehe I misread that option. I read it as "disable SMI" and intended for it to be on. I'll try that. :)
Steven
Quoted 22 lines · Philippe Gerum
Quoted 3 lines · Steven Seeger
Maybe I didn't set it up right? I followed the instructions in the README.INSTALL file. Attached is my linux tree's .config.
Try enabling the SMI workaround (Xeno's "Machine" menu), just in case, since you
are running a Geode box.Quoted 12 lines
Steven
Quoted 7 lines
Until those numbers are sane, there is no point in trying anything else though.
Ok, the testsuite clearly fails on your board, and something in the current setup
prevents any real-time use. .config would help.
Turning on the SMI disable stuff, rebuilding the kernel and modules, and installing everything to my board did not solve the latency problem. My numbers keep growing as the latency tester runs.
Any other ideas? I've never had an rtai/xenomai/fusion/whatever system fail basic realtime requirements like this before in the 4 years I've been using this geode board.
Steven
Quoted 22 lines · Philippe Gerum
Quoted 3 lines · Steven Seeger
Maybe I didn't set it up right? I followed the instructions in the README.INSTALL file. Attached is my linux tree's .config.
Try enabling the SMI workaround (Xeno's "Machine" menu), just in case, since you
are running a Geode box.Quoted 12 lines
Steven
Quoted 7 lines
Until those numbers are sane, there is no point in trying anything else though.
Ok, the testsuite clearly fails on your board, and something in the current setup
prevents any real-time use. .config would help.
Quoted 8 lines · Steven Seeger
Turning on the SMI disable stuff, rebuilding the kernel and modules, and installing everything to my board did not solve the latency problem. My numbers keep growing as the latency tester runs.
Any other ideas? I've never had an rtai/xenomai/fusion/whatever system fail basic realtime requirements like this before in the 4 years I've been using this geode board.
Yous seem to be running in periodic timing mode, with a default slice of 125 us. Which parameters are passed to rt_task_set_periodic() and rt_task_wait_period() in your sampling task?
Quoted 30 lines
Steven
Quoted 22 lines · Philippe Gerum
Quoted 3 lines · Steven Seeger
Maybe I didn't set it up right? I followed the instructions in the README.INSTALL file. Attached is my linux tree's .config.
Try enabling the SMI workaround (Xeno's "Machine" menu), just in case, since you are running a Geode box.
Quoted 12 lines
Steven
Quoted 6 lines
Until those numbers are sane, there is no point in trying anything else though.
Ok, the testsuite clearly fails on your board, and something in the current setup prevents any real-time use. .config would help.
Signature · 1 line
Philippe.
Quoted 5 lines
Yous seem to be running in periodic timing mode, with a default slice of 125 us.
Which parameters are passed tort_task_set_periodic()andrt_task_wait_period()in
your sampling task?
I am confused why this matters? You said the latency test shows my realtime does not work, so clearly the problem I have isn't specific to my code, but rather to my system, right?
Here is my call to rt_task_set_periodic:
rt_task_set_periodic(&task, TM_NOW, rt_timer_ns2ticks(500000));
I don't pass any parameters to rt_task_wait_period()
Steven
Quoted 11 lines · Steven Seeger
Quoted 5 lines
Yous seem to be running in periodic timing mode, with a default slice of 125 us.
Which parameters are passed tort_task_set_periodic()andrt_task_wait_period()in
your sampling task?I am confused why this matters? You said the latency test shows my realtime does not work, so clearly the problem I have isn't specific to my code, but rather to my system, right?
The latency figures obtained are totally braindamage, so either something weird is happening in 1) the real-time core, or 2) with the hw config selected, or 3) in the application.
1) is always possible, but you might also consider that early timer shots beyond two _milliseconds_ (-2293218 ns) would have been caught by a few other people on the list; this has not been the case yet. So considering a massive breakage in the real-time behaviour of that magnitude at this point of the investigation seems a bit premature.
2) Geode brings its own set of issues. SMI is one of them. Something may also go wrong when upgrading a kernel while reusing an old config file. Given your past answers, I now take for granted that it is not the case, but asking first is better.
3) v2.1 has changed a lot of things wrt v2.0, including the way some key configurations are made. Timing mode is one of those critical changes, and maybe one of those changes has had a negative impact in some unexpected way. Looking at the application to see what it requests to the real-time core and how it does it, is the usual way to start digging the issue.
Quoted 4 lines
Here is my call to
rt_task_set_periodic:
rt_task_set_periodic(&task, TM_NOW, rt_timer_ns2ticks(500000));
Ok, I think we might be dealing with a timing mode issue. Could you try disabling CONFIG_XENO_OPT_TIMING_PERIODIC in your kernel config (Timing menu) and re-run the latency test? TIA,
Quoted 2 lines
I don't pass any parameters to
rt_task_wait_period()
Yep, my mistake.
Quoted 3 lines
Steven
Signature · 1 line
Philippe.
Could my problem be caused by me using the latest SVN for xenomai? Should I try the released version instead?
Steven
Quoted 2 lines · Steven Seeger
Could my problem be caused by me using the latest SVN for xenomai? Should I try the released version instead?
You should first try my last suggestion, i.e. disable the forced periodic support from the configuration. If your application used to rely on the deprecated rt_timer_start() call for setting the oneshot mode, then enabling the periodic timing option is inappropriate.
Quoted 9 lines
Steven
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 7 lines · Philippe Gerum
Quoted 2 lines · Steven Seeger
Could my problem be caused by me using the latest SVN for xenomai? Should I try the released version instead?
You should first try my last suggestion, i.e. disable the forced periodic support from the configuration. If your application used to rely on the deprecated
rt_timer_start()call for setting the oneshot mode, then enabling the periodic timing option is inappropriate.
At the very least, it is inappropriate for running the latency test and explains the strange results.
Quoted 12 lines
Quoted 10 lines
Steven
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 2 lines · Steven Seeger
Maybe I didn't set it up right? I followed the instructions in the README.INSTALL file. Attached is my linux tree's .config.
Could you try and configure the timer in aperiodic mode ?
Signature · 1 line
Gilles Chanteperdrix.
No, my application uses and always has used periodic timing with a tick of 125 us.
Steven
Quoted 20 lines · Philippe Gerum
Quoted 2 lines · Steven Seeger
Could my problem be caused by me using the latest SVN for xenomai? Should I try the released version instead?
You should first try my last suggestion, i.e. disable the forced periodic support
from the configuration. If your application used to rely on the deprecatedrt_timer_start()call for setting the oneshot mode, then enabling the periodic timing option is inappropriate.Quoted 9 lines
Steven
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Just to let you know, I tried recompiling everything without periodic support enabled and I can't even load the xeno_nucleus.ko module. I get an -ENODEV presumably because my board won't work with the aperiodic timing mode.
Quoted 6 lines · Philippe Gerum
Yous seem to be running in periodic timing mode, with a default slice of 125 us.
Which parameters are passed tort_task_set_periodic()andrt_task_wait_period()in
your sampling task?