LWN.net Logo

NPTL Support?

NPTL Support?

Posted Jul 24, 2005 22:37 UTC (Sun) by jwb (guest, #15467)
In reply to: NPTL Support? by jreiser
Parent article: OLS: Xen and UML

To answer the original question, Xen does not yet support NPTL.


(Log in to post comments)

NPTL Support?

Posted Jul 28, 2005 13:02 UTC (Thu) by demon (guest, #31340) [Link]

Actually, Xen works just fine with NPTL. The unmodified glibc will have a minor performance cost, due to the Xen hypervisor needing to enable a few workarounds to deal with the negative offsets of the GS register that were mentioned above, but a patched glibc makes this go away. NPTL-threaded apps work just as they do on a full-blown Linux machine.

As I don't use UML, I can't say if it does or not, though there might be similar concerns with it as to what had been cropping up with NPTL and Xen.

NPTL Support?

Posted Aug 3, 2005 0:13 UTC (Wed) by rimuhosting (guest, #31061) [Link]

As the parent says, Xen runs NPTL code OK - but a bit slower than other code. Apparently there is a patch to glibc for Xen guests that can improve the performance.

UML does not support NPTL right now. You typically need to just mv /lib/tls /lib/tls.broken to prevent apps using it. There is talk on the mailing lists of some modifications so that it will support NPTL in the future.

The main limitation that this all seems to create is with db4 which depends on NPTL for interprocess locking. e.g. this can affect subversion users, and the workaround is to use a file system backed repository instead.

--
Peter
RimuHosting - Xen/UML VPS Hosting

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds