From owner-freebsd-current@FreeBSD.ORG Thu Aug 3 18:32:40 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4DD816A4EF; Thu, 3 Aug 2006 18:32:40 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA1043D58; Thu, 3 Aug 2006 18:32:38 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BZY44875 (AUTH peterg@ptree32.com.au); Fri, 4 Aug 2006 04:32:33 +1000 (EST) Message-ID: <44D2416A.3070806@freebsd.org> Date: Thu, 03 Aug 2006 11:33:14 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Daniel Eischen References: <44D12AC0.90009@sippysoft.com> <0C6ADBC1-E3DF-47D1-AA77-EA9BD14E059F@xcllnt.net> <44D22C7A.8030204@sippysoft.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "current@freebsd.org" , Maxim Sobolev , freebsd-ppc@freebsd.org Subject: Re: Looks like threading is b0rken on FreeBSD/powerpc 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, 03 Aug 2006 18:32:40 -0000 > No, I've no idea. Nothing's changed that I know of. I'm surprised > that it (powerpc libpthread) works! I know some supporting MD bits > were added to libpthread but never knew that they actually worked :) It only works in system scope. In theory it could work in process scope, though there's no simple way to determine if floating point regs have been used by another thread so you have to unconditionally context-switch fp state. I did a limited amount of testing, mostly with apps and the Sun 'ping-pong' thread test. I think Suleiman also ran up a bunch of larger apps with it (e.g. apache-threads). But that was in the 6.0 timeframe, and I've not seriously run up PPC for a few months now, certainly not since jemalloc went in. > Has the compiler changed recently? Nope, still at 3.4.4. later, Peter.