From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Jos Hulzink <josh@stack.nl>, linux-kernel <linux-kernel@vger.kernel.org>
Cc: Zwane Mwaikambo <zwane@linuxpower.ca>
Subject: Re: irq balancing: performance disaster
Date: Sat, 10 May 2003 19:14:09 -0700 [thread overview]
Message-ID: <7750000.1052619248@[10.10.2.4]> (raw)
In-Reply-To: <200305110118.10136.josh@stack.nl>
> While tackling bug 699, it became clear to me that irq balancing is the cause
> of the performance problems I, and all people using the SMP kernel Mandrake
> 9.1 ships, are dealing with. I got the problems with 2.5.69 too. After
> disabling irq balancing, the system is remarkably faster, and much more
> responsive.
>
> For those interested in the issue, please look at bug 699.
Could you test out this patch from Keith Mannthey if you're having trouble?
It makes irq balance a config option, which makes it easier to disable.
Various people have requested it, but I don't have a box to test it on ;-(
Pulled out of -mjb tree, but should go onto mainline easily.
M.
diff -urpN -X /home/fletch/.diff.exclude 699-oom_locking/arch/i386/Kconfig 700-config_irqbal/arch/i386/Kconfig
--- 699-oom_locking/arch/i386/Kconfig Thu Apr 24 21:41:50 2003
+++ 700-config_irqbal/arch/i386/Kconfig Thu May 1 23:01:18 2003
@@ -834,6 +834,14 @@ config 1000HZ
bool "1000 Hz"
endchoice
+config IRQBALANCE
+ bool "Enable kernel irq balancing"
+ depends on SMP
+ default y
+ help
+ The defalut yes will allow the kernel to do irq load balancing.
+ Saying no will keep the kernel from doing irq load balancing.
+
config HAVE_DEC_LOCK
bool
depends on (SMP || PREEMPT) && X86_CMPXCHG
diff -urpN -X /home/fletch/.diff.exclude 699-oom_locking/arch/i386/kernel/io_apic.c 700-config_irqbal/arch/i386/kernel/io_apic.c
--- 699-oom_locking/arch/i386/kernel/io_apic.c Thu Apr 24 21:41:08 2003
+++ 700-config_irqbal/arch/i386/kernel/io_apic.c Thu May 1 23:01:18 2003
@@ -263,7 +263,7 @@ static void set_ioapic_affinity (unsigne
spin_unlock_irqrestore(&ioapic_lock, flags);
}
-#if defined(CONFIG_SMP)
+#if defined(CONFIG_IRQBALANCE)
# include <asm/processor.h> /* kernel_thread() */
# include <linux/kernel_stat.h> /* kstat */
# include <linux/slab.h> /* kmalloc() */
@@ -654,8 +654,6 @@ static int __init irqbalance_disable(cha
__setup("noirqbalance", irqbalance_disable);
-static void set_ioapic_affinity (unsigned int irq, unsigned long mask);
-
static inline void move_irq(int irq)
{
/* note - we hold the desc->lock */
@@ -667,9 +665,9 @@ static inline void move_irq(int irq)
__initcall(balanced_irq_init);
-#else /* !SMP */
+#else /* !IRQBALANCE */
static inline void move_irq(int irq) { }
-#endif /* defined(CONFIG_SMP) */
+#endif /* defined(IRQBALANCE) */
/*
next prev parent reply other threads:[~2003-05-11 4:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-10 23:18 Jos Hulzink
2003-05-10 21:42 ` Zwane Mwaikambo
2003-05-11 2:14 ` Martin J. Bligh [this message]
2003-05-11 4:46 ` Zwane Mwaikambo
2003-05-11 2:59 ` Martin J. Bligh
2003-05-11 10:00 ` Jos Hulzink
2003-05-11 12:17 ` Zwane Mwaikambo
2003-05-11 12:54 ` William Lee Irwin III
2003-05-11 12:58 ` Zwane Mwaikambo
2003-05-11 13:15 ` William Lee Irwin III
2003-05-11 13:17 ` Zwane Mwaikambo
2003-05-11 9:07 ` Arjan van de Ven
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='7750000.1052619248@[10.10.2.4]' \
--to=mbligh@aracnet.com \
--cc=josh@stack.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@linuxpower.ca \
/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®