Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What Apps benefit from NativePosixThreadLibrary
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Wed Sep 17, 2003 9:03 pm    Post subject: What Apps benefit from NativePosixThreadLibrary Reply with quote

Hi,

I was wondering what applications really benefit from the NativePosixThreadLibrary:
1. All threaded applications
2. All applications written to use NPTL (if so how does one recognize such an applications?)
3. Maybe even single threaded apps, because a process is a thread more or less also...?

Kind Regards,
DrZ
Back to top
View user's profile Send private message
verbatim
Apprentice
Apprentice


Joined: 13 Mar 2003
Posts: 223

PostPosted: Wed Sep 17, 2003 9:59 pm    Post subject: Reply with quote

I could be wrong, but I'm pretty sure it replaces the library being used for threading now in linux, so that all threaded applications benefit automatically.
Back to top
View user's profile Send private message
pmjdebruijn
Guru
Guru


Joined: 24 Jul 2003
Posts: 506
Location: Sittard, The Netherlands

PostPosted: Thu Sep 18, 2003 11:40 am    Post subject: Reply with quote

NPTL should increase linux' scalability, but how does that reflect on single CPU systems? Will they also benefit? or only SMP machines...

Bye,
DrZ
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Thu Sep 18, 2003 5:01 pm    Post subject: Reply with quote

Systems which run a lot of (which means hundreds or thousands) concurrent threads will benefit most. The typical desktop where only a small number of threads run concurrently won't benefit much from it.

NPTL will also speed up threading on single CPU machines, because operations like the creation of threads are evidently cheaper with NPTL then with the old linux thread library.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Sep 18, 2003 6:22 pm    Post subject: Reply with quote

Java is a typical app that will benefit from beeing recompiled with a GLIBC with NPTL.

Just emergeing glibc with nptl set in your USE flags is not going to do any good, you have to actually recompile your JDK too.

I'm sure there are other apps that are threaded which will benefit from it too.

I have been using glibc/nptl and j2sdk 1.4.1 for quite some time and it works fine.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
cederberg
Guru
Guru


Joined: 23 Jan 2003
Posts: 349
Location: Stockholm / Sweden

PostPosted: Thu Sep 18, 2003 10:40 pm    Post subject: Reply with quote

ebrostig wrote:
Just emergeing glibc with nptl set in your USE flags is not going to do any good, you have to actually recompile your JDK too.

I think if you use the sun-jdk-1.4.2 or later, NPTL is enabled by default. At least that is true for Red Hat, so it ought to work the same on a Gentoo box with NPTL. Also, sun-jdk is a binary ebuild, so there is really no recompilation going on.

I guess, though, that if you are using the sun-j2sdk ebuild (as Erik does) you really need to recompile (i.e. reemerge).
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sun Sep 21, 2003 10:08 am    Post subject: Reply with quote

cederberg wrote:
ebrostig wrote:
Just emergeing glibc with nptl set in your USE flags is not going to do any good, you have to actually recompile your JDK too.

I think if you use the sun-jdk-1.4.2 or later, NPTL is enabled by default. At least that is true for Red Hat, so it ought to work the same on a Gentoo box with NPTL. Also, sun-jdk is a binary ebuild, so there is really no recompilation going on.

I guess, though, that if you are using the sun-j2sdk ebuild (as Erik does) you really need to recompile (i.e. reemerge).

I can cofirm that sun-jdk-1.4.2_01 uses NPTL without recompilation. It has also been stated elsewhere that binary jdk seems to be faster than self-compiled, probably because of the use of proprietary optimizing compilers (intel-jdk/icc comes to mind, no idea what the sun people use).

What are typical apps apart from java which will benefit?
A quick emerge -pve world on my system showed that part from glibc only wine and fltk respect the +nptl USE flag.

Multimedia apps are typically threaded, so I re-emerged things like transcode and mplayer. Blender would probably benefit too. I also recompiled bzip2 and friends, but I doubt they use threads.

Anything else?
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
yardbird
l33t
l33t


Joined: 20 Apr 2002
Posts: 689
Location: nl.leiden

PostPosted: Sun Sep 21, 2003 6:06 pm    Post subject: Reply with quote

nephros wrote:

Multimedia apps are typically threaded, so I re-emerged things like transcode and mplayer.


MPlayer is single-threaded, as far as I remember. It is a precise architectural policy of MPlayer devs. If you are looking for a threaded version of MPlayer, go to http://mplayerxp.sf.net.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum