mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Sam Ravnborg <sam@ravnborg.org>,
	"David S. Miller" <davem@davemloft.net>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] irq: sparseirq enabling v4
Date: Sat, 29 Nov 2008 15:33:27 +0100	[thread overview]
Message-ID: <20081129143327.GB10639@elte.hu> (raw)
In-Reply-To: <20081129105714.GB9643@uranus.ravnborg.org>


* Sam Ravnborg <sam@ravnborg.org> wrote:

> > very nice!
> > 
> > All the structural feedback i gave seems to be addressed properly, 
> > and the patch has shrunk and consolidated nicely. I think we can 
> > start splitting it up and applying it to tip/irq/sparseirq. We might 
> > notice a few more details when that happens, on a per patch basis.
> 
> Hi Ingo / Yinghai.
> 
> Was the concerns raised by Benjamin, davem, others addressed? Just 
> curious - I have never looked into this part of the kernel.

(Cc:-ed DaveM and BenH)

I cannot speak for them, but my concens have been addressed. AFAICT the 
feedback from non-x86 land centered around two main areas:

  1) the SPARSEIRQ generic IRQ layer changes were ugly and complex

  That was one of my worries too and it has all been made rather elegant, 
  simple and fast via the new irq_desc_ptrs[] approach. (It can also be a
  speedup on NUMA as irq->desc can now host the irq statistics counters,
  etc. - so there will be an incentive for architectures to switch over 
  to sparse irq_desc[], even if they do not plan to support 4096 CPUs or 
  more)

  2) that x86 should do this all via virtual IRQ remapping

  I think this was based on a misunderstanding of what x86 architecture 
  does currently and where it wants to go with these changes.

  Firstly, the x86 architecture already remaps interrupts in a number of 
  areas: it remaps them on certain 32-bit systems via the use of irq 
  compression, and it remaps them for virtual MSI irqs as well. (which 
  are virtual to begin with)

  But the problem is not the ability or inability to remap IRQs on x86 - 
  that can obviously be done (and is being done) in a number of areas 
  when we want to shape or compress the IRQ space more intelligently.

  The problem that is solved here is that we want to enable distros to 
  build a kernel with NR_CPUS and NR_IRQS set to really high numbers 
  (4096 for NR_CPUS and 16K for NR_IRQS), and hence the plain static size 
  of all NR_IRQS arrays in the core kernel become an issue (== megabytes 
  of RAM wasted even on a plain dual core system). No amount of virtual 
  IRQ remapping in architecture code can solve that problem - we had to
  reduce the size of those core kernel arrays.

If there were any other concerns that i missed, please let us know.

	Ingo

  reply	other threads:[~2008-11-29 14:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24  2:59 [PATCH 1/2] irq: sparseirq enabling Yinghai Lu
2008-11-24 14:40 ` Ingo Molnar
2008-11-24 19:22   ` Yinghai Lu
2008-11-24 22:26     ` Thomas Gleixner
2008-11-25  3:57   ` [PATCH 1/2] irq: sparseirq enabling v2 Yinghai Lu
2008-11-25  3:58     ` [PATCH 2/2] irq: move irq_desc according to smp_affinity v2 Yinghai Lu
2008-11-26  7:48     ` [PATCH 1/2] irq: sparseirq enabling v2 Ingo Molnar
2008-11-26  8:02       ` Yinghai Lu
2008-11-26  8:17         ` Ingo Molnar
2008-11-26 18:33           ` Yinghai Lu
2008-11-27  2:26           ` [PATCH 1/2] irq: sparseirq enabling v3 Yinghai Lu
2008-11-27  2:26             ` [PATCH 2/2] irq: move irq_desc according to smp_affinity v3 Yinghai Lu
2008-11-28 16:34             ` [PATCH 1/2] irq: sparseirq enabling v3 Ingo Molnar
2008-11-29  7:13               ` [PATCH] irq: sparseirq enabling v4 Yinghai Lu
2008-11-29 10:02                 ` Ingo Molnar
2008-11-29 10:26                   ` Ingo Molnar
2008-12-01  4:44                     ` [PATCH] irq: sparse irq_desc[] support - fix Yinghai Lu
2008-11-29 10:57                   ` [PATCH] irq: sparseirq enabling v4 Sam Ravnborg
2008-11-29 14:33                     ` Ingo Molnar [this message]
2008-11-29 17:54                       ` Sam Ravnborg

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=20081129143327.GB10639@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=tglx@linutronix.de \
    --cc=yinghai@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®