64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
19 Apr 2014 22:47 #46112
by rythmnbls
64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre was created by rythmnbls
I've playing around with the software combo in the topic title and have been getting conflicting latency scores depending on which test is run.
The machine is an ASUS P6TD with a core I7 cpu.
All the usual bios/kernel settings have been set, Hyper-threading off, power management disabled and the kernel was booted with isolcups=2,3 and noirqbalance, I can attach kernel/rtai configs if needed.
The results from realtime/testsuite/kern/latency look good and are attached as latency.txt
The results from latency-test vary wildly and just plain don't make any sense, two screen shots attached.
Linuxcnc itself runs fine and never complains about realtime delays.
Any ideas of where I should look to get latency-test to behave ?
Regards.
Steve.
The machine is an ASUS P6TD with a core I7 cpu.
All the usual bios/kernel settings have been set, Hyper-threading off, power management disabled and the kernel was booted with isolcups=2,3 and noirqbalance, I can attach kernel/rtai configs if needed.
The results from realtime/testsuite/kern/latency look good and are attached as latency.txt
The results from latency-test vary wildly and just plain don't make any sense, two screen shots attached.
Linuxcnc itself runs fine and never complains about realtime delays.
Any ideas of where I should look to get latency-test to behave ?
Regards.
Steve.
Please Log in or Create an account to join the conversation.
19 Apr 2014 23:27 #46114
by ArcEye
Replied by ArcEye on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
Hi
If you let the realtime terminal latency test run for a bit, I would suspect you will get one or more spikes.
You should be able to work out then what events are causing it
Because the dialog based latency test is cumulative, all you see is the worst historical figure.
The immediate difference between the 2 can be something as simple as a mouse, you are never going to use it for the terminal test, but will instinctively do so for the dialog based test
regards
If you let the realtime terminal latency test run for a bit, I would suspect you will get one or more spikes.
You should be able to work out then what events are causing it
Because the dialog based latency test is cumulative, all you see is the worst historical figure.
The immediate difference between the 2 can be something as simple as a mouse, you are never going to use it for the terminal test, but will instinctively do so for the dialog based test
regards
Please Log in or Create an account to join the conversation.
20 Apr 2014 21:26 #46139
by rythmnbls
Replied by rythmnbls on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
I ran the terminal based test for several hours, with 8 instances of glxgears, watched a bunch of videos on YouTube and created a few 4.7G DVD iso images, the results are attached. Load average was over 7.00 on cpus 0 and 1, cpus 2 and 3 are isolated.
Another thing to note is the numbers shown on the gui dialogs are what is displayed at launch, clicking reset has no effect, only the least 2 or 3 significant digits change, stranger still, the startup values can vary by as much as 3 orders of magnitude at launch.
Regards.
Steve.
Another thing to note is the numbers shown on the gui dialogs are what is displayed at launch, clicking reset has no effect, only the least 2 or 3 significant digits change, stranger still, the startup values can vary by as much as 3 orders of magnitude at launch.
Regards.
Steve.
Please Log in or Create an account to join the conversation.
21 Apr 2014 00:38 #46143
by jmelson
Max Jitter (ns) is actually the period of a thread, and NOT the jitter, which
would be some form of difference between thread times. Has anybody
changed this code recently? Is it possible somehow a 64 bit bug has
been introduced?
Jon
Replied by jmelson on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
These LinuxCNC Hal latency pages look suspciously like the middle column
The results from realtime/testsuite/kern/latency look good and are attached as latency.txt
The results from latency-test vary wildly and just plain don't make any sense, two screen shots attached.
[/attachment]
Max Jitter (ns) is actually the period of a thread, and NOT the jitter, which
would be some form of difference between thread times. Has anybody
changed this code recently? Is it possible somehow a 64 bit bug has
been introduced?
Jon
Please Log in or Create an account to join the conversation.
21 Apr 2014 01:45 #46146
by rythmnbls
Replied by rythmnbls on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
Another minor problem I've encountered is the Base Information dialog in stepconf. The Step Time, Step Space and Direction Hold values seem to be limited to a max value of 100ns. I've attached a patch that fixed it for me.
Regards,
Steve.
Regards,
Steve.
The following user(s) said Thank You: Officer
Please Log in or Create an account to join the conversation.
22 Apr 2014 04:16 #46197
by rythmnbls
Replied by rythmnbls on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
Please Log in or Create an account to join the conversation.
22 Apr 2014 20:10 #46214
by andypugh
They look better than _quite_ good.
Replied by andypugh on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
The latency problem is fixed, the problem was the kernel config, the interval numbers now look right and the jitter values look quite good.
They look better than _quite_ good.
Please Log in or Create an account to join the conversation.
05 May 2014 11:32 #46600
by Bari
Replied by Bari on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
Can you please post your kernel config for others to try it?
Please Log in or Create an account to join the conversation.
05 May 2014 13:21 - 05 May 2014 13:22 #46604
by ArcEye
Replied by ArcEye on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
Yes, and the kernel patch used would be good.
I have an old one, but there are currently no published 3.x.x patches in magma or RTAI for x86_64, that I am aware of.
regards
I have an old one, but there are currently no published 3.x.x patches in magma or RTAI for x86_64, that I am aware of.
regards
Last edit: 05 May 2014 13:22 by ArcEye.
Please Log in or Create an account to join the conversation.
05 May 2014 13:37 #46605
by Bari
Replied by Bari on topic 64bit + linux-3.8.13/rtai-4.0 + linuxcnc-2.6.0-pre
github.com/ShabbyX/RTAI is where the new code starts.
github.com/ShabbyX/RTAI/tree/linuxcnc-old
Check with NTULINUX / memleak (in #linuxcnc-devel)
github.com/ShabbyX/RTAI/tree/linuxcnc-old
Check with NTULINUX / memleak (in #linuxcnc-devel)
Please Log in or Create an account to join the conversation.
Time to create page: 0.128 seconds