From owner-freebsd-arch@FreeBSD.ORG Sat Oct 9 20:21:33 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5D7816A4CE for ; Sat, 9 Oct 2004 20:21:33 +0000 (GMT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 628E243D2D for ; Sat, 9 Oct 2004 20:21:33 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 9957 invoked by uid 89); 9 Oct 2004 20:21:31 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 9 Oct 2004 20:21:31 -0000 Received: (qmail 9947 invoked by uid 89); 9 Oct 2004 20:21:31 -0000 Received: from unknown (HELO palm.tree.com) (66.23.216.49) by duchess.speedfactory.net with SMTP; 9 Oct 2004 20:21:31 -0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id i99KLUmt075542; Sat, 9 Oct 2004 16:21:31 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Julian Elischer In-Reply-To: <4162E8B1.90803@elischer.org> References: <1095468747.31297.241.camel@palm.tree.com> <1096496057.3733.2163.camel@palm.tree.com> <1096603981.21577.195.camel@palm.tree.com> <200410041131.35387.jhb@FreeBSD.org> <1096911278.44307.17.camel@palm.tree.com> <41619D29.1000704@elischer.org><4161A7BD.3040706@elischer.org> <4162E8B1.90803@elischer.org> Content-Type: text/plain Message-Id: <1097353290.70165.1589.camel@palm.tree.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 09 Oct 2004 16:21:30 -0400 Content-Transfer-Encoding: 7bit cc: Peter Holm cc: "freebsd-arch@freebsd.org" Subject: Re: scheduler (sched_4bsd) questions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 20:21:33 -0000 On Tue, 2004-10-05 at 14:32, Julian Elischer wrote: > -- snip -- > there are two things to notice.. > firstly the "corrected slot count (2->1)" messge is still there. (grumble). > > this is hapenning when a threade dprocess moves back to be ing an > unthreaded preocess. > for some reason, the number of openning s is not being set back to 1 but > rather to 2. > I believe it is because while in thhe threaded mode it is already too > high by some amount > (sometimes equivalent to NTHREAD) but I can not see why. > Hopefully it is not a fatal problem (as it would be if it were too LOW, > but I hope to figure it > out soon (maybe another one for Stephan :-) > -- snip -- There is an extra SLOT_RELEASE - sched_rem already released the slot. RCS file: /cvsroot/src/sys/kern/kern_switch.c,v retrieving revision 1.97 diff -u -r1.97 kern_switch.c --- kern_switch.c 5 Oct 2004 22:03:10 -0000 1.97 +++ kern_switch.c 9 Oct 2004 20:18:53 -0000 @@ -372,7 +372,6 @@ sched_rem(tda); tda = kg->kg_last_assigned = TAILQ_PREV(tda, threadqueue, td_runq); - SLOT_RELEASE(kg); } /*