From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 21 12:33:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B5F816A4CE; Sun, 21 Dec 2003 12:33:12 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3761043D5E; Sun, 21 Dec 2003 12:33:11 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 302D15C780; Sun, 21 Dec 2003 12:33:11 -0800 (PST) Date: Sun, 21 Dec 2003 12:33:11 -0800 From: Alfred Perlstein To: deischen@freebsd.org Message-ID: <20031221203311.GW60229@elvis.mu.org> References: <20031221135622.GU60229@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Mailman-Approved-At: Sun, 21 Dec 2003 14:07:54 -0800 cc: hackers@freebsd.org Subject: Re: support for __thread X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 20:33:12 -0000 * Daniel Eischen [031221 12:08] wrote: > On Sun, 21 Dec 2003, Alfred Perlstein wrote: > > > * Alfred Perlstein [031221 02:47] wrote: > > > How do I get __thread to work for me? > > > > > > http://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html > > > > > > it seems the assembler chokes on it? > > We don't have support for it yet. Why do you want it? .) it'd be nice to have it for future work .) linux seems to have it, so does MS but mostly: I'm porting webstone to use threads, and it uses that construct for the win32 threaded portion, it'd be really nice if we supported it so that I could make use of it instead of changing hundreds of lines of code. Any idea of how much effort it would take? I have no clue as to how to fix our toolchain, gooing the work in ld.so doesn't see that awful, but it's not trivial either: http://people.freebsd.org/~alfred/tls.pdf I want a threaded webstone so that I can generate a lot more load with wimpier client boxes on FreeBSD. Right now doing hundreds of connections nearly kills my desktop, but when threaded it barely hiccups. Also, in re: thread things: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/60477 :( -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684