WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] glibc patch for TLS?

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] glibc patch for TLS?
From: Michael Long <nikarul@xxxxxxxxx>
Date: Mon, 25 Apr 2005 18:51:40 -0500
Cc: Nils Toedtmann <xen-devel@xxxxxxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 25 Apr 2005 23:51:25 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A0Nx9bufowD3uZj9k9dmpCwIOyJLaMVcatJp9wf6RPeXQhjXNPj5fN3XkdVis8Txmo6PQDfq/0GHxaOLCDNHxMUAEYURNnP5Qx9yT+m8jTPzYawQnksQD0qpJVzxj0vtpg6Vp1QKAblPi+vTe3XcHYPv77j2PrFcRfhapwH8Fp4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3D4C@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3D4C@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Michael Long <nikarul@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
That would be helpful, though the access still could be inside a
library, which would be a be pain to track down in say, Mozilla or
KDE.  Still, it's better than nothing.

  -Michael

On 4/25/05, Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx> wrote:
> 
> 
> > Nope, that's what I forgot.  I recompiled the patched glibc
> > with that flag and everything seems to be working fine.  I
> > can post the ebuild if people are interested.  It's pretty
> > straightforward, just adding the patch and making for the
> > CFLAGS get set properly.
> >
> > I'm now compiling all my packages with
> > -mno-tls-direct-seg-refs.  Is this necessary/recommended?  I
> > know some ebuild strip out CFLAGS it's unsure of, so if it's
> > necessary other packages may need to be modified.
> 
> Glibc really hammers the thread local storage stuff and hence
> experiences rather more of a slow down rather than any applications
> we've come across, but it would obviously be preferable to recompile
> anything that uses tls.
> 
> One of the hard things is figuring out which applications actually make
> use of the thread local attribute, and hence would actually benefit from
> recompiling.
> 
> I guess we could modify the warning message to print out the name of the
> process that did the -ve segment access...
> 
> Ian
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel