Error:Unexpected realtime delay on task 0 with period 1000000

More
15 Sep 2020 09:23 #182199 by wade
Dears
I've successfully run linuxcnc and get in the UI. but I can't switch on my servo .
There is an error appeared on the UI said:
************************************************************************
Unexpected realtime delay on task 0 with period 1000000
This message will only display once per session.
Run the latency Test and resolve before continuing.
************************************************************************
and when I run the latency-test ,it has 1ms period with 25us jitter.
What can I do now?

File Attachment:

File Name: cpd17_x_20...9-15.hal
File Size:1 KB

File Attachment:

File Name: cpd17_x_20...9-15.ini
File Size:4 KB

File Attachment:

File Name: ethercat-c...9-15.xml
File Size:2 KB

Thanks & Best Regards
wade
Attachments:

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

More
15 Sep 2020 12:30 - 15 Sep 2020 12:32 #182225 by Aciera
You seem to be using Ethercat about which I now very little, but you call for a base_period of zero.
That looks a bit strange to me.

[EMCMOT]

EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 0
SERVO_PERIOD = 1000000


If you don't need the base_period try
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
Last edit: 15 Sep 2020 12:32 by Aciera.

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

More
16 Sep 2020 00:44 #182308 by wade
Hi,Platinum
Thanks for your kind advice。
I‘ll try it now。
Thanks & Best Regards
wade

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

More
16 Sep 2020 02:35 #182319 by dgarrett
The motion module (motmod, typically specified as [EMCMOT]EMCMOT)
defaults are:
base_period_nsec=0
servo_period_nsec=100000.
No base thread is created when base_period_nsec=0

Demonstrate using halrun:
$ halrun
halcmd: loadrt trivkins
Note: Using POSIX non-realtime
halcmd: loadrt motmod base_period_nsec=0
halcmd: show thread
Realtime Threads:
     Period  FP     Name               (     Time, Max-Time )
    1000000  YES          servo-thread (        0,        0 )

halcmd:
The following user(s) said Thank You: Aciera

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

More
16 Sep 2020 03:06 #182328 by wade
Hi Platinum
I‘ve tride your advice to remove base_period_nsec,but after that , the linuxcnc can not run correctly.
I think I have found the reason about the Error message. I set the period 1ms, but actually the task run max 10x period.
The following is the message shown at the terminal
*********************************************************
Unexcepted realtime delay on task 0 with period 1000000
This message will only display once per session.
Run the Latency Test and resolve before continuing.
task: main loop took 0.022446 seconds
task: main loop took 0.010904 seconds
task: main loop took 0.011113 seconds
task: main loop took 0.011344 seconds
task: main loop took 0.030612 seconds
Shutting down and cleaning uo LinuxCNC
task: 44863 cycles, min=0.000744, max=0.081036, avg=0.002223, 159 latency excurs
ions (> 10x excepted cycle time of 0.001000s)
Note: Using POSIX realtime
*************************************************************
My linux kernel is 4.19.132-cip30-rt59 and when I run latency-test , servo-period 1ms just with 25us jitter. I have no idea why when I run linuxcnc with an Ethercat servo, the jitter changes to be 10x.

Thanks & Best Regards
wade

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

More
16 Sep 2020 10:14 #182420 by tommylight
What hardware are you using?
Did you disable everything regarding power saving, C states, hyperthreading, virtualisation etc in the BIOS?

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

More
16 Sep 2020 14:43 #182441 by wade
I am using a cortex-a53 board.
now I'll try to config the things you as said.

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

Time to create page: 0.115 seconds
Powered by Kunena Forum