Error:Unexpected realtime delay on task 0 with period 1000000
- wade
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
15 Sep 2020 09:23 #182199
by wade
Error:Unexpected realtime delay on task 0 with period 1000000 was created 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?
Thanks & Best Regards
wade
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?
Thanks & Best Regards
wade
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4027
- Thank you received: 1739
15 Sep 2020 12:30 - 15 Sep 2020 12:32 #182225
by Aciera
Replied by Aciera on topic Error:Unexpected realtime delay on task 0 with period 1000000
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.
If you don't need the base_period try
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
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.
- wade
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Sep 2020 00:44 #182308
by wade
Replied by wade on topic Error:Unexpected realtime delay on task 0 with period 1000000
Hi,Platinum
Thanks for your kind advice。
I‘ll try it now。
Thanks & Best Regards
wade
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.
- dgarrett
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 323
16 Sep 2020 02:35 #182319
by dgarrett
Replied by dgarrett on topic Error:Unexpected realtime delay on task 0 with period 1000000
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:
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.
- wade
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Sep 2020 03:06 #182328
by wade
Replied by wade on topic Error:Unexpected realtime delay on task 0 with period 1000000
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
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19500
- Thank you received: 6539
16 Sep 2020 10:14 #182420
by tommylight
Replied by tommylight on topic Error:Unexpected realtime delay on task 0 with period 1000000
What hardware are you using?
Did you disable everything regarding power saving, C states, hyperthreading, virtualisation etc in the BIOS?
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.
- wade
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Sep 2020 14:43 #182441
by wade
Replied by wade on topic Error:Unexpected realtime delay on task 0 with period 1000000
I am using a cortex-a53 board.
now I'll try to config the things you as said.
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.068 seconds