Question about latency
- JohnnyCNC
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
19 Jan 2020 17:16 #155164
by JohnnyCNC
Question about latency was created by JohnnyCNC
I was just testing latency on my new setup and found that I get better latency when running a base thread than I do without. I realize that both numbers are good considering I am using Mesa cards.
What are the pros and cons of running a base thread and not running one?
The only complaint I have about the machine is that the UI is sluggish on everything except LinuxCNC. If I run the halmeter it is hard to navigate scroll and select the pin to watch. Moving a browser on the screen causes all of the glxgears to stop and it doesn't move smoothly. Below is my setup and results.
Linux Mint 19.2 running the RTAI kernel and LinuxCNC 2.8.0~Pre1 on a ECS BAT-I j1800 montherboard with 4gb RAM, Mesa 5i25(6i25) + 7i76 + 7i83.
Linux X3CNC 4.14.148-rtai-amd64 #2 SMP PREEMPT Sat Nov 9 16:29:10 GMT 2019 x86_64 x86_64 x86_64 GNU/Linux
Thanks John
What are the pros and cons of running a base thread and not running one?
The only complaint I have about the machine is that the UI is sluggish on everything except LinuxCNC. If I run the halmeter it is hard to navigate scroll and select the pin to watch. Moving a browser on the screen causes all of the glxgears to stop and it doesn't move smoothly. Below is my setup and results.
Linux Mint 19.2 running the RTAI kernel and LinuxCNC 2.8.0~Pre1 on a ECS BAT-I j1800 montherboard with 4gb RAM, Mesa 5i25(6i25) + 7i76 + 7i83.
Linux X3CNC 4.14.148-rtai-amd64 #2 SMP PREEMPT Sat Nov 9 16:29:10 GMT 2019 x86_64 x86_64 x86_64 GNU/Linux
Thanks John
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17993
- Thank you received: 4838
19 Jan 2020 19:38 - 19 Jan 2020 19:39 #155179
by PCW
Replied by PCW on topic Question about latency
If you are using hardware stepping, a base thread will just waste CPU resources, as long as you
don't have more than a few 100 usec latency there is no real advantage to reducing the latency
don't have more than a few 100 usec latency there is no real advantage to reducing the latency
Last edit: 19 Jan 2020 19:39 by PCW.
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
20 Jan 2020 03:06 #155225
by JohnnyCNC
Replied by JohnnyCNC on topic Question about latency
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17993
- Thank you received: 4838
20 Jan 2020 03:22 #155228
by PCW
Replied by PCW on topic Question about latency
You will also see this effect if you increase the servo thread rate
I suspect it is a caching side effect ( a higher thread rate means its less likely
for real time bits of LinuxCNC to be evicted from the cache )
I suspect it is a caching side effect ( a higher thread rate means its less likely
for real time bits of LinuxCNC to be evicted from the cache )
Please Log in or Create an account to join the conversation.
Time to create page: 0.264 seconds