From: "Marc Strämke" <marc.straemke@eltropuls.de>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org
Subject: Re: Latency spikes on V6.15.1 Preempt RT and maybe related to intel? IGB
Date: Mon, 16 Jun 2025 17:10:33 +0200 [thread overview]
Message-ID: <d72bc0b1-7898-4513-9b50-60b56112c8e1@eltropuls.de> (raw)
In-Reply-To: <97638b0b-cd96-40e2-9dc2-5e6f767b90a4@eltropuls.de>
Hi Sebastian,
On 14.06.25 10:52, Marc Strämke wrote:
>
> I do not really understand where the IRQ/Preemption disabling is
> happening. What would the next thing be to do? Function (graph?)
> tracing on all the functions visible in the backtrace?
>
>
> I tried to look at the event race output starting with the call to
> igb_set_rx_mode. I have attached the trace with all events and a
> function filter on igb on only the cpu executing ip. I cannot
> understand what is happening between timestasmp 700.149995 and the IRQ
> disable event on 700.150795....
>
>
> Thanks for your help,
>
> Marc
>
>
I am still trying to figure that puzzle out: Please see the following
function trace snippet:
ip-690530 [000] ..... 178636.460435: rtnl_is_locked <-__dev_change_flags
ip-690530 [000] ..... 178636.460435: __local_bh_disable_ip
<-__dev_change_flags
ip-690530 [000] ..... 178636.460435: migrate_disable
<-__local_bh_disable_ip
ip-690530 [000] ...1. 178636.460435: preempt_disable:
caller=__local_bh_disable_ip+0x76/0xe0
parent=__local_bh_disable_ip+0x76/0xe0
ip-690530 [000] ...11 178636.460435: preempt_enable:
caller=__local_bh_disable_ip+0x76/0xe0
parent=__local_bh_disable_ip+0x76/0xe0
ip-690530 [000] ....1 178636.460435: rt_spin_lock <-__local_bh_disable_ip
ip-690530 [000] ....1 178636.460436: __rcu_read_lock <-rt_spin_lock
ip-690530 [000] ....1 178636.460436: migrate_disable
<-__local_bh_disable_ip
ip-690530 [000] ....2 178636.460436: __rcu_read_lock
<-__local_bh_disable_ip
ip-690530 [000] b...2 178636.460436: rt_spin_lock <-__dev_change_flags
ip-690530 [000] b...2 178636.460436: __rcu_read_lock <-rt_spin_lock
ip-690530 [000] b...2 178636.460436: migrate_disable <-__dev_change_flags
ip-690530 [000] b...3 178636.460436: __dev_set_rx_mode <-__dev_change_flags
ip-690530 [000] b...3 178636.460437: igb_set_rx_mode <-__dev_change_flags
It is my understanding that __local_bh_disable_ip called from
netif_addr_lock_bh seems to be the origin of my latency.
What i do not understand is, even if the bottom halves are disabled.
Shouldn't I see the interrupt arriving in the trace?
If i understood it correctly, your talk "Unblocking the softirq lock for
PREEMPT_RT" during the plumbers conference 2023 is exactly about that
case, right?
Probably fixing this issue is out of my abilities for now ;-) The wast
variety of locking concepts inside the kernel is quite intimidating for
a newcomer in kernel land...
Regards,
Marc
next prev parent reply other threads:[~2025-06-17 2:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 11:23 Latency spikes on V6.15.1 Preempt RT and maybe related to intel IGB Marc Strämke
2025-06-13 14:54 ` Sebastian Andrzej Siewior
[not found] ` <E1uQ6I0-000000003aa-37uJ@smtprelay05.ispgateway.de>
2025-06-13 19:58 ` Latency spikes on V6.15.1 Preempt RT and maybe related to intel? IGB Sebastian Andrzej Siewior
2025-06-14 8:52 ` Marc Strämke
2025-06-16 15:10 ` Marc Strämke [this message]
2025-06-17 9:16 ` Sebastian Andrzej Siewior
2025-06-17 9:08 ` Sebastian Andrzej Siewior
2025-06-17 9:28 ` Sebastian Andrzej Siewior
2025-06-17 9:45 ` Marc Strämke
2025-06-17 10:00 ` Sebastian Andrzej Siewior
2025-06-17 10:03 ` Marc Strämke
2025-06-17 10:15 ` Sebastian Andrzej Siewior
2025-06-17 10:54 ` Kurt Kanzenbach
[not found] ` <19a46896-3d26-415b-9820-730a42b0702e@eltropuls.de>
2025-06-17 13:35 ` Kurt Kanzenbach
[not found] ` <522704b0-5a35-42c3-9bcc-627b487b740c@eltropuls.de>
2025-06-14 18:13 ` Latency spikes on V6.15.1 Preempt RT and maybe related to intel IGB Sebastian Andrzej Siewior
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=d72bc0b1-7898-4513-9b50-60b56112c8e1@eltropuls.de \
--to=marc.straemke@eltropuls.de \
--cc=bigeasy@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®