Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nptl - to be or not to be
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

Should i switch to NPTL?
Yes
92%
 92%  [ 279 ]
No
7%
 7%  [ 24 ]
Total Votes : 303

Author Message
sickworm
n00b
n00b


Joined: 08 Oct 2003
Posts: 45

PostPosted: Tue Apr 13, 2004 5:08 pm    Post subject: Nptl - to be or not to be Reply with quote

So, should i use Nptl ? Is it better? Why? What bugs did you have ?
Back to top
View user's profile Send private message
ett_gramse_nap
Apprentice
Apprentice


Joined: 01 Oct 2003
Posts: 252
Location: Göteborg, Sweden

PostPosted: Tue Apr 13, 2004 5:14 pm    Post subject: Re: Nptl - to be or not to be Reply with quote

sickworm wrote:
So, should i use Nptl ? Is it better? Why? What bugs did you have ?


I see no real reasons to not use it. Especially not if your coding a lot of Java.
_________________
Don't bother!
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


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

PostPosted: Tue Apr 13, 2004 7:14 pm    Post subject: Reply with quote

I've been running glibc with nptl for quite some time and have not had any problems with it. It is great when you use a lot of java applications. One process is started rather than numerous without nptl. Easier debugging also.

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
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2148
Location: Manchester UK

PostPosted: Tue Apr 13, 2004 7:33 pm    Post subject: Reply with quote

I'll reiterate similar sentiments of a seemless experience here as well. Had nptl enabled for at least 6 months without issue.

And ps never looked so nice.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: Harvey Mudd College

PostPosted: Tue Apr 13, 2004 9:42 pm    Post subject: Reply with quote

0 bugs so far. It's purty.
_________________
Registered Linux User #263260
Back to top
View user's profile Send private message
castorilo
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 157

PostPosted: Tue Apr 13, 2004 10:03 pm    Post subject: I have some problems. Reply with quote

On my laptop (P3 750Mhz) it works flawlessly.

On my desktop (dual P3 1Ghz) it does not work. As soon as I emerge glibc, some programs (perl most notably) crash with a floating point exception. It lets me reemerge glibc though.

There are other issues with nptl.
check here
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


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

PostPosted: Tue Apr 13, 2004 11:04 pm    Post subject: Re: I have some problems. Reply with quote

paulpach wrote:
On my laptop (P3 750Mhz) it works flawlessly.

On my desktop (dual P3 1Ghz) it does not work. As soon as I emerge glibc, some programs (perl most notably) crash with a floating point exception. It lets me reemerge glibc though.

There are other issues with nptl.
check here


Have you tried to re-emerge perl after compiling glibc with nptl?

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
Senso
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 250
Location: Montreal, Quebec

PostPosted: Tue Apr 13, 2004 11:41 pm    Post subject: Reply with quote

Is there any requirement to use nptl? I'm on a AMD Athlon XP, using gentoo-sources 2.4.22 (currently emerging 2.4.25). When I tried emerging glibc with nptl, it said my "kernel or architecture does not support nptl". Is it a kernel config option?
Back to top
View user's profile Send private message
wdreinhart
Guru
Guru


Joined: 11 Jun 2003
Posts: 569
Location: 14SQB1124847710

PostPosted: Tue Apr 13, 2004 11:57 pm    Post subject: Reply with quote

I don't think there's a config option for it, but nptl requires kernel 2.6.
Back to top
View user's profile Send private message
Senso
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 250
Location: Montreal, Quebec

PostPosted: Wed Apr 14, 2004 12:21 am    Post subject: Reply with quote

Argh. I'm not switching to 2.6 any time soon - can't get my geForce card and sound card to work. Oh well, I'll have to wait before going to javahappyland.
Back to top
View user's profile Send private message
AngusYoung
Retired Dev
Retired Dev


Joined: 20 Dec 2002
Posts: 473
Location: Campinas, SP - Brazil

PostPosted: Wed Apr 14, 2004 12:47 am    Post subject: Re: Nptl - to be or not to be Reply with quote

sickworm wrote:
So, should i use Nptl ? Is it better? Why? What bugs did you have ?

I didn't noticed any general improvements in "normal" applications (normal != java apps). Also, I'm having problems running/compiling valgrind.
_________________
N.U.S.: A cross platform C++ application development framework
My blog (in Portuguese)
Back to top
View user's profile Send private message
castorilo
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 157

PostPosted: Wed Apr 14, 2004 3:42 pm    Post subject: Re: I have some problems. Reply with quote

ebrostig wrote:

Have you tried to re-emerge perl after compiling glibc with nptl?

Erik


Yes I have, this is what I get:

Code:

#emerge perl
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-lang/perl-5.8.2-r1 to /

...

Checking your choice of C compiler and flags for coherency...
Configure: line 4962: 11694 Floating point exception$sh -c "$run ./try" >>try.msg 2>&1
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

        gcc -o try -O2 -march=pentium3 -pipe -mmmx -fstack-protector -fno-strict-aliasing -L/usr/local/lib try.c -lpthread -lbind -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
         ./try

and I got the following output:

The program compiled OK, but exited with status 136.
You have a problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.

!!! ERROR: dev-lang/perl-5.8.2-r1 failed.
!!! Function src_compile, Line 188, Exitcode 1
!!! Unable to configure


and emerge exits right there.
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Wed Apr 14, 2004 4:25 pm    Post subject: Reply with quote

some commercial software (for example matlab) doesn't work with glibc compiled enabling nptl

there are workarounds, but I don't like them
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
Riftwing
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 293

PostPosted: Wed Apr 14, 2004 5:46 pm    Post subject: Reply with quote

Mplayer and xmms etc. seg fault for me when nptl is enabled.
_________________
Good, bad, I'm the guy with the gun. - Ash, Army of Darkness
Back to top
View user's profile Send private message
IvanHoe
l33t
l33t


Joined: 05 Oct 2002
Posts: 658

PostPosted: Wed Apr 14, 2004 7:30 pm    Post subject: Reply with quote

So, how do I get NPTL? Is there a special version of glibc I need to emerge? Is it a USE flag? A kernel option?

[edit] Oh, and what are the advantages of NPTL?
Back to top
View user's profile Send private message
AngusYoung
Retired Dev
Retired Dev


Joined: 20 Dec 2002
Posts: 473
Location: Campinas, SP - Brazil

PostPosted: Wed Apr 14, 2004 7:36 pm    Post subject: Reply with quote

IvanHoe wrote:
So, how do I get NPTL? Is there a special version of glibc I need to emerge? Is it a USE flag? A kernel option?

[edit] Oh, and what are the advantages of NPTL?


This:
Code:
USE="nptl" emerge glibc

_________________
N.U.S.: A cross platform C++ application development framework
My blog (in Portuguese)
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Wed Apr 14, 2004 10:05 pm    Post subject: Reply with quote

will nptl speed up other apps other then java?

Just wondering, becuase i'm about to install it :D:D:D:D

now where's that little script in "Tips & Tricks" section that shows all the apps that are installed with a given USE flag.......
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Apr 14, 2004 11:37 pm    Post subject: Reply with quote

I honestly have not run into any problems with nptl.
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Apr 14, 2004 11:43 pm    Post subject: Reply with quote

I don't use NPTL.. the one time I tried using it it, I managed to royally fuck up glibc, and I had to install it from stage3. A huge pain in the ass.
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Thu Apr 15, 2004 1:19 pm    Post subject: Reply with quote

Aahh found it!!

http://forums.gentoo.org/viewtopic.php?t=112414&highlight=script+flag

thats a nice script.

Anyway, the only app that uses the nptl flag is glibc :D:D:D
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Thu Apr 15, 2004 2:41 pm    Post subject: Reply with quote

Riftwing wrote:
Mplayer and xmms etc. seg fault for me when nptl is enabled.


These both work fine for me with NPTL.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Thu Apr 15, 2004 3:55 pm    Post subject: Reply with quote

i see lots of errors about glibc when i start xmms. But it work fine. I just get the errors in console.

I tried rreinstalling xmms. But it did not get rid of the errors.

Anyway, it works fine. but shows error. :)
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
venkat
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2003
Posts: 110
Location: USA

PostPosted: Thu Apr 15, 2004 8:54 pm    Post subject: Reply with quote

xmms runs fine without any errors displayed on console. this is not a nptl problem i guess. btw which glibc are you using? try the latest ~x86 one. i've been using it for months now without problems. i only re-emerged glibc with nptl in the USE flag. still using 2.4 headers.

my system has NPTL, ACPI, APIC uniprocessor support, CFQ scheduler, all enabled, runs KDE 3.2 on a 2.6.5-love4 kernel. it simply ROCKS! no real stability issues for months now.
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Thu Apr 15, 2004 9:59 pm    Post subject: Reply with quote

venkat wrote:
my system has NPTL, ACPI, APIC uniprocessor support, CFQ scheduler, all enabled, .....


OK i've now added CFQ in grub and now i have everything that you have there.

Is there anything else i can do? i'm a performance junkie :D:D:D

I've got my whole system prelinked and using NPTL. i need more!!!!!!
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Apr 16, 2004 5:23 am    Post subject: Reply with quote

MooktaKiNG wrote:
venkat wrote:
my system has NPTL, ACPI, APIC uniprocessor support, CFQ scheduler, all enabled, .....


OK i've now added CFQ in grub and now i have everything that you have there.

Is there anything else i can do? i'm a performance junkie :D:D:D

I've got my whole system prelinked and using NPTL. i need more!!!!!!


4 disk sata raid0 array reiser4?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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