<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Troubleshooting</title>
    <link>/core/troubleshooting/index.html</link>
    <description>Generic issues isolcpus is our friend too CONFIG_DEBUG_HARD_LOCKS is cool but ruins real-time guarantees CPU frequency scaling (usually) has a negative impact on latency Disable CONFIG_SMP for best latency on single-core systems Memory compaction and page migration impact real-time behavior Architecture-specific issues x86-specific issues Last modified: Wed, 25 Nov 2026 18:51:17 +0100</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright 2001-2026 The Xenomai project.</copyright>
    <atom:link href="/core/troubleshooting/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>isolcpus is our friend too</title>
      <link>/core/troubleshooting/cpu-isolation/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/core/troubleshooting/cpu-isolation/index.html</guid>
      <description>Isolating some CPUs on the kernel command line using the isolcpus= option, in order to prevent the load balancer from offloading in-band work to them is not only a good idea with PREEMPT_RT, but for any dual kernel configuration too.&#xA;By doing so, having some random in-band work evicting cache lines on a CPU where real-time threads briefly sleep is less likely, increasing the odds of costly cache misses, which translates positively into the latency numbers you can get. Even if EVL’s small footprint core has a limited exposure to such kind of disturbance, saving a handful of microseconds is worth it when the worst case figure is already within tenths of microseconds.</description>
    </item>
    <item>
      <title>CONFIG_DEBUG_HARD_LOCKS is cool but ruins real-time guarantees</title>
      <link>/core/troubleshooting/lock-debugging/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/core/troubleshooting/lock-debugging/index.html</guid>
      <description>When CONFIG_DEBUG_HARD_LOCKS is enabled, the lock dependency engine (CONFIG_LOCKDEP) which helps in tracking down deadlocks and other locking-related issues is also enabled for Dovetail’s hard locks, which underpins most of the serialization mechanisms the EVL core uses.&#xA;This is nice as it has the lock validator monitor the hard spinlocks EVL uses too. However, this comes with a high price latency-wise: seeing hundreds of microseconds spent in the validator with hard interrupts off from time to time is not uncommon. Running the latency monitoring utility (aka latmus) which is part of libevl in this configuration should give you pretty ugly numbers.</description>
    </item>
    <item>
      <title>CPU frequency scaling (usually) has a negative impact on latency</title>
      <link>/core/troubleshooting/cpufreq/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/core/troubleshooting/cpufreq/index.html</guid>
      <description>Enabling the ondemand CPUFreq governor - or any governor performing dynamic adjustment of the CPU frequency - may induce significant latency for EVL on your system, from ten microseconds to more than a hundred depending on the hardware. Selecting the so-called performance governor is the safe option, which guarantees that no frequency transition ever happens, keeping the CPUs at their maximum processing speed.&#xA;In other words, if CONFIG_CPU_FREQ has to be enabled in your configuration, enabling CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE and CONFIG_CPU_FREQ_GOV_PERFORMANCE exclusively is most often the best way to prevent unexpectedly high latency peaks.</description>
    </item>
    <item>
      <title>Disable CONFIG_SMP for best latency on single-core systems</title>
      <link>/core/troubleshooting/single-core/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/core/troubleshooting/single-core/index.html</guid>
      <description>On single-core hardware, some out-of-line code may still be executed for dealing with various types of spinlock with a SMP build, which translates into additional CPU branches and cache misses. On low end hardware, this overhead may be noticeable.&#xA;Therefore, if you neither need SMP support nor kernel debug options which depend on instrumenting the spinlock constructs (e.g. CONFIG_DEBUG_PREEMPT), you may want to disable all the related kernel options, starting with CONFIG_SMP.</description>
    </item>
    <item>
      <title>Memory compaction and page migration impact real-time behavior</title>
      <link>/core/troubleshooting/memory-compaction/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/core/troubleshooting/memory-compaction/index.html</guid>
      <description>Several kernel configuration options related to memory management can introduce unpredictable latency through page migration and page fault handling, which is problematic for real-time workloads:&#xA;CONFIG_COMPACTION: Enables memory compaction to reduce fragmentation by migrating pages to create larger contiguous memory regions. The compaction process can trigger page migrations that introduce latency.&#xA;CONFIG_MIGRATION: Allows the migration of the physical location of memory pages of processes while the virtual addresses are not changed. Useful for allowing the kernel to move pages between NUMA nodes or during compaction. Page migration involves copying page contents and updating page table entries, which can take time, or cause page faults when page table entries become temporarily unavailable. The use of mlock or mlockall does NOT automatically guarantee that a page will not be migrated. See below for more.</description>
    </item>
    <item>
      <title>x86-specific issues</title>
      <link>/core/troubleshooting/x86/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/core/troubleshooting/x86/index.html</guid>
      <description>Issues you can work around Some processor idle states may significantly increase latency for the whole software system - up to hundreds of microseconds - in order to fully wake up some functional blocks upon external event. The intel_idle driver which is part of the CPU idle time management subsystem of the kernel deals with those states aka C-states. Depending on the microarchitecture of the Intel CPU, you may have to disable this driver in order to reduce the latency figures to acceptable values, by passing intel_idle.max_cstate=0 on the kernel command line. More details available there.</description>
    </item>
  </channel>
</rss>