From owner-freebsd-current@FreeBSD.ORG Sun Dec 25 15:48:38 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B1A4106566C; Sun, 25 Dec 2011 15:48:38 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (lrosenman-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3ad::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1CB438FC08; Sun, 25 Dec 2011 15:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:Sender:From:Date; bh=ORUNhMAxkLHdMtI9imwlqSeJkwuSihtsqKf+BePc66g=; b=F+n7H1p386jMO5vruKzfs0Z3MOvNmQwqIV3tJS5J7x7DgnTh9zIBrmlagRQF/1aXwoghbB+j3MC2lzOLUfV8rdAdFE2sn31iXizCWuxJB8CNqFOUElWgdrQmb8HNK6NaJnm07k4aWd4Is+k3GGiB4+gP5wkMxLBgvjymHlu4hiw=; Received: from cpe-72-177-69-180.austin.res.rr.com ([72.177.69.180]:41323 helo=borg) by thebighonker.lerctr.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1ReqJQ-000Duq-9L; Sun, 25 Dec 2011 09:48:37 -0600 Date: Sun, 25 Dec 2011 09:48:32 -0600 (CST) From: Larry Rosenman Sender: ler@borg To: John Baldwin In-Reply-To: <4EF4AF5C.1060000@lerctr.org> Message-ID: References: <4EF48065.8000802@lerctr.org> <201112230954.57591.jhb@freebsd.org> <4EF4AF5C.1060000@lerctr.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: -2.9 (--) X-LERCTR-Spam-Score: -2.9 (--) X-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1,BAYES_00=-1.9 X-LERCTR-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1,BAYES_00=-1.9 Cc: Alexander Motin , freebsd-current@freebsd.org Subject: Re: scheduler panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2011 15:48:38 -0000 On Fri, 23 Dec 2011, Larry Rosenman wrote: > On 12/23/2011 8:54 AM, John Baldwin wrote: >> The sloppiest fix might be to do this: >> >> Index: sched_ule.c >> =================================================================== >> >> > - --- sched_ule.c (revision 228777) >> +++ sched_ule.c (working copy) @@ -1434,7 +1434,8 @@ >> sched_priority(struct thread *td) } else { pri = SCHED_PRI_MIN; if >> (td->td_sched->ts_ticks) - pri += SCHED_PRI_TICKS(td->td_sched); >> + pri += min(SCHED_PRI_TICKS(td->td_sched), + >> SCHED_PRI_RANGE); pri += SCHED_PRI_NICE(td->td_proc->p_nice); >> KASSERT(pri >= PRI_MIN_BATCH && pri <= PRI_MAX_BATCH, >> ("sched_priority: invalid priority %d: nice %d, " >> > > I've applied this to both the host and the guest, and am recompiling > the guest kernel (hopefully it'll stay up long enough...). > > I'll report back. > > Do y'all (FreeBSD Devs) want a PR? > > I've run 2 complete buildworld/buildkernel cycles with the patch applied in the guest, and it's made it all the way through. It wouldn't do that without it. Can we get this (or something else like it) applied? Do I need to file a PR? -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893