Preempt-RT kernel aceptable latency
18 Feb 2016 21:45 #70354
by jtc
Preempt-RT kernel aceptable latency was created by jtc
Please Log in or Create an account to join the conversation.
18 Feb 2016 23:28 - 18 Feb 2016 23:28 #70357
by PCW
Replied by PCW on topic Preempt-RT kernel aceptable latency
I would first try the latency test with the base thread disabled,
since this is the environment (servo thread only) that you will be running with hm2_eth:
latency-test 1000000 1000000
or:
latency-histogram --nobase
400000 (.4 ms) might be barely OK but you wont know till you try
if you cannot improve this with BIOS settings or a more recent kernel
(current Preempt-RT is 4.4.1-rt6) you could probably use a 2 ms servo thread
since this is the environment (servo thread only) that you will be running with hm2_eth:
latency-test 1000000 1000000
or:
latency-histogram --nobase
400000 (.4 ms) might be barely OK but you wont know till you try
if you cannot improve this with BIOS settings or a more recent kernel
(current Preempt-RT is 4.4.1-rt6) you could probably use a 2 ms servo thread
Last edit: 18 Feb 2016 23:28 by PCW.
Please Log in or Create an account to join the conversation.
19 Feb 2016 21:07 #70383
by jtc
Replied by jtc on topic Preempt-RT kernel aceptable latency
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
19 Feb 2016 21:54 - 19 Feb 2016 22:04 #70385
by Todd Zuercher
Replied by Todd Zuercher on topic Preempt-RT kernel aceptable latency
My ASROCK Q1900m-PRO3 does much better than that with Preempt-RT about 15us (and with RTAI it's even better). Are you sure you have all the power saving "features" disabled in the BIOS?
Last edit: 19 Feb 2016 22:04 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
19 Feb 2016 22:38 #70387
by perra_e
Replied by perra_e on topic Preempt-RT kernel aceptable latency
I also have a Q1900 mb and "turning off" 3 cores in linux made a big difference for me. I don't remember how I did, but it should not be too hard to find.
--Per
--Per
Please Log in or Create an account to join the conversation.
19 Feb 2016 23:10 #70388
by PCW
Replied by PCW on topic Preempt-RT kernel aceptable latency
You can install a new Preempt-RT kernel fairly easily in most systems, but it looks
like your servo thread only latency is fine for a 7I76E at 1 KHz servo thread rate
Note that if you are running a non-parallel port system, latencies are much less important.
you definitely dont want to disable any cores if you are running external stepgens/encoder counters,
as that will just make the system slower, and on real time uspace Ethernet systems will
typically increase the network latency
like your servo thread only latency is fine for a 7I76E at 1 KHz servo thread rate
Note that if you are running a non-parallel port system, latencies are much less important.
you definitely dont want to disable any cores if you are running external stepgens/encoder counters,
as that will just make the system slower, and on real time uspace Ethernet systems will
typically increase the network latency
Please Log in or Create an account to join the conversation.
19 Feb 2016 23:42 #70389
by perra_e
Replied by perra_e on topic Preempt-RT kernel aceptable latency
I was thinking of this page
wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Is..._Parameter_And_GRUB2
. when I wrote "turn off core".
I might have to remove this setting then since I will add a stepgen for my toolchanger.
--Per
I might have to remove this setting then since I will add a stepgen for my toolchanger.
--Per
Please Log in or Create an account to join the conversation.
- sprintertrd
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 7
20 Feb 2016 11:56 #70396
by sprintertrd
Replied by sprintertrd on topic Preempt-RT kernel aceptable latency
I have a Asrock Q1900M motherboard and the 1ms servo thread is less than 3570ns with the 25ms base thread at 13624 running two instances of GLXGears.
I have turned all the C state stuff, onboard audio off in the bios. and I am using a ssd hard disk
I installed linuxmint LMDE2 mate 64 bit edition and followed TJ's install here forum.linuxcnc.org/forum/9-installing-li...debian-8-mint-lmde-2
The kernel I am using is 3.18.13-rt10mah with kernel parameters of isolcpus=2,3 intel_idle.max_cstate=0 processor.max_cstate=0
I have turned all the C state stuff, onboard audio off in the bios. and I am using a ssd hard disk
I installed linuxmint LMDE2 mate 64 bit edition and followed TJ's install here forum.linuxcnc.org/forum/9-installing-li...debian-8-mint-lmde-2
The kernel I am using is 3.18.13-rt10mah with kernel parameters of isolcpus=2,3 intel_idle.max_cstate=0 processor.max_cstate=0
Please Log in or Create an account to join the conversation.
20 Feb 2016 20:18 #70411
by jtc
Replied by jtc on topic Preempt-RT kernel aceptable latency
Please Log in or Create an account to join the conversation.
- sprintertrd
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 7
21 Feb 2016 21:32 #70458
by sprintertrd
Replied by sprintertrd on topic Preempt-RT kernel aceptable latency
Yes I am using the on-board graphics card and allocated 512K memory for it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.316 seconds