Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10994 - glibc2.3.1 and NPTL, the NativePosix Thread Library
Summary: glibc2.3.1 and NPTL, the NativePosix Thread Library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL: ftp://people.redhat.com/drepper/nptl/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-20 04:40 UTC by Christian Parpart (RETIRED)
Modified: 2003-04-12 09:16 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Parpart (RETIRED) gentoo-dev 2002-11-20 04:40:58 UTC
Hi, 
 
I need the NPTL to be installed on my (at least the server) system, because it is said 
that it is very very faster that the current linuxthread (current default pthread) 
library. 
 
Further information about NPTL: 
http://people.redhat.com/drepper/glibcthreads.html 
http://lwn.net/Articles/10465/ 
http://www.onlamp.com/linux/2002/11/07/graphics/perf-s-100000-par.png 
http://www.onlamp.com/pub/a/onlamp/2002/11/07/linux_threads.html 
 
The reason for having NPTL (instead of linuxthread) is not just because it is faster. 
It rather fixes lots of issues linuxthread still have. 
 
Why I need it, is because I am serving a heavily multithreaded daemon that could be 
run faster then. 
 
Of course, I already tried to patch glibc-2.3.1-r2.ebuild on my own, but the emerge 
process aborted all the time (at any else place) That because it also needs TLS 
support enabled. 
I introduced the use-flag nptl for that, so that the user can decide by himself :o) 
 
Please help me finding a way to let Gentoo run NPTL, too. 
Best regards, 
Christian Parpart. 
 
nearby: development-sources-2.5.48 broke at devfs module, why ever :(
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-20 08:18:06 UTC
Hi.  This is still highly experimental work.  There was up to date only one
release, and its alpha.  Thurther more, it needs linux kernel 2.5, which
at best these days is very flaky.  I would not recommend running it on
anything but a devel/test box, not even talking about a server !!!

I would really ask you to reconsider this, or rather consider NGPT if
you really cannot make linuxthreads1 do, as it at least is in development
for some time now, and have some stories of success.

Anyhow, I for one are not going to do any work on this with plans to get
it into Gentoo until it at  least (with linux-2.5) have some sort of stability
attached to it.  Prelink, etc is much more important afiak.
Comment 2 Arun Thomas (RETIRED) gentoo-dev 2002-11-20 10:16:19 UTC
There is a patch for the devfs compile problem on kerneltrap:

http://www.kerneltrap.org/node.php?id=496#comment
Comment 3 Christian Parpart (RETIRED) gentoo-dev 2002-11-22 12:21:16 UTC
http://www.kegel.com/c10k.html#threads.nptl 
This is a new link to NPTL, why NPTL, and how further links on howto set it up ;) 
 
I think gentoo should support this before its `very stable` state, too, because 
Getnoo is more a developer distribution, that means, it's used more by developers 
than plain users, and Gentoo contains tons of instable/beta/etc code that got 
masked using ~ARCH in make.conf and #package in packages.mask. 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 18:35:27 UTC
I dont think I will get to this post Gentoo 1.4.
Comment 5 Stefan Jones (RETIRED) gentoo-dev 2003-01-08 03:02:57 UTC
Hi, I have been working on this recently. It works quite will, using nptl-0.15.

I still have the kernel to finish / stabalise, but other then that it's ok. ( I
am tring to get it to work with 2.4.x kernels with a patch developed for redhat )
For more details, I mistakenly posted here, 

http://bugs.gentoo.org/show_bug.cgi?id=7733
Comment 6 Alex Veber 2003-01-18 09:54:28 UTC
I just finished building a NPTL 0.17 + linux 2.5.58 system.
and all I can say is WOW, works great!
XFree + KDE + Mozilla + Xmms + Mplayer all working and running faster!
NPTL is pretty much ready for prime time :)


-Alex "CoronaLVR" Veber
Comment 7 Christian Parpart (RETIRED) gentoo-dev 2003-02-27 19:40:32 UTC
I'd just like to say that this works just nice at my system, everything most current here, and glibc also build using "nptl" flag ;)

The only pain that hit me is that the nvidia-glx module really segfaults.
But since NPTL should be compatible (in API and spec) to the old linuxthreads I guess that this is an NPTL issue, isn't it?

Many Thanks,
Christian Parpart.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-27 23:19:57 UTC
As far as I could find out it is a problem with how nvidia-glx uses threads.
Nvidia is working on a fix, but could not give me an eta.
Comment 9 Stefan Jones (RETIRED) gentoo-dev 2003-02-28 02:59:55 UTC
I just use the vesa XFree driver which works fine, you don't get accelerated 3D, but I reboot to windows for that.

The Nvidia developers are working as we speak, they have emailed a couple of developer lists for infomation on the new systems. (phil-list and wine-devel )
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-12 01:10:35 UTC
Ok, this should be resolved.  If you have 'nptl' in USE, and use 2.5 kernel,
nptl works great.  Also, glibc-2.3.2-r1 and the latest nvidia drivers 4349,
resolves the 3D issues.
Comment 11 Alex Veber 2003-04-12 09:16:19 UTC
You are right! everything works here, the only app that b0rks is strace. 
being playing serious sam 2 for a few days now :)