From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 7 20:36:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A18F106567B; Mon, 7 Jul 2008 20:36:25 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (unknown [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id AA61B8FC17; Mon, 7 Jul 2008 20:36:24 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (unknown [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 878A9284EF; Tue, 8 Jul 2008 04:36:23 +0800 (CST) Received: from localhost (unknown [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 48B42F08632; Tue, 8 Jul 2008 04:36:23 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id elrVvHgnGew9; Tue, 8 Jul 2008 04:36:11 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id CEB07F083F7; Tue, 8 Jul 2008 04:36:09 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=m3eB1tUYdX9WrG7moyCnFNkhoUdTCqTZJdu0mIkv8s06/kCmogl3NmCYXer+mWBDB kuesWIEeeB3qbPVKGkZmQ== Message-ID: <48727E37.30700@delphij.net> Date: Mon, 07 Jul 2008 13:36:07 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Kris Kennaway References: <48726193.1080807@FreeBSD.org> In-Reply-To: <48726193.1080807@FreeBSD.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Murty, Ravi" Subject: Re: Bug in calcru in he 6.2 and 6.3 kernels X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 20:36:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kris Kennaway wrote: | Murty, Ravi wrote: |> Hello everyone, |> |> |> |> Finally found what my last problem was. We were running top in a loop |> and running some workloads that called sched_bind() to bind threads to |> specific CPUs. The problem was that (and I am using ULE) sched_bind |> calls a function to notify another CPU of a thread and then mi_switches |> out of it. Since mi_switch sets the "oncpu" field of the thread to NOCPU |> and given the thread is still running, calcru would come in and assert |> the fact that "If I am running I better no be on NOCPU".. It appears |> that in other parts of the kernel (e.g. forward_signal) this is |> acceptable (i.e. it is okay to be running and oncpu is NOCPU). |> |> |> Thanks |> Ravi | | Don't use ULE in 6.x, it's broken and will not be fixed. Perhaps we should mark it as broken using #error? After all the ULE changes in 7.x is amazing and we do not want to have users to obtain bad impressions from the 6.x versions... I am not sure but some explicit warning message saying "ULE has been revamped in FreeBSD 7.x+ and will not be MFC'ed back to 6.x, please use SCHED_4BSD or upgrade to 7.x." seems to be better than having them to pursue the mailing list archive... Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhyfjYACgkQi+vbBBjt66CdLQCfet8ls7tfg5jV5I7gSOw8QwhC maoAn2sBwjfoOBhFt6u5fELK9X6XMp0A =Bxr3 -----END PGP SIGNATURE-----