From owner-freebsd-current@FreeBSD.ORG Thu Jan 28 21:55:44 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 126FD106566C for ; Thu, 28 Jan 2010 21:55:44 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (unknown [IPv6:2001:240:585:2:213:d4ff:fef3:2d8d]) by mx1.freebsd.org (Postfix) with ESMTP id 97D978FC1A for ; Thu, 28 Jan 2010 21:55:43 +0000 (UTC) Received: from mobile-166-129-219-006.mycingular.net (mobile-166-129-219-006.mycingular.net [166.129.219.6] (may be forged)) (authenticated bits=0) by lakerest.net (8.14.3/8.14.3) with ESMTP id o0SLtURf084194 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 28 Jan 2010 16:55:38 -0500 (EST) (envelope-from rrs@lakerest.net) Message-Id: <117532D7-75B9-4BE8-A8B6-0A6761064B92@lakerest.net> From: Randall Stewart To: gary.jennejohn@freenet.de In-Reply-To: <20100128201520.6a114290@ernst.jennejohn.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 28 Jan 2010 13:55:21 -0800 References: <20100128201520.6a114290@ernst.jennejohn.org> X-Mailer: Apple Mail (2.936) 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 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 21:55:44 -0000 I was running SCHED_ULE on an 8.0 and everything works fine. On my 2 core head of yesterday I tried both SCHED_ULE AND 4BSD.. and got the same results ;-0 I will try my 4 core when I get home ;-) R On Jan 28, 2010, at 11:15 AM, Gary Jennejohn wrote: > 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 > ------------------------------ Randall Stewart 803-317-4952 (cell) 803-345-0391(direct)