From owner-freebsd-current@FreeBSD.ORG Mon Nov 29 21:24:27 2010 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 61BC010656B6; Mon, 29 Nov 2010 21:24:27 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 03C2E8FC20; Mon, 29 Nov 2010 21:24:26 +0000 (UTC) Received: by ywp6 with SMTP id 6so2475042ywp.13 for ; Mon, 29 Nov 2010 13:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=aQbzL/L12v9/j4q5uOBFuW22ww4xNDjQ6gtIxv5FfcY=; b=L9bLCDh2dDs3tWFVs1sorolXbzs+wZQ6DjsyxhfFsDJmOvNtsstzN7tIJdeaJAJ9YD Dd18BaNQNC9rcCdahRMmor4zvQLT/kaXWJ6/yYnYW6rHY5m8aymsmQS4YIWn5CcSlETo EfIUw1m02DfozYnlZduF+na6AIUDRGfUGIi8o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=YHs5lrchUrDAird8D64UG+UnaqY8cek8UZKVs0Yfm9xGcpQk4l8z6UWmvpM9RTJNh1 hk/kASVOaAcMoYUSg2vFPVH29AuMkjCQFzbYo5aQbr+KFjV6+jes688qKtwslp6ayGZr eBg/J6Yp3rh+fCOJNGshZbIwemOlKrxRQ0yH4= MIME-Version: 1.0 Received: by 10.90.50.18 with SMTP id x18mr9633638agx.29.1291064191133; Mon, 29 Nov 2010 12:56:31 -0800 (PST) Sender: asmrookie@gmail.com Received: by 10.236.102.161 with HTTP; Mon, 29 Nov 2010 12:56:31 -0800 (PST) In-Reply-To: <4CF3E68C.4050300@FreeBSD.org> References: <201011291007.37044.jhb@freebsd.org> <4CF3E68C.4050300@FreeBSD.org> Date: Mon, 29 Nov 2010 21:56:31 +0100 X-Google-Sender-Auth: g9wQ6jFeb5HEV0T-pI58Zgd9Ut8 Message-ID: From: Attilio Rao To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: David Rhodus , Gianni , freebsd-current@freebsd.org Subject: Re: panic: sched_priority: invalid priority 2906: nice 0, ticks 122865664 ftick 516947 ltick 517947 tick pri 2726 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: Mon, 29 Nov 2010 21:24:27 -0000 2010/11/29 Alexander Motin : > On 29.11.2010 17:07, John Baldwin wrote: >> >> On Friday, November 26, 2010 4:38:49 pm David Rhodus wrote: >>> >>> I hit this panic on my NFS server. >>> >>> -DR >>> >>> coke.fun dumped core - see /var/crash/vmcore.2 >>> >>> Fri Nov 26 14:50:48 UTC 2010 >>> >>> FreeBSD coke.fun 9.0-CURRENT FreeBSD 9.0-CURRENT #14 r215800: Wed Nov >>> 24 12:35:30 UTC 2010 =C2=A0 =C2=A0 root@coke.fun:/usr/obj/usr/src/sys/G= ENERIC >>> i386 >>> >>> panic: sched_priority: invalid priority 2906: nice 0, ticks 122865664 >>> ftick 516947 ltick 517947 tick pri 2726 >> >> I ran the numbers and assuming a hz of 1000, this requires you to have a >> very >> large value for ts_ticks (about (2726 * 24)<< =C2=A010). =C2=A0I suspect= this is due >> to >> sched_tick() being invoked for a long idle sleep combined with the >> eventtimer >> changes. =C2=A0Can you go to frame 10 and 'p td->td_sched->ts_ticks'? > > As I can see, this is VirtualBox virtual machine. So it is still a questi= on > what side makes so large hole in sched_tick() on some CPUs. It could be > interesting to get ktr(4) dump with KTR_SPARE2 mask: > > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 KTR > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALQ > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 KTR_ALQ > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 KTR_ENTRIES=3D131072 > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 KTR_COMPILE=3D(KTR_SPARE2) > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 KTR_MASK=3D(KTR_SPARE2) I'm sure gianni (CC'ed) got this bug and got some conclusions on it before (maybe he also has a patch). Attilio --=20 Peace can only be achieved by understanding - A. Einstein