All of lore.kernel.org
 help / color / mirror / Atom feed
* interrupt latency
@ 2002-08-27  9:58 Wessler, Siegfried
  2002-08-27 14:11 ` Stephen Samuel
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Wessler, Siegfried @ 2002-08-27  9:58 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

Hello,

I am running and will in near future kernel 2.4.18 on an embedded system.

I have to speed up interrupt latency and need to understand how in what
timing tasklets are called and arbitraded.

I have to dig deep, but the kernel tree is quiet huge. As a non kernel
programmer I ask you, if anyone could give me a hint, where to start reading
from and which kernel source to pick first.

Any help highly appreaciated. 
(BTW: I will not bother you personaly with further questions unless you give
permission.)


What's behind it: We patched NMI and do some stuff we have to do very
regularly in there. After NMI we have to quiet fast start a kernel or even a
user space function with low latency. Also I measured 8 milliseconds after a
hardware interrupt before the corresponding interrupt function is called. At
RTI time it is even longer (around 12 microseconds). Need to find a way to
exactly understand why, and maybe speed up a bit.

Thank You.
Siegfried.


-------------
HBM - Hottinger Baldwin Messtechnik GmbH
Siegfried Wessler, Dipl.-Ing.
Entwicklung Messverstärker T-V
Im Tiefen See 45, D-64293 Darmstadt
Fon: 06151/803-884, Fax: -524
eMail: siegfried.wessler@hbm.com
 

^ permalink raw reply	[flat|nested] 31+ messages in thread
* interrupt latency
@ 2019-07-29 17:46 Muni Sekhar
  0 siblings, 0 replies; 31+ messages in thread
From: Muni Sekhar @ 2019-07-29 17:46 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

I used the Linux kernel’s ‘Ftrace’ framework for tracing the interrupt
latencies.

Sometimes I noticed a delay(time between do_IRQ() to start of ISR())
in start of ISR(interrupt service routine) to execute , some other
times I noticed ISR execution time(entering and exiting a function) is
very high.

I’d like to know in which scenarios, ISR gets executed lately?

In which scenarios, ISR execution time is very high?

Can someone please clarify me on this.

-- 
Thanks,
Sekhar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Interrupt latency
@ 2007-07-06 14:08 Jayabrata Chakrabarty
  0 siblings, 0 replies; 31+ messages in thread
From: Jayabrata Chakrabarty @ 2007-07-06 14:08 UTC (permalink / raw)
  To: linux-rt-users

Hello All,

I have a query, Can i use Realfeel benchmark tool,
to test the interrupt latency on an smp machine. I have a non-smp machine,
on which i tested the 2.6.19-rt11 kernel, and i got very impressive
interrupt latency (< 30 us, with tests carried over 10 hours, on heavy load).
But i am not getting the same performance on an smp machine, which i
recently acquired. I used the latest 2.6.21.5-rt19 kernel.
But still the same results. Am i doing something wrong, or is Realfeel not
meant for smp? In that case, which tool can i use? I have used the Realfeel
tool from the amlat package.

Regards
Jayabrata

^ permalink raw reply	[flat|nested] 31+ messages in thread
* interrupt latency
@ 2002-10-30 23:50 Keith Adamson
  0 siblings, 0 replies; 31+ messages in thread
From: Keith Adamson @ 2002-10-30 23:50 UTC (permalink / raw)
  To: linux-kernel

I've seen people use realfeel.c to measure interrupt latency 
on a system.  Most recently in an article at;

http://www.linuxjournal.com//article.php?sid=6405

But this program only measures interrupt jitter.  Is there 
a good test program somewhere that will test true interrupt 
latency?




^ permalink raw reply	[flat|nested] 31+ messages in thread
* interrupt latency
@ 2002-07-19 23:55 Mark Hapke
  2002-07-20 20:19 ` Alan Cox
  0 siblings, 1 reply; 31+ messages in thread
From: Mark Hapke @ 2002-07-19 23:55 UTC (permalink / raw)
  To: linux-smp

Hello,

I need the information about the time consumed when an interrupt occurs. 
Especially interesting is the time it takes from where the interrupt is 
generated (the device) until such time as the interrupt is reported to the 
cpu. 
Second,  I need to know the elapsed time from that point until the isr is 
entered.

On linuxdevices.com there is an article "Linux Scheduler Latency" by Clark 
Williams in which a comment by Ingo Molnar is quoted saying that the elapsed 
time takes 10 microseconds. Is that correct? Is there maybe any other source 
of information, someone could point me to?

BTW, i refer to the intel platform.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Interrupt Latency
@ 2002-06-12 18:50 Jon Baker
  2002-06-12 19:25 ` Dan Malek
  2002-06-12 20:16 ` Wolfgang Denk
  0 siblings, 2 replies; 31+ messages in thread
From: Jon Baker @ 2002-06-12 18:50 UTC (permalink / raw)
  To: Embedded Linux Forum


I am curious about interrupt latency.

I have an Embedded Planet RPX Classic CLLF_BW31 MPC860 running at 48Mhz with
non-realtime Hard Hat 1.2 with the 2.2.14 kernel.

In general what kind of interrupt latency can I expect?  I am seeing a pretty
consistent 10 us min IRQ2 latency but occassionally see up to 70 us max.  I am
not using IRQ0 or IRQ1 (therefore IRQ2 is highest priority) and we monitored
this with my application code doing next to nothing.  Basically I am only
running ISR2.  First, I was surprised the 10 us min latency, I thought I might
occassionally see a much quicker response.  Second, I was surprised to see the
occassional slow response of 70 us max.  It would be nice if we could get the
max under 50 us.  Or do you have to go to a real-time kernel?  I am looking into
my code to see that I am not masking the interrupt for too long (or even at all)
and checking the driver code efficiency.  Could the non-realtime linux kernel
mask the interrupts for that long?  I am going to look into what all linux is
doing, I am thinking it is not doing much but have not verified this.  I tried
to find some general interrupt latency numbers on the web through Monta Vista or
others but did not find anything relevant.

Jon Baker

===================================
Jon Baker
Software Engineer
Efficient Channel Coding, Inc.
216-635-1610
www.eccincorp.com
===================================


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2019-07-29 17:47 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-27  9:58 interrupt latency Wessler, Siegfried
2002-08-27 14:11 ` Stephen Samuel
2002-08-27 17:16   ` Robert Schwebel
2002-08-27 21:44     ` Stephen Samuel
2002-08-27 17:41 ` Mark Hounschell
2002-08-27 18:01   ` Richard B. Johnson
2002-08-27 19:54     ` yodaiken
2002-08-27 20:44       ` Richard B. Johnson
2002-08-27 20:56         ` yodaiken
2002-08-27 22:47           ` Rogier Wolff
2002-08-28 12:18           ` Richard B. Johnson
2002-08-28 13:41             ` yodaiken
2002-08-28 14:25               ` Jonathan Lundell
2002-08-28 13:53             ` yodaiken
2002-08-28 15:02               ` Richard B. Johnson
2002-08-28 15:19                 ` yodaiken
2002-08-28 15:31                 ` Alan Cox
2002-08-28 15:37                   ` Richard B. Johnson
2002-08-28 16:53                   ` Randy.Dunlap
2002-08-28 12:42         ` Pavel Machek
2002-08-27 18:05 ` Dag Nygren
  -- strict thread matches above, loose matches on Subject: below --
2019-07-29 17:46 Muni Sekhar
2007-07-06 14:08 Interrupt latency Jayabrata Chakrabarty
2002-10-30 23:50 interrupt latency Keith Adamson
2002-07-19 23:55 Mark Hapke
2002-07-20 20:19 ` Alan Cox
2002-07-22  0:40   ` Mark Hapke
2002-07-22 13:02     ` Alan Cox
2002-06-12 18:50 Interrupt Latency Jon Baker
2002-06-12 19:25 ` Dan Malek
2002-06-12 20:16 ` Wolfgang Denk

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.