From owner-freebsd-current@FreeBSD.ORG Thu Jan 28 19:15:26 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 2BC0F1065670 for ; Thu, 28 Jan 2010 19:15:26 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by mx1.freebsd.org (Postfix) with ESMTP id 832758FC15 for ; Thu, 28 Jan 2010 19:15:25 +0000 (UTC) Received: from [195.4.92.10] (helo=0.mx.freenet.de) by mout0.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.70 #1) id 1NaZpr-0000cM-9z; Thu, 28 Jan 2010 20:15:23 +0100 Received: from p57ae10b4.dip0.t-ipconnect.de ([87.174.16.180]:18194 helo=ernst.jennejohn.org) by 0.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.72 #1) id 1NaZpq-0000eX-VS; Thu, 28 Jan 2010 20:15:23 +0100 Date: Thu, 28 Jan 2010 20:15:20 +0100 From: Gary Jennejohn To: Randall Stewart Message-ID: <20100128201520.6a114290@ernst.jennejohn.org> In-Reply-To: References: X-Mailer: Claws Mail 3.7.4 (GTK+ 2.16.2; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: A strange thing with yesterday's head.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2010 19:15:26 -0000 On Thu, 28 Jan 2010 10:30:37 -0800 Randall Stewart wrote: > All: > > I just found a very strange thing with yesterdays head. > > The program > > http://www.freebsd.org/~rrs/my_thr.c > > I compile it: > > cc -g -o my_thr my_thr.c /usr/lib/libthr.a -lpthread > > Now when you run this on a 2 core 64 bit machine running X11 with > yesterday > AM's current. The machine appears to lock completely. It really has > not give > it time and it will chug along.. but the mouse disappears etc... as if > its locked. > > It takes quite some time to complete .. and every now and then a > hickup will occur > and you get a slight response.. > > Now I took this code home and ran it on my 4core AMD (2.8Gig with real > AMD cores). And > it did NOT do the same.. but ran like you would expect it to. > > I then took the same code running on an identical 8.0 release machine > and ran it > and it worked like you would expect.. > > > It looks like some change in the scheduler in head is not doing good > things. > > Note my 4 core is behind the 2 core.. so it may not be core count > related.. when > I get off work today and get home I will do a update and see if the 4 > core starts > behaving badly too... > Are you using SCHED_4BSD? Seems to me some changes were made to it very recently. I tried this on my AMD64 X2 using SCHED_ULE and it worked OK. But I'm not running HEAD, because I'm using the svn tree with soft-updates journaling from a few days ago. --- Gary Jennejohn