Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* A question regarding isolated cpus and software interrupts
@ 2025-05-29 18:06 David Aldrich via lttng-dev
  2025-05-30 14:49 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 4+ messages in thread
From: David Aldrich via lttng-dev @ 2025-05-29 18:06 UTC (permalink / raw)
  To: lttng-dev

Hi

My question isn't directly related to lttng but I would welcome some advice.

Our Linux application is showing 'blips' whereby there are occasional
increases in processing times. This is for a user process that runs on
an isolated core. Using lttng and TraceCompass I have found that the
'blip' sometimes coincides with a TIMER_SOFTIRQ event on the isolated
core.

I was surprised that software interrupts may run on isolated cores. Is
there a way of preventing this?

Are there any techniques using lttng to gain more information related
to the interrupt (e.g. what is causing it)?

Best regards
David

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: A question regarding isolated cpus and software interrupts
@ 2025-06-17 10:52 Norbert Lange via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Norbert Lange via lttng-dev @ 2025-06-17 10:52 UTC (permalink / raw)
  To: lttng-dev; +Cc: david.aldrich.ntml

Hello David,

You cant fully isolate a core in Linux, there are some timekeeping
functions that will always run (Linux needs some basic runtime
accounting).

The things you can do is avoiding IRQ handlers and "lazy" subsystems
that depend on background updates via timer or IPI. You already do
this via kernel parameters.
Maybe you can look at disabling membarrier too.

isolcpu just takes the core out of the scheduler, threads wont be
moved in or out automatically.

if you want to find out what causes the interrupts... use ftrace + kernelshark?

Norbert

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-17 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-29 18:06 A question regarding isolated cpus and software interrupts David Aldrich via lttng-dev
2025-05-30 14:49 ` Mathieu Desnoyers via lttng-dev
2025-05-30 15:00   ` David Aldrich via lttng-dev
2025-06-17 10:52 Norbert Lange via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox