On Wed, 2008-03-26 at 13:55 -0500, Alan Mayer wrote:Well I will agree with Linus and go one farther and say that NR_IRQS needs to die. I started on that once and x86 is just about ready to accomodate it. There is a size issue on small machines. And there is very bad NUMA affinity on large machines. So the current structure really is not optimal for anyone. All of this gets especially bad for distro kernels that try and support everything. Also MAX_IOAPICS is very much the wrong factor to be using on large machines to size the irq array. New machines are moving towards MSI and cards can have an unreasonable number of MSI irqs. In practice the top end I have seen is 20-30 per card but it is still a lot. So I think you may get a nasty surprise when you plug in a bunch of high performance cards with multiple queues into a big box. The 32*NR_CPUS as a rule of thumb comes from IBM boxes that are a little better balanced when it comes to compute vs. I/O capablility. For actual irq reception we have our per cpu array of vectors that point to the irq_desc so even if the global list of irqs was a linked list we should not have performance problems. I need to do some sorting out of sysfs first but I will certainly see if I can look at this again. And I will very much be willing to work with someone else who wants to work on this and has more time then I do at the moment. The basic idea is moving the generic irq apis to a point where we can refer to irqs in the generic code with a struct irq * instead of by number. We really only the need the number for talking about irqs to user space. Eric --
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Linus Torvalds | Linux 2.6.25-rc4 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | 2.6.23-rc6-mm1 |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Radu Rendec | htb parallelism on multi-core platforms |
