From owner-freebsd-current@FreeBSD.ORG Fri Jan 29 20:12:12 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 63D7F106566B; Fri, 29 Jan 2010 20:12:12 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-px0-f183.google.com (mail-px0-f183.google.com [209.85.216.183]) by mx1.freebsd.org (Postfix) with ESMTP id 2FFC28FC0A; Fri, 29 Jan 2010 20:12:11 +0000 (UTC) Received: by pxi13 with SMTP id 13so469324pxi.3 for ; Fri, 29 Jan 2010 12:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=4vxwY6z/arfp0MXZZuqFnO2iIskqSXlQoo69HfxWdPk=; b=P+mL5mQn+0VBYaN/+PdCKaBpgxcg6C/C+j2sw7nBJVZdV46QN2yefGt3+R+RyI8DWb 0SFuO37HFcCfoYajImy9kSdihAho9pY06Iucgd6Vpe2aENtLIu/C2ZB4oZItSC3N3yi0 qAXRDXEEw5VBMEUUuEp7fxuFVi/tnUwLEwg0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=X1uHcgvG0cwNQ0B2PxRDzs7FdgCgIyCKQ1VtKKv+iSsgHEYTq1HeXSrXnFgIbRtffO k16XxlqdxSQKPsmxbgp4wVN/jiRqLU0IU2TVh371woMP5JsqcXNrRPrclKsUzPzWBLyf qAfH64W5u/EAF7IqWCAGzgC9bFuYZdQtC91WU= MIME-Version: 1.0 Received: by 10.142.152.40 with SMTP id z40mr859910wfd.211.1264795931630; Fri, 29 Jan 2010 12:12:11 -0800 (PST) In-Reply-To: <4e6cba831001290744m6067691ct489c61fe9cd28502@mail.gmail.com> References: <20100128201520.6a114290@ernst.jennejohn.org> <117532D7-75B9-4BE8-A8B6-0A6761064B92@lakerest.net> <4e6cba831001290744m6067691ct489c61fe9cd28502@mail.gmail.com> Date: Fri, 29 Jan 2010 20:12:11 +0000 Message-ID: <179b97fb1001291212p5b0829f2pea28ab36a85751cf@mail.gmail.com> From: Brandon Gooch To: Giovanni Trematerra Content-Type: text/plain; charset=ISO-8859-1 Cc: Attilio Rao , FreeBSD Current , Randall Stewart 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: Fri, 29 Jan 2010 20:12:12 -0000 On Fri, Jan 29, 2010 at 3:44 PM, Giovanni Trematerra wrote: > On Thu, Jan 28, 2010 at 10:55 PM, Randall Stewart wrote: >> 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 >>>> > > Hi Randal, > I tried your code on an 8-core machine with a fresh head (i386) > I have no problems with both 4BSD and ULE scheduler. > I even upping the value of macro NUM_THREAD to 24 but I didn't notice > nothing strange. > > Have you got a chance to reproduce it on your machines? > > -- > Gianni > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > I ran it on my dual-core, 8-STABLE/ULE laptop. The very first time I ran it, I experienced the temporary "seizure". It took several more runs before I could get it to happen again. When it did act up again, the subsequent runs resulted in VERY strange behavior -- the machine froze, the X server displayed "anomalous" behavior, and my mouse cursor lost it's bearing. After the my_thr program exited, I had to switch to ttyv0 and back to "reset" the mouse and get control of X again. Also -- and I assume this is a side-effect of whatever in the my_thr code (which I haven't read through and would doubtfully understand) -- the X apps I tried to launch (xpdf, Firefox) would not start-up until after the my_thr program exited. -Brandon