From: Andrew Morton <akpm@osdl.org>
To: Pozsar Balazs <pozsy@uhulinux.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: start_kernel / local_irq_enable() can be very slow
Date: Sun, 13 Nov 2005 23:44:51 -0800 [thread overview]
Message-ID: <20051113234451.73f2527b.akpm@osdl.org> (raw)
In-Reply-To: <20051112155453.GC21291@ojjektum.uhulinux.hu>
Pozsar Balazs <pozsy@uhulinux.hu> wrote:
>
> I've noticed that the local_irq_enable() call in
> init/main.c::start_kernel() takes 0.3 .. 3.0 seconds on every boot.
> (Measured using printk's around it.)
>
> I am wondering what happens during this call (which is effectively one
> "sti"), why does it take so much time sometimes, and why does it vary so
> much, why isn't it (more) deterministic.
Presumably as soon as it does the sti, the CPU takes one or more interrupts
and runs off and does something.
I wonder what?
You could do something like:
int trace_irqs;
trace_irqs = 1;
local_irq_enble();
trace_irqs = 0;
then, over in handle_IRQ_event():
if (trace_irqs)
print_symbol("calling %s\n", (unsigned long)action->handler);
next prev parent reply other threads:[~2005-11-14 7:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-12 15:54 Pozsar Balazs
2005-11-14 7:44 ` Andrew Morton [this message]
2005-11-14 15:42 ` Linus Torvalds
2005-11-14 15:55 ` Pozsar Balazs
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=20051113234451.73f2527b.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pozsy@uhulinux.hu \
/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®