Unexpected RTAI Delay Kernel 3.8

More
22 May 2014 15:49 #47189 by krutic
I have been getting a common warning message "RTAPI: ERROR: Unexpected realtime delay on task ...". The message occurs only at the beginning and not every time. Latency test shows the jitter around 5000 and my base period is set to 25000. I been using kernel 3.8.13, RTAI-4.0-test1, linuxcnc 2.6.0~pre on debian wheezy. It runs on intel atom d525 with isolated cpu. It worked without problem on kernel 2.6 and rtai 3.8. The main reasons for the latest configuration are video drivers for current intel motherboards. Probably the GUI is triggering this delay. Does someone have experiences with newest kernels?

Please Log in or Create an account to join the conversation.

More
22 May 2014 20:34 #47202 by andypugh
If it is genuinely a one-off error then you can probably ignore it. However as the error message is only displayed once it is rather hard to be sure that that is the case.

My Atom system suddenly started to give realtime delay errors, I eventually realised it was because I had a webcam plugged in. So it might be worth checking you don't have a USB device inserted that wasn't there before.

Please Log in or Create an account to join the conversation.

More
22 May 2014 20:44 #47204 by ArcEye
Hi

As Andy says the error is only shown once anyway, often the startup triggers an error with a sudden rush of openGL calls with Axis initiating, but is never repeated.
This can be video driver or card/chip related.

If you want to reassure yourself regards latency, use the /usr/realtime/testsuite/user/latency/run program, you will soon see where the spike is and whether it is truely a one off, or something to be concerned about.

I have had problems with 3.8.13 and the new RTAI that I have not been able to nail down and which did not occur with 3.8.0 and earlier RTAI.
They all revolve around building LCNC and rtai_math, specifically unknown symbols which should be functions provided by libposemath and libm.a

I would be interested to see your kernel and rtai configs and exact RTAI version you used, to see if I can nail down where the problem has been and why yours works.

regards

Please Log in or Create an account to join the conversation.

More
23 May 2014 14:11 - 23 May 2014 14:17 #47228 by krutic
rtai 4.0-test1

kernel 3.8.13



I also think it is related with opengl have to look closer which routine causes this delay because when I run glxgears still have nice latency. Even the opengl window in linuxcnc need some time to show. Old system based on squeeze worked great and without the delay. It's either the kernel part of the graphics driver or new libraries coming from debian wheezy. I also can't shutdown the computer in most cases. It is necessary to command "halrun -U" before that or you get a nice kernel panic for instance...
Last edit: 23 May 2014 14:17 by krutic. Reason: Don't know how to attach a file

Please Log in or Create an account to join the conversation.

More
23 May 2014 14:29 #47229 by krutic
I would like to upload the .config files you want I've tried it tree times without success.

Please Log in or Create an account to join the conversation.

More
23 May 2014 14:55 #47230 by ArcEye

I would like to upload the .config files you want I've tried it tree times without success.


Thanks, easiest way is to zip them and attach the zip.

Otherwise rename them to a .txt extension and they will attach

regards

Please Log in or Create an account to join the conversation.

More
23 May 2014 14:58 #47231 by ArcEye

I also think it is related with opengl have to look closer which routine causes this delay because when I run glxgears still have nice latency. Even the opengl window in linuxcnc need some time to show


I have found in the past that glxgears is a good indicator of total incompatibility, but does not put enough load on to simulate Axis.
You can run glxgears and still have problems when Axis opens.
They probably do not make all the same calls and not as many of them

regards

Please Log in or Create an account to join the conversation.

More
23 May 2014 15:15 - 23 May 2014 15:19 #47234 by krutic

File Attachment:

File Name: conf.tar_2...05-23.gz
File Size:20 KB
Attachments:
Last edit: 23 May 2014 15:19 by krutic. Reason: Bad archive

Please Log in or Create an account to join the conversation.

More
23 May 2014 15:18 #47235 by ArcEye
Thanks,

However I seem to have 3 copies of the RTAI config under different names in my copy

Please Log in or Create an account to join the conversation.

More
23 May 2014 15:29 #47236 by krutic
Yes, sorry it was just a test if it's going to work I didn't expect you are so fast. Anyway the kernel is compiled for intel Atom D525 with an integrated graphics card i915 driver. It was meant to run only linuxcnc nothing else. Therefore everything what seems useless to me it's disabled.

Please Log in or Create an account to join the conversation.

Time to create page: 0.145 seconds
Powered by Kunena Forum