From: Francesco Oppedisano <francesco.oppedisano@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: about interrupt latency
Date: Wed, 9 Mar 2005 14:43:15 +0000 [thread overview]
Message-ID: <875fe4a505030906438a76cb5@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0503081156360.30824@montezuma.fsmlabs.com>
On Tue, 8 Mar 2005 12:09:58 -0700 (MST), Zwane Mwaikambo
<zwane@arm.linux.org.uk> wrote:
> At some cpu frequency point on i386 the main cause of your interrupt
> service latency will be in the interrupt controller and how long from irq
> assertion to the signal being recognised, resultant vector being
> dispatched to the processor and the necessary interrupt controller
> acknowledge steps required. This is also helped by the fact that the
> Linux/i386 interrupt vector stubs are very small and fast, so there isn't
> all that much code to execute to reach the ISR from the vector table. I'm
> not sure if you've tested this, but you may notice that timer interrupt
> via Local APIC will have lower dispatch latency than timer interrupt via
> i8259 only. But that's all at the lower end of the latency graph, you will
> most likely run into other sources on a busy system.
>
> Zwane
>
Very interesting zwane....i haven't tested the local APIC....do you
think this dispatch time can vary with the system I/O load (many
pending interrupts in the PIC)?
I think the interrupt latency is influenced even by the code inside
the kernel: if a lot of code is running with interrupts disabled then
the interrupt latency will grow. Am i right?
So probably we can state that the factors influencing the interrupt latency are:
1)Dispatching time in the PIC
2)Waiting time on the PIC (if there are pending interrupt of lower vector)
3)fetching ISR from main memory
4)wait time when CPU is running with disabled interrupt
Do U agree?
Thank u very much
Francesco Oppedisano
next prev parent reply other threads:[~2005-03-09 14:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-08 18:39 about interrupt latency Francesco Oppedisano
2005-03-08 19:03 ` linux-os
2005-03-09 14:31 ` Francesco Oppedisano
2005-03-08 19:09 ` Zwane Mwaikambo
2005-03-09 14:43 ` Francesco Oppedisano [this message]
2005-03-12 17:01 ` Zwane Mwaikambo
2005-03-13 17:13 ` zyphr
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=875fe4a505030906438a76cb5@mail.gmail.com \
--to=francesco.oppedisano@gmail.com \
--cc=linux-kernel@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