Mesa 7i96S - Error finishing read iter ...
- karnalta
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 11
23 Oct 2023 15:55 #283609
by karnalta
Mesa 7i96S - Error finishing read iter ... was created by karnalta
Hello all,
I am using a Mesa 7i96S coupled with a mini PC for LinuxCNC but I am facing what seem to be latency problem.
Sometime, I get a error at startup complaining about a abnormal task delay of over 1000000.
Sometime, it start and work normally but after a few minutes the machine stop with a error like "Error finishing read iter : xxxx".
I really don't know what to look at ?
Here are data that I think will be required to help me :
I am using a Mesa 7i96S coupled with a mini PC for LinuxCNC but I am facing what seem to be latency problem.
Sometime, I get a error at startup complaining about a abnormal task delay of over 1000000.
Sometime, it start and work normally but after a few minutes the machine stop with a error like "Error finishing read iter : xxxx".
I really don't know what to look at ?
Here are data that I think will be required to help me :
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
23 Oct 2023 17:02 #283616
by PCW
Replied by PCW on topic Mesa 7i96S - Error finishing read iter ...
Have you disabled all power saving options in the BIOS?
(C states > C1, turbo modes etc)
Can you use a later kernel? (6.3 or later are usually better)
If nothing else works, you can try increasing the servo thread period to 2 ms
(2000000 ns)
(C states > C1, turbo modes etc)
Can you use a later kernel? (6.3 or later are usually better)
If nothing else works, you can try increasing the servo thread period to 2 ms
(2000000 ns)
Please Log in or Create an account to join the conversation.
- karnalta
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 11
23 Oct 2023 17:55 #283623
by karnalta
- VT
- Turbo Mode
- SpeedStep
- C-STATE
I will try to use a later kernel so.
You think my issue is the max Jitter ?
Are my hm2.* values good ?
Replied by karnalta on topic Mesa 7i96S - Error finishing read iter ...
In BIOS I have exactly disabled :Have you disabled all power saving options in the BIOS?
(C states > C1, turbo modes etc)
Can you use a later kernel? (6.3 or later are usually better)
If nothing else works, you can try increasing the servo thread period to 2 ms
(2000000 ns)
- VT
- Turbo Mode
- SpeedStep
- C-STATE
I will try to use a later kernel so.
You think my issue is the max Jitter ?
Are my hm2.* values good ?
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
23 Oct 2023 18:09 #283628
by PCW
Replied by PCW on topic Mesa 7i96S - Error finishing read iter ...
Interpreting the max jitter values requires the CPU clock speed
(as those value are in CPU clocks)
Assuming a ~2 or ~3 GHz CPU those numbers look OK
(but I suspect they were taken before you got an error...)
(as those value are in CPU clocks)
Assuming a ~2 or ~3 GHz CPU those numbers look OK
(but I suspect they were taken before you got an error...)
The following user(s) said Thank You: karnalta
Please Log in or Create an account to join the conversation.
- karnalta
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 11
23 Oct 2023 18:41 #283632
by karnalta
Honestly I don't remember if it's before or after the crash.. I will check again.
While I have an expert at my disposal
Can you confirm that I do understand the basic of LinuxCNC :
- If my axis has a scale of 200, it mean my stepper need 200 pulses per mm of travel.
- If my step lenght and step space are 5000 ns, it mean 5uS so it can theorically pulse 100.000 times per second.
- If I need my axis to move at max 40 mm/s, it make 200 * 40, so I only need 8000 pulses per second ?
Lastly, what is the servo thread period ? As it seem way slower than the pulse rate requirement. I don't understand it.
Thank you.
Replied by karnalta on topic Mesa 7i96S - Error finishing read iter ...
It's an Intel N100 based fanless PC.Interpreting the max jitter values requires the CPU clock speed
(as those value are in CPU clocks)
Assuming a ~2 or ~3 GHz CPU those numbers look OK
(but I suspect they were taken before you got an error...)
Honestly I don't remember if it's before or after the crash.. I will check again.
While I have an expert at my disposal

- If my axis has a scale of 200, it mean my stepper need 200 pulses per mm of travel.
- If my step lenght and step space are 5000 ns, it mean 5uS so it can theorically pulse 100.000 times per second.
- If I need my axis to move at max 40 mm/s, it make 200 * 40, so I only need 8000 pulses per second ?
Lastly, what is the servo thread period ? As it seem way slower than the pulse rate requirement. I don't understand it.
Thank you.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
23 Oct 2023 19:20 #283633
by PCW
Replied by PCW on topic Mesa 7i96S - Error finishing read iter ...
A scale of 200 means 200 pulses (or encoder counts) per machine unit
A step length of 5000 ns and step space of 5000 ns would limit the peak step
rate to 100K steps per second
Yes, 40 mm/sec with 200 steps/mm is 8000 steps/second
The servo period determines how often LinuxCNC updates positions
and in the case of most controlled hardware, how often the
velocity is updated.
In the specific case of Mesa hardware stepgens, the stepgen step rate
(which can be as high as 10 MHz) is adjusted ever servo thread.
A step length of 5000 ns and step space of 5000 ns would limit the peak step
rate to 100K steps per second
Yes, 40 mm/sec with 200 steps/mm is 8000 steps/second
The servo period determines how often LinuxCNC updates positions
and in the case of most controlled hardware, how often the
velocity is updated.
In the specific case of Mesa hardware stepgens, the stepgen step rate
(which can be as high as 10 MHz) is adjusted ever servo thread.
The following user(s) said Thank You: karnalta
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
23 Oct 2023 23:20 #283645
by PCW
Replied by PCW on topic Mesa 7i96S - Error finishing read iter ...
A couple other things that help network latency are
1. If you have an Intel Ethernet chip, turn off IRQ coalescing
(man hm2_eth)
2. Pin the Ethernet IRQ to the last CPU ( setting the Ethernet IRQs smp_affinity to 8 does this on a 4 core CPU)
1. If you have an Intel Ethernet chip, turn off IRQ coalescing
(man hm2_eth)
2. Pin the Ethernet IRQ to the last CPU ( setting the Ethernet IRQs smp_affinity to 8 does this on a 4 core CPU)
Please Log in or Create an account to join the conversation.
- karnalta
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 11
24 Oct 2023 17:27 #283731
by karnalta
I checked the NIC in that mini computer, it's realtek chip.
What is strange is that error happen out of nowhere while idle. As you can see on this screenshot, I have turned on the machine at 18h20 and have homed the axis. Then I have leave the machine alone while eating and when I come back I see that error has happened at 18h49 while doing nothing.
Replied by karnalta on topic Mesa 7i96S - Error finishing read iter ...
I switched to kernel 6.5 but don't really have improvement.
I checked the NIC in that mini computer, it's realtek chip.
What is strange is that error happen out of nowhere while idle. As you can see on this screenshot, I have turned on the machine at 18h20 and have homed the axis. Then I have leave the machine alone while eating and when I come back I see that error has happened at 18h49 while doing nothing.
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
24 Oct 2023 18:23 - 24 Oct 2023 18:25 #283738
by PCW
Replied by PCW on topic Mesa 7i96S - Error finishing read iter ...
When you get the error, do you have a red LED illuminated on the 7I96S?
Did you try a 2 ms servo thread?
Did you try a 2 ms servo thread?
Last edit: 24 Oct 2023 18:25 by PCW.
Please Log in or Create an account to join the conversation.
- karnalta
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 11
24 Oct 2023 18:55 #283744
by karnalta
Not yet with 2ms thread, is there any negative effect ? I guest if my machine is quite slow it should not induce tracking error ?
Replied by karnalta on topic Mesa 7i96S - Error finishing read iter ...
I am not sure but it's possible that there is a red led, I have to check again. Does it mean a specific problem ?When you get the error, do you have a red LED illuminated on the 7I96S?
Did you try a 2 ms servo thread?
Not yet with 2ms thread, is there any negative effect ? I guest if my machine is quite slow it should not induce tracking error ?
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.163 seconds