All of lore.kernel.org
 help / color / mirror / Atom feed
From: JerryJun  <jerryjun123@163.com>
To: "Jan Kiszka" <jan.kiszka@siemens.com>,
	"xenomai@lists.linux.dev" <xenomai@lists.linux.dev>
Subject: Re:Re: schedule delay 15ms
Date: Tue, 18 Nov 2025 23:31:14 +0800 (CST)	[thread overview]
Message-ID: <7fd14fcf.a9b1.19a97976af9.Coremail.jerryjun123@163.com> (raw)
In-Reply-To: <78da3e59-a848-4019-aa53-639f2ef22f33@siemens.com>


Strangely enough, this delay wasn't present on the 4.19.89-ipip kernel - it only emerged after upgrading to 5.10.199-dovetail, despite no changes being made to the power management policy or thermal throttling settings during the update. Could this be related to potential instability in the HPET or TSC clock sources? And does upgrading to a new kernel version also necessitate a BIOS update?

At 2025-11-14 13:38:36, "Jan Kiszka" <jan.kiszka@siemens.com> wrote:
>On 14.11.25 03:48, JerryJun wrote:
>> 
>>   We added some trace event information, but from this gap point (6208.695948-> 6208.708726), it appears that the Cobalt kernel was frozen and no interrupt handling occurred.
>>    include trace point events :
>>     irq_vectors:call_function_entry                    
>>     irq_vectors:call_function_exit                     
>>     irq_vectors:call_function_single_entry             
>>     irq_vectors:call_function_single_exit   
>> 
>
>If there are no interrupt in that phase while, e.g., some timer
>interrupt should have occurred, then you should definitely check for
>hardware/firmware related delays that the OS cannot influence. Or for
>power-saving / thermal-throttling causes.
>
>Jan
>
>> 在 2025-11-13 13:31:54,"Jan Kiszka" <jan.kiszka@siemens.com> 写道:
>>> On 13.11.25 05:00, JerryJun wrote:
>>>>
>>>> We conducted tests on the kernel version v5.10.245-cip65-dovetail1. The test results are attached. During this period, we also performed latency tests, which showed a 10ms delay at 7174.313414 -> 7174.323086.  irq 114 is net driver interrupt 。
>>>>
>>>
>>>         swapper     0 [003]  7174.313414:                     irq:irq_pipeline_entry: irq=114
>>>         swapper     0 [003]  7174.323086:                     irq:irq_pipeline_entry: irq=33027
>>>
>>> So, that is the gap. Did you also turn on irq_pipeline_exit? I'm not 
>>> seeing that event in the trace. Furthermore, I always for get about 
>>> that, it is useful to have irq_vectors events because those include 
>>> timer irqs. But it is unlikely that we missed any in that gap because 
>>> they tend to trigger activities like cobalt_core:cobalt_timer_expire.
>>>
>>> What is more likely here is that your hardware or firmware is not 
>>> letting IRQs through. We could confirm that if the issue is reproducible 
>>> while have function tracing enabled. That comes with high overhead, but 
>>> the detailed result can tell us what the kernel did while there were no 
>>> interrupts.
>>>
>>> There is also native tooling by the kernel to detect "hardware noise",
>>> see https://docs.kernel.org/tools/rtla/rtla-hwnoise.html. Due to its 
>>> nature, this noise would affect Xenomai equally.
>>>
>>> Jan
>>>
>>> -- 
>>> Siemens AG, Foundational Technologies
>>> Linux Expert Center
>
>
>-- 
>Siemens AG, Foundational Technologies
>Linux Expert Center

  reply	other threads:[~2025-11-18 15:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-12  6:09 schedule delay 15ms JerryJun
2025-11-12  8:23 ` Jan Kiszka
2025-11-13  4:00   ` JerryJun
2025-11-13  5:31     ` Jan Kiszka
2025-11-14  2:48       ` JerryJun
2025-11-14  5:38         ` Jan Kiszka
2025-11-18 15:31           ` JerryJun [this message]
2025-11-18 16:00             ` Jan Kiszka
2025-11-20  8:10               ` JerryJun
2025-11-20 18:53                 ` Jan Kiszka
2025-11-26  3:20                   ` JerryJun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7fd14fcf.a9b1.19a97976af9.Coremail.jerryjun123@163.com \
    --to=jerryjun123@163.com \
    --cc=jan.kiszka@siemens.com \
    --cc=xenomai@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.