Re: /proc/stat's intr field looks odd, although /proc/interrupts seems correct

From: Robert Love (rml_at_ufl.edu)
Date: 08/11/03

  • Next message: Albert Cahalan: "Re: [PATCH] 2.4.22pre10: {,un}likely_p() macros for pointers"
    To: "Randy.Dunlap" <rddunlap@osdl.org>
    Date:	Sun, 10 Aug 2003 21:07:53 -0700
    
    

    On Sun, 2003-08-10 at 20:48, Randy.Dunlap wrote:

    > Yes, for most architectures, it prints interrupts from 0 thru NR_IRQS:
    > for (i = 0 ; i < NR_IRQS ; i++)
    > len += sprintf(page + len, " %u", kstat_irqs(i));
    > and NR_IRQS varies depending on the kernel build options, but (for x86)
    > is usually either 16 or 224.

    Eww. So I guess on SMP, it is 224.

    Might be nice to only print lines that are registered, like
    /proc/interrupts. But then you have no way of knowing which field is
    which interrupt line. Ugh.

    How can we expect anything to parse that line?

            Robert Love

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Albert Cahalan: "Re: [PATCH] 2.4.22pre10: {,un}likely_p() macros for pointers"

    Relevant Pages

    • Re: So, Poll is not scalable... what to do?
      ... >>little bit more under the hood ... kernel do that by unblocking the thread, handles SMP cases, etc. ... > If you remove the realtime priority array (disable RT scheduling support) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [CFT][PATCH] 2.6.4-rc1 remove x86 boot page tables
      ... For VISWS I think you actually need to turn paging off explicitly. ... of my patch sent to akpm and which is now in -mm (basically the SMP ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.10-rc3, syslogd hangs then processes get stuck in schedule_timeout
      ... > stops writing output, then everything that does schedule_timeouthangs, ... > I'm running 2.6.10-rc3, compiled with smp. ... instances of cron running. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6.0-mm2] e100 driver hangs after period of moderate receive load
      ... My test consists of downloading an iso from RedHat's ftp ... I doubt that downloading a Red Hat iso would give ... This was on a 2-way SMP box. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: emu10k1 under kernel 2.6?
      ... > Btw, the system is SMP, a Tyan Tiger MPX with two Athlon XPs. ... I have a tyan tiger MP with two Athlon MPs, and my emu10k1 does not work ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)