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

xen-users

[Top] [All Lists]

Re: [Xen-users] /lib/tls.disable vs. software requiring tls

To: Christophe Yayon <lists@xxxxxxxx>
Subject: Re: [Xen-users] /lib/tls.disable vs. software requiring tls
From: Ernst Bachmann <e.bachmann@xxxxxxxx>
Date: 2006年3月14日 22:57:15 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年3月14日 21:58:03 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4417157F.6030401@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <2EADDE14346D88B5@xxxxxxxxxxxxx> <200603131604.15987.e.bachmann@xxxxxxxx> <4417157F.6030401@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
On Tuesday 14 March 2006 20:11, you wrote:
> Hi,
>
> but what about tomcat ? I use jre (java binary) which is linked to tls
> (thread local storage) :
>
> ldd /opt/jre/bin/java
> linux-gate.so.1 => (0xffffe000)
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7f34000)
> libdl.so.2 => /lib/tls/libdl.so.2 (0xb7f30000)
> libc.so.6 => /lib/tls/libc.so.6 (0xb7df9000)
> /lib/ld-linux.so.2 (0xb7f4b000)
>
> when i start a tomcat instance in a xen domU, i get lot of processes
> instead a single (but multi-threaded) process ?
>
Thats because in the old thread library each thread got its own process ID, 
the kernel had only little support for threads, so it had to be done that 
way.
(With nptl, they still have an own PID, but its hidden from the userspace 
better)
Without xen, nptl provides a huge speed boost to threaded applications (esp 
Java), so you really should try to get a xen-compilant NPTL glibc running.
=> no speed loss from xen emulating TLS, but all the benefits from futexes, 
fast context switch between threads, ...
So, moving /lib/tls away is just a quick workarround, installing a "fixed" 
glibc is a solution.
/Ernst
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] glibc 2.4 / nptl , Michael Heyse
Next by Date: [Xen-users] bonding, ethtool and live migration , Markus Hochholdinger
Previous by Thread: Re: [Xen-users] /lib/tls.disable vs. software requiring tls , Ernst Bachmann
Next by Thread: Re: [Xen-users] /lib/tls.disable vs. software requiring tls , Christophe Yayon
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /