summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-03-09 16:38:52 +0000
committerjhb <jhb@FreeBSD.org>2006-03-09 16:38:52 +0000
commit329536bd480f675cd0825c0112204e0ddff2f329 (patch)
tree20dfae939c3921a2db40d4bd35f24ac1c4b0e687 /sys/i386
parent4e16f8107611368c9701ed13c6f6623a863d5429 (diff)
downloadFreeBSD-src-329536bd480f675cd0825c0112204e0ddff2f329.zip
FreeBSD-src-329536bd480f675cd0825c0112204e0ddff2f329.tar.gz
Flip the switch and don't route interrupts to hyperthreads in a HT system.
In at least one benchmark this showed around a 20% performance increase. If other workloads do benefit from having hyperthreads service interrupts, we can always make this a loader tunable. MFC after: 3 days Tested by: ps
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/mp_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c
index 4b960b7..1b36f1c 100644
--- a/sys/i386/i386/mp_machdep.c
+++ b/sys/i386/i386/mp_machdep.c
@@ -661,12 +661,12 @@ set_interrupt_apic_ids(void)
continue;
if (cpu_info[apic_id].cpu_bsp)
continue;
-#if 0
+
/* Don't let hyperthreads service interrupts. */
if (hyperthreading_cpus > 1 &&
apic_id % hyperthreading_cpus != 0)
continue;
-#endif
+
intr_add_cpu(apic_id);
}
}
OpenPOWER on IntegriCloud