latency-histogram gets error messages
07 Oct 2016 22:42 #81367
by skelem
Replied by skelem on topic latency-histogram gets error messages
I re-built and get the following for jitter:
7,825,205 servo thread (1ms)
7,931,188 base thread (25us)
which is about 1/2 of what it was before.
I checked for PREEMPT in .config:
CONFIG_PREEMPT_RCU=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_RT_BASE=y
CONFIG_HAVE_PREEMPT_LAZY=y
CONFIG_PREEMPT_LAZY=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT__LL is not set
# CONFIG_PREEMPT_RTB is not set
CONFIG_PREEMPT_RT_FULL=y
CONFIG_PREEMPT_COUNT=y
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_PREEMPT_TRACER is not set
But then I noticed that ACPI was still enabled. I wasn't able to disable ACPI using "make gconfig", either as me or as root, so I edited .config manually, and re-built...
and CONFIG_ACPI is changed back to "y" when I run "make"! WTF?
7,825,205 servo thread (1ms)
7,931,188 base thread (25us)
which is about 1/2 of what it was before.
I checked for PREEMPT in .config:
CONFIG_PREEMPT_RCU=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_RT_BASE=y
CONFIG_HAVE_PREEMPT_LAZY=y
CONFIG_PREEMPT_LAZY=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT__LL is not set
# CONFIG_PREEMPT_RTB is not set
CONFIG_PREEMPT_RT_FULL=y
CONFIG_PREEMPT_COUNT=y
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_PREEMPT_TRACER is not set
But then I noticed that ACPI was still enabled. I wasn't able to disable ACPI using "make gconfig", either as me or as root, so I edited .config manually, and re-built...
and CONFIG_ACPI is changed back to "y" when I run "make"! WTF?
Please Log in or Create an account to join the conversation.
07 Oct 2016 22:55 - 07 Oct 2016 23:23 #81369
by PCW
Replied by PCW on topic latency-histogram gets error messages
8 ms is still quite terrible, there's very likely some basic setup still wrong
Do you have all power management disabled in the BIOS setup? (including all Cstates)
Here's a third gen I5 running Preempt-RT:
freeby.mesanet.com/elite8300-preempt-rt.png
(The Latency problem is not too likely to be ACPI related plus you need some ACPI functions for power down etc)
Do you have all power management disabled in the BIOS setup? (including all Cstates)
Here's a third gen I5 running Preempt-RT:
freeby.mesanet.com/elite8300-preempt-rt.png
(The Latency problem is not too likely to be ACPI related plus you need some ACPI functions for power down etc)
Last edit: 07 Oct 2016 23:23 by PCW.
Please Log in or Create an account to join the conversation.
07 Oct 2016 23:38 #81371
by skelem
Replied by skelem on topic latency-histogram gets error messages
Here are the power settings in my bios.
Native ACPI OS PCIe Support was already off.
I turned off PCIe ASPM Support just now.
Is there anything else I should turn off?
Native ACPI OS PCIe Support was already off.
I turned off PCIe ASPM Support just now.
Is there anything else I should turn off?
Please Log in or Create an account to join the conversation.
08 Oct 2016 00:04 - 08 Oct 2016 00:11 #81372
by PCW
Replied by PCW on topic latency-histogram gets error messages
Hard to tell what the BIOS still has enabled
You might try adding:
To the kernel command line:
sudo gedit /etc/default/grub
(add command line options and save)
sudo update-grub
(reboot)
You might try adding:
intel_idle.max_cstate=1 idle=poll
To the kernel command line:
sudo gedit /etc/default/grub
(add command line options and save)
sudo update-grub
(reboot)
Last edit: 08 Oct 2016 00:11 by PCW.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
08 Oct 2016 00:32 - 08 Oct 2016 00:36 #81375
by tommylight
Replied by tommylight on topic latency-histogram gets error messages
Here is a list of things to disable in the bios:
-hyperthreading < really bad for latency
-serial ports <do not know how bad but i disable always
-infrared if any< does mess up latency
-modem <all are software using the audio card, all bad for latency
-speed step < with RTAI it has to be disabled, with RT-preempt not obligatory
-APM <things like suspend HDD and some others, not totaly disabled
-cpu throtling < usually no difference, but if it heats up it will slow down everything
-web cam if any < usually through USB so not obligatory
-virtualizations < all, there are several on new hardware
-procesor power states <some laptops have that too
I had several cases on laptops that did terrible latency with those active and got to quite usable after disabling those, i am on a Lenovo T420s right now getting 34100 on base and 20900 on servo thread with RT-preempt and 8 glxgears running while browsing the forum, before disabling everything i do not need it was over 4000000 on both. New DELL laptops do badly on latency, but still under 300000 on base thread.
Almost forgot,
New high end laptops (like the before mentioned Lenovo T420s) have 2 graphic cards and they can switch between them on the fly (while working), one Intel and one NVIDIA so there is a BIOS setting for choosing one of them or both, i choose INTEL and disable switching.
-hyperthreading < really bad for latency
-serial ports <do not know how bad but i disable always
-infrared if any< does mess up latency
-modem <all are software using the audio card, all bad for latency
-speed step < with RTAI it has to be disabled, with RT-preempt not obligatory
-APM <things like suspend HDD and some others, not totaly disabled
-cpu throtling < usually no difference, but if it heats up it will slow down everything
-web cam if any < usually through USB so not obligatory
-virtualizations < all, there are several on new hardware
-procesor power states <some laptops have that too
I had several cases on laptops that did terrible latency with those active and got to quite usable after disabling those, i am on a Lenovo T420s right now getting 34100 on base and 20900 on servo thread with RT-preempt and 8 glxgears running while browsing the forum, before disabling everything i do not need it was over 4000000 on both. New DELL laptops do badly on latency, but still under 300000 on base thread.
Almost forgot,
New high end laptops (like the before mentioned Lenovo T420s) have 2 graphic cards and they can switch between them on the fly (while working), one Intel and one NVIDIA so there is a BIOS setting for choosing one of them or both, i choose INTEL and disable switching.
Last edit: 08 Oct 2016 00:36 by tommylight. Reason: added more info
Please Log in or Create an account to join the conversation.
Time to create page: 0.073 seconds