cvs commit: src/sys/alpha/alpha interrupt.c
John Baldwin
jhb at FreeBSD.org
Fri Mar 26 14:11:24 PST 2004
On Tuesday 23 March 2004 05:28 pm, John Baldwin wrote:
> jhb 2004/03/23 14:28:16 PST
>
> FreeBSD src repository
>
> Modified files:
> sys/alpha/alpha interrupt.c
> Log:
> Enable interrupt preemption on Alpha. Previously, flipping this switch
> on caused hangs on SMP systems under load. My theory was that an
> interrupted thread was migrating and returning to PAL on a different CPU
> and that that caused the hangs. To prevent this, I used the recently added
> sched_pin() API to pin the interrupted thread to the CPU that received the
> interrupt across ithread_schedule() to prevent migration. This seems to
> have fixed the hangs based on tests by several folks on the alpha@ list.
>
> Tested by: wilko, tisco, several others on alpha@
>
> Revision Changes Path
> 1.77 +10 -1 src/sys/alpha/alpha/interrupt.c
As an aside, interrupt preemption greatly reduces interrupt latency and can
dramatically improve the 'snappiness' of a box. It is currently only enabled
for i386, amd64, and now alpha. Maintainers for other archs such as sparc64,
ia64, and ppc should try to get it working on their platforms as well if
possible.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-current
mailing list