From owner-freebsd-current@FreeBSD.ORG Thu Aug 3 19:03:47 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 9211316A4DF; Thu, 3 Aug 2006 19:03:47 +0000 (UTC) (envelope-from ssouhlal@FreeBSD.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBB5443D62; Thu, 3 Aug 2006 19:03:46 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.250.2] (80-219-8-155.dclient.hispeed.ch [80.219.8.155]) by elvis.mu.org (Postfix) with ESMTP id A48C21A3C19; Thu, 3 Aug 2006 12:03:45 -0700 (PDT) Message-ID: <44D24886.1090500@FreeBSD.org> Date: Thu, 03 Aug 2006 21:03:34 +0200 From: Suleiman Souhlal User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Grehan References: <44D12AC0.90009@sippysoft.com> <0C6ADBC1-E3DF-47D1-AA77-EA9BD14E059F@xcllnt.net> <44D22C7A.8030204@sippysoft.com> <44D2416A.3070806@freebsd.org> In-Reply-To: <44D2416A.3070806@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Daniel Eischen , "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 19:03:47 -0000 Peter Grehan wrote: >> 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). I believe I only tried apache-threads with libthr. In fact, I don't think I've ever even used libpthread on powerpc.. :-( -- Suleiman