From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: David Aldrich <david.aldrich.ntml@gmail.com>, lttng-dev@lists.lttng.org
Subject: Re: Understanding SOFT IRQ 1
Date: Mon, 12 May 2025 11:18:42 -0400 [thread overview]
Message-ID: <c42f4ccd-5e16-4a7a-a9a8-19e61ee06b1b@efficios.com> (raw)
In-Reply-To: <CAJK_iegCiWpZcD8fyLCpkRtzOzv_nxyn8WBUs9gr5WDYQ1sK_w@mail.gmail.com>
On 2025-05-09 12:00, David Aldrich via lttng-dev wrote:
> Hi
>
> I am just getting started with LTTng and Trace Compass. I can capture
> Kernel and UST events.
>
> My purpose is to investigate why a periodic task, running on an
> isolated core, has occasional blips i.e. it's period (duration)
> extends.
>
> I have inserted tracepoints to mark normal and extended durations. In
> Trace Compass the blip tracepoint is preceded by a brown state that is
> 'SOFT IRQ 1'. This extends down all cores. It lasts 105us and is
> likely to be the reason for the blip.
>
> Please could someone explain to me what may be happening here and how
> can I find out the reason for this SOFT IRQ?
See include/linux/interrupt.h from the Linux kernel:
enum
{
HI_SOFTIRQ=0,
TIMER_SOFTIRQ,
NET_TX_SOFTIRQ,
NET_RX_SOFTIRQ,
BLOCK_SOFTIRQ,
IRQ_POLL_SOFTIRQ,
TASKLET_SOFTIRQ,
SCHED_SOFTIRQ,
HRTIMER_SOFTIRQ,
RCU_SOFTIRQ, /* Preferable RCU should always be the last softirq */
NR_SOFTIRQS
};
So SOFT IRQ 1 would be TIMER_SOFTIRQ.
Note that we have a TODO in lttng-modules:
lttng_dump_softirq_vec()
Implementing this by dumping this softirq table mapping numbers to names
would be a welcome contribution.
Thanks,
Mathieu
>
> Best regards
> David
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
next prev parent reply other threads:[~2025-05-12 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-09 16:00 David Aldrich via lttng-dev
2025-05-12 15:18 ` Mathieu Desnoyers via lttng-dev [this message]
2025-05-12 15:41 ` Mathieu Desnoyers via lttng-dev
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=c42f4ccd-5e16-4a7a-a9a8-19e61ee06b1b@efficios.com \
--to=lttng-dev@lists.lttng.org \
--cc=david.aldrich.ntml@gmail.com \
--cc=mathieu.desnoyers@efficios.com \
/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