Re: panic: spin lock held too long (reasonable load)

From: Ian FREISLICH (if_at_hetzner.co.za)
Date: 06/09/04

  • Next message: dikshie: "ad4: FAILURE - already active DMA on this device"
    To: John Baldwin <jhb@FreeBSD.org>
    Date: Wed, 09 Jun 2004 17:04:48 +0200
    
    

    > On Wednesday 09 June 2004 09:25 am, Ian FREISLICH wrote:
    > > Hi
    > >
    > > I got this about an hour ago, maybe 10 minutes into a 'make world
    > > -j8' on my SMP system. I'll reproduce the panic and drop into the
    > > debugger if possible if someone is willing to tell me what information
    > > appart from this backtrace will be helpful.
    >
    > Unfortunately this is a known deadlock that can happen with swapping that
    > there isn't an easy fix for. If you want a quick hack, try commenting out
    > the 'wakeup(&proc0)' line in setrunnable(). It might take a bit longer for
    > the kernel to swap processes back in but should avoid the deadlock.

    You mean like this?

    diff -u -d -r1.249 kern_synch.c
    --- kern_synch.c 7 Jun 2004 09:35:00 -0000 1.249
    +++ kern_synch.c 9 Jun 2004 15:03:09 -0000
    @@ -402,7 +402,14 @@
            if ((p->p_sflag & PS_INMEM) == 0) {
                    if ((p->p_sflag & PS_SWAPPINGIN) == 0) {
                            p->p_sflag |= PS_SWAPINREQ;
    - wakeup(&proc0);
    + /*
    + * XXX Nasty, Tricksy hack!!!!
    + * Perhaps avoid a deadlock at the expense of swap
    + * performance.
    + */
    + /*
    + * wakeup(&proc0);
    + */
                    }
            } else
                    sched_wakeup(td);

    Ian

    --
    Ian Freislich
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: dikshie: "ad4: FAILURE - already active DMA on this device"

    Relevant Pages

    • Re: panic: spin lock held too long (reasonable load)
      ... On Wednesday 09 June 2004 09:25 am, Ian FREISLICH wrote: ... > -j8' on my SMP system. ... I'll reproduce the panic and drop into the ... the kernel to swap processes back in but should avoid the deadlock. ...
      (freebsd-current)
    • Re: Swapfile on ZFS & Deadlock
      ... Whilst running out of memory compiling Xorg I ... discovered a quick way to deadlock the system: ... 0xffffff002c3ab5d0: tagz zfs, type VREG ... Also a trace of the current backtrace of this. ...
      (freebsd-current)
    • Re: panic: spin lock held too long (reasonable load)
      ... On Wednesday 09 June 2004 11:04 am, Ian FREISLICH wrote: ... >> Unfortunately this is a known deadlock that can happen with swapping that ... >> deadlock. ... To unsubscribe, ...
      (freebsd-current)