The patch titled Pad irq_desc to internode cacheline size has been added to the -mm tree. Its filename is pad-irq_desc-to-internode-cacheline-size.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Pad irq_desc to internode cacheline size From: Ravikiran G Thirumalai <kiran@xxxxxxxxxxxx> We noticed a drop in n/w performance due to the irq_desc being cacheline aligned rather than internode aligned. We see 50% of expected performance when two e1000 nics local to two different nodes have consecutive irq descriptors allocated, due to false sharing. Note that this patch does away with cacheline padding for the UP case, as it does not seem useful for UP configurations. Signed-off-by: Ravikiran Thirumalai <kiran@xxxxxxxxxxxx> Signed-off-by: Shai Fultheim <shai@xxxxxxxxxxxx> Cc: "Siddha, Suresh B" <suresh.b.siddha@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/irq.h | 2 +- kernel/irq/handle.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/irq.h~pad-irq_desc-to-internode-cacheline-size include/linux/irq.h --- a/include/linux/irq.h~pad-irq_desc-to-internode-cacheline-size +++ a/include/linux/irq.h @@ -175,7 +175,7 @@ struct irq_desc { struct proc_dir_entry *dir; #endif const char *name; -} ____cacheline_aligned; +} ____cacheline_internodealigned_in_smp; extern struct irq_desc irq_desc[NR_IRQS]; diff -puN kernel/irq/handle.c~pad-irq_desc-to-internode-cacheline-size kernel/irq/handle.c --- a/kernel/irq/handle.c~pad-irq_desc-to-internode-cacheline-size +++ a/kernel/irq/handle.c @@ -48,7 +48,7 @@ handle_bad_irq(unsigned int irq, struct * * Controller mappings for all interrupt sources: */ -struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned = { +struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = { [0 ... NR_IRQS-1] = { .status = IRQ_DISABLED, .chip = &no_irq_chip, _ Patches currently in -mm which might be from kiran@xxxxxxxxxxxx are git-pciseg.patch spin_lock_irq-enable-interrupts-while-spinning-preparatory-patch.patch spin_lock_irq-enable-interrupts-while-spinning-x86_64-implementation.patch spin_lock_irq-enable-interrupts-while-spinning-i386-implementation.patch pad-irq_desc-to-internode-cacheline-size.patch pad-irq_desc-to-internode-cacheline-size-fix.patch sched-align-rq-to-cacheline-boundary.patch slab-leaks3-default-y.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html