mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: john stultz <johnstul@us.ibm.com>
To: Ioannis Kyriakopoulos <johnkyr83@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: timer interrupt stucks using tickless kernel
Date: Mon, 7 Dec 2009 18:05:02 -0800	[thread overview]
Message-ID: <1f1b08da0912071805m7bbd65cdhfcf9284379bbe23c@mail.gmail.com> (raw)
In-Reply-To: <SNT111-DS236E5F267E98707B3AFB0AA78F0@phx.gbl>

On Mon, Dec 7, 2009 at 5:33 PM, Ioannis Kyriakopoulos
<johnkyr83@hotmail.com> wrote:
> Thanks for the valuable help so far.
>
>>> 2.   When performing cat proc/interrupts, I see that:
>>>           0:        157   IO-APIC-edge      timer
>>>      How the system timer is attached on IO-APIC at the time that the
>>> IO-APIC
>>>       is disabled on kernel configurations? Basically, the timer is not the
>>> only
>>>       peripheral attached to IO-APIC as can be seen by /proc/interrupts.
>>>
>>> Here is the output of /proc/interrupts :
>>>
>>>            CPU0
>>>   0:        157   IO-APIC-edge      timer
>>>   1:          2   IO-APIC-edge      i8042
>>>   4:        544   IO-APIC-edge      serial
>>>   8:          1   IO-APIC-edge      rtc0
>>>   9:          0   IO-APIC-fasteoi   acpi
>>>  12:          4   IO-APIC-edge      i8042
>>>  14:          4   IO-APIC-edge      ata_piix
>>>  15:          0   IO-APIC-edge      ata_piix
>>>  16:          0   IO-APIC-fasteoi   uhci_hcd:usb5
>>>  18:          0   IO-APIC-fasteoi   uhci_hcd:usb4
>>>  19:         45   IO-APIC-fasteoi   ata_piix, uhci_hcd:usb3
>>>  22:        149   IO-APIC-fasteoi   HDA Intel
>>>  23:         72   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
>>>  27:          0   PCI-MSI-edge      eth0
>>> NMI:          0   Non-maskable interrupts
>>> LOC:    1865130   Local timer interrupts
>>            ^^^
>>This value should be incrementing at HZ freq.
>
> Are you sure about that? ASAIK the Local timer interrupts (generated
> by the LAPIC timer) are only used for timekeeping.

Actually local timer interrupts are more often used for per-cpu
scheduler ticks (as well as running per-cpu timers).  Timekeeping is
done from only one cpu (usually 0, but that varies depending on
hotplug, etc).

> The system tick is
> generated by IRQ0 which in my second configuration should be triggered
> by HPET (because I have enabled the HPET timer support).

System tick?

> Also, if the
> interrupts generated by LAPIC are incremented at HZ freq, why the
> interrupts generated by the timer (IRQ0) not happen at the same frequency
>  as well?

Why take two interrupts when you could only take one?

> Furthermore, we don't have an answer on why IO-APIC is used at the time
> that it is disabled on kernel configurations. The fact that I have enabled
> LAPIC timer support doesn't justify the use of the IO-APIC controller
> by each own.

Honestly, I dunno on the details there.   If  CONFIG_X86_IO_APIC=n, it
looks like you should not be seeing the IO-APIC-* names in
/proc/interrupts.  Are you sure your booting the right kernel, or
CONFIG_X86_IO_APIC is actally on in your .config?

>>Is there something your actually having problems with here? Ignoring
>>which interrupt line is used for the timer event, the system is
>>functioning properly, right?
>
> Yes, apart from that, everything is working OK but it's really important
> for me to get an answer on these issues.

Ok. I hope these aren't homework questions :)

thanks
-john

  reply	other threads:[~2009-12-08  2:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Acp3UXhD1R6mbV5yTGykTs+HAU6bQg==>
2009-12-07 15:25 ` Ioannis Kyriakopoulos
2009-12-07 16:06   ` Christoph Lameter
2009-12-07 18:22     ` Ioannis Kyriakopoulos
2009-12-07 21:30   ` john stultz
2009-12-08  0:18     ` Ioannis Kyriakopoulos
2009-12-08  0:30       ` john stultz
2009-12-08  1:33         ` Ioannis Kyriakopoulos
2009-12-08  2:05           ` john stultz [this message]
2009-12-08  3:38             ` Ioannis Kyriakopoulos
2009-12-08 17:11               ` john stultz

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=1f1b08da0912071805m7bbd65cdhfcf9284379bbe23c@mail.gmail.com \
    --to=johnstul@us.ibm.com \
    --cc=johnkyr83@hotmail.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

all inboxes | Powered by JetHome®