latency spike up need help

More
05 Jan 2019 11:22 #123539 by thang
Recently, i get a new PC with this config:



After installing ubuntu 16.04, realtime preempt-rt 4.9.84 kernel, and linuxcnc, i try test latency then it gives me a very disappoint number:


The latency spike up random, I tried many solutions:
1: Disable SMI control -> doesnt work
2: Disable ACPI and usb legacy support in BIOS
3: Disable core and hyper threading, my PC can run a few minutes with low latency then spike up random.
After it spike up, i try click "Reset statistcs" on latency-test but it still keep that high value

This is the first time i cant fix latency by above solutions. Are there any solutions that i can try? please give me some. thank you
Attachments:

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

More
05 Jan 2019 14:23 #123544 by PCW
Replied by PCW on topic latency spike up need help
Did you disable all CPU speed switching/power management
in the BIOS (Limit C states to C1 max etc)?

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

More
05 Jan 2019 18:10 #123561 by ahhkoch

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

More
05 Jan 2019 22:39 - 05 Jan 2019 22:50 #123573 by tommylight
You have to disable power saving options and check for SMI issues.
Also download the Wheezy version of Linuxcnc and make a bootable USB, use it to boot the computer and check the latency. RTAI version might work better on that PC.
Last edit: 05 Jan 2019 22:50 by tommylight. Reason: more info

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

More
06 Jan 2019 13:35 #123602 by pl7i92
Replied by pl7i92 on topic latency spike up need help
you can try to get smictl to help you find a good solution

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

More
06 Jan 2019 13:50 - 06 Jan 2019 14:30 #123604 by thang
Replied by thang on topic latency spike up need help
Thanks all for help guys,

Today i found out in BIOS there is a "SMI lock" in chipset section. After enabled it latency seem work ok.The smictl maybe doesnt work in this PC. I will try more test to confirm it.

After reseting PC, latency spike up again :(
Last edit: 06 Jan 2019 14:30 by thang. Reason: update status

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

More
08 Jan 2019 12:00 - 08 Jan 2019 12:01 #123771 by thang
Replied by thang on topic latency spike up need help

Thanks all for help guys,

Today i found out in BIOS there is a "SMI lock" in chipset section. After enabled it latency seem work ok.The smictl maybe doesnt work in this PC. I will try more test to confirm it.

After reseting PC, latency spike up again :(


Exactly the latency is still ok when i run latency-test, but when i run linuxcnc that has classicladder ( using modbus as slave) i got "Unexpected realtime delay" even my servo thread is 500us, classicladder's thread is 10ms and didnt connect to master yet.

It happened not right away and only in this PC, do you think what can cause this problem?
Last edit: 08 Jan 2019 12:01 by thang.

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

Time to create page: 0.104 seconds
Powered by Kunena Forum