Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NPTL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Negeus
n00b
n00b


Joined: 10 Mar 2004
Posts: 26
Location: Norfolk, England

PostPosted: Thu Mar 11, 2004 11:49 pm    Post subject: NPTL Reply with quote

Ive heard many things about using nptl in conjunction with the 2.6 kernel and how it increases system performance. I havnt seen anything though about using nptl on ppc. Is it possible? Is it less stable than an x86 system with ntpl? Is it worth it?

Your thoughts please
_________________
Bill meet Tux, Tux eat Bill


Last edited by Negeus on Fri Mar 12, 2004 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Fri Mar 12, 2004 3:09 am    Post subject: Reply with quote

by the way, its nptl - Native Posix Threading Library :)
Back to top
View user's profile Send private message
SonetSST
n00b
n00b


Joined: 17 Jan 2003
Posts: 46

PostPosted: Fri Mar 12, 2004 3:43 am    Post subject: nptl Reply with quote

I'm very curious to see how this turns out if you try...

As far as I know, 2.6 headers should not be considered stable on ppc, i've tried them a couple times; glibc will build, but, for example, mac-fdisk won't.
Back to top
View user's profile Send private message
Negeus
n00b
n00b


Joined: 10 Mar 2004
Posts: 26
Location: Norfolk, England

PostPosted: Fri Mar 12, 2004 9:43 am    Post subject: Reply with quote

Angrybob wrote:
by the way, its nptl - Native Posix Threading Library :)


It was late :oops:

I've edited my previous post to correct this error.

From what you were saying SonetSST it does not sound to hopeful at this moment in time. I may give it a try just to see if things have changed (when did you last try using the 2.6 headers?) but I wouldnt hold your breath.
_________________
Bill meet Tux, Tux eat Bill
Back to top
View user's profile Send private message
SonetSST
n00b
n00b


Joined: 17 Jan 2003
Posts: 46

PostPosted: Sat Mar 13, 2004 3:36 am    Post subject: Reply with quote

last time I tried was a week about a week ago, after the -r1 was added to the 2.6.3 headers ebuild. I'm not currently in linux and I'm too lazy to check right now, but I don't think it has been updated as of now. If you do switch, be sure to 'emerge glibc' right after you update your headers, otherwise you won't really see any advantages when you build with the new glibc.

mac-fdisk hasn't been updated in quite a while, so I have no idea when changes will be made to either the headers or mac-fdisk itsself to get it to build...
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Sat Mar 13, 2004 3:42 am    Post subject: Reply with quote

running nptl on a g4 for some months now here, without any problems afaik... so it is possible... :)
using:
ppc-development-sources-2.6.3-r2
gcc-3.3.3
glibc-2.3.3_pre20040207
linux-headers-2.6.3-r1
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
SonetSST
n00b
n00b


Joined: 17 Jan 2003
Posts: 46

PostPosted: Sat Mar 13, 2004 3:57 am    Post subject: Reply with quote

right, but what I did right after updating glibc was 'emerge -e world' which failed on many different things... I don't want to use 2.6 headers until I can build my entire system from them (like I currently can on my x86).
Back to top
View user's profile Send private message
ernstp
Apprentice
Apprentice


Joined: 19 Aug 2002
Posts: 155
Location: Lund - Sweden

PostPosted: Sat Mar 13, 2004 7:07 am    Post subject: Reply with quote

Works fine here too, since a month back.

gcc-3.3.3
glibc-2.3.3_pre20040207-r0
2.6.3-benh1
CFLAGS="-O3 -pipe -mcpu=750"
ACCEPT_KEYWORDS="ppc ~ppc"
Back to top
View user's profile Send private message
Negeus
n00b
n00b


Joined: 10 Mar 2004
Posts: 26
Location: Norfolk, England

PostPosted: Sat Mar 13, 2004 9:37 am    Post subject: Reply with quote

ernstp, CaribbeanKnight did you notice any increase in your systems performance?
_________________
Bill meet Tux, Tux eat Bill
Back to top
View user's profile Send private message
ernstp
Apprentice
Apprentice


Joined: 19 Aug 2002
Posts: 155
Location: Lund - Sweden

PostPosted: Sat Mar 13, 2004 3:48 pm    Post subject: Reply with quote

Yeah, I did some measurements on tar -jxf kernel-source and I think it was 15% faster with 2.6!
Other things too, but it's hard to say exactly. Scrolling in Konq is smoother, the autocompletion of addresses in Konq 3.1 apperard much faster, etc..
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Sun Mar 14, 2004 11:01 pm    Post subject: Reply with quote

as i use that machine purely as server (ftp, web, mail, light stuff..) so i didn't really see any improvements, but it was running fast as hell already, so... :)
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Mon Mar 15, 2004 10:12 pm    Post subject: Reply with quote

I'm building with gcc-3.3.3_pre20040215 on my old world gossamer g3. It builds the 2.4.24 kernel ok, but it panics on boot. Same with the latest benh 2.4 kernel. Everything else (emerge -e world) builds, and seems to run fine.

Where did you guys (CaribeanKnight and ernstp) get gcc-3.3.3. I'm running ~ppc and I haven't seen it show up on `emerge -u system`.

I was trying to get everything on my system up-to-date before moving to a 2.6 kernel. When I do, I definitely want to take advantage of NPTL.
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Tue Mar 16, 2004 3:42 am    Post subject: Reply with quote

gcc 3.3.3 is still masked on ppc, so try this:
Code:

ACCEPT_KEYWORDS="~ppc" emerge gcc

_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Tue Mar 16, 2004 3:47 pm    Post subject: Reply with quote

CaribbeanKnight,

When I tried:

Code:
ACCEPT_KEYWORDS="~ppc" emerge gcc


It still wants to emerge gcc-3.3.3_pre_20040215.

If I try:

Code:
emerge -pd sys-devel/gcc-3.3.3

These are the packages that I would merge, in order:

Calculating dependencies 
Parent:    None
Depstring: sys-devel/gcc-3.3.3
Candidates: ['sys-devel/gcc-3.3.3']
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2528, in ?
    retval,favorites=mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 883, in select_files
    self.mysd = self.select_dep(portage.root,mykey,arg=x)
  File "/usr/bin/emerge", line 962, in select_dep
    myeb=portage.portdb.xmatch("bestmatch-visible",x)
  File "/usr/lib/portage/pym/portage.py", line 4690, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4701, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 3539, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (sys-devel/gcc-3.3.3) (try adding an '=')"



and

Code:
emerge -pd =sys-devel/gcc-3.3.3

These are the packages that I would merge, in order:

Calculating dependencies 
Parent:    None
Depstring: =sys-devel/gcc-3.3.3
Candidates: ['=sys-devel/gcc-3.3.3']

!!! all ebuilds that could satisfy "=sys-devel/gcc-3.3.3" have been masked.
!!! possible candidates are:
- sys-devel/gcc-3.3.3 (masked by: missing keyword)
!!! Error calculating dependencies. Please correct.


Any ideas?
Back to top
View user's profile Send private message
Lukas
n00b
n00b


Joined: 05 Jun 2002
Posts: 32
Location: Amsterdam, The Netherlands

PostPosted: Tue Mar 16, 2004 5:52 pm    Post subject: Reply with quote

try
Code:
ACCEPT_KEYWORDS="~ppc" emerge -pd =sys-devel/gcc-3.3.3

It should not complain about being masked anymore.
_________________
Lukas
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Tue Mar 16, 2004 10:52 pm    Post subject: Reply with quote

Lukas,

I tried

Code:
ACCEPT_KEYWORDS="~ppc" emerge -pd =sys-devel/gcc-3.3.3


with the same results as above. I checked the e-build and ~ppc is not in the KEYWORDS list
Back to top
View user's profile Send private message
Exner
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2003
Posts: 128
Location: Melbourne, Australia

PostPosted: Wed Mar 17, 2004 3:21 am    Post subject: Reply with quote

I've been using NPTL for several months, even a year maybe. I've had no problems with it since mid to late last year. Definitly worth using. Increases the smoothness of all multi threaded apps like java, nautilus, etc. Not just big apps either.
_________________
- Exner (Antony Suter)
Back to top
View user's profile Send private message
Lukas
n00b
n00b


Joined: 05 Jun 2002
Posts: 32
Location: Amsterdam, The Netherlands

PostPosted: Wed Mar 17, 2004 11:13 am    Post subject: Reply with quote

rsala wrote:
I checked the e-build and ~ppc is not in the KEYWORDS list

I see what you mean (I just took a look at the ebuild). I'm not sure how people got gcc-3.3.3. on their system, without circumventing portage and just compiling the sources. But then again, I'm just a NooB. Sorry can't help you any further.
_________________
Lukas
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Wed Mar 17, 2004 5:05 pm    Post subject: Reply with quote

try this:
Code:

emerge /usr/portage/sys-devel/gcc/gcc-3.3.3.ebuild

_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sat Mar 20, 2004 4:33 am    Post subject: Reply with quote

Lukas wrote:
rsala wrote:
I checked the e-build and ~ppc is not in the KEYWORDS list

I see what you mean (I just took a look at the ebuild). I'm not sure how people got gcc-3.3.3. on their system, without circumventing portage and just compiling the sources. But then again, I'm just a NooB. Sorry can't help you any further.


They possibly think they have gcc 3.3.3 and not the preversion, however I would like the people who
think they have gcc 3.3.3 to issue the following command:
Code:
gcc --version

I would be very surprised if it didn't say it is the preversion.
I thougth I somehow had gcc 3.3.3
myself but couldn't work out how I got it until I tested it.
Back to top
View user's profile Send private message
tomasino
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 154
Location: Italy, Bologna

PostPosted: Mon Mar 22, 2004 8:47 am    Post subject: Reply with quote

ernstp wrote:

CFLAGS="-O3 -pipe -mcpu=750"
ACCEPT_KEYWORDS="ppc ~ppc"


I've read that -O2 flag on ppc make better code than -O3 (faster and smaller). Is it true?
Back to top
View user's profile Send private message
SonetSST
n00b
n00b


Joined: 17 Jan 2003
Posts: 46

PostPosted: Mon Mar 22, 2004 7:26 pm    Post subject: O3 Reply with quote

no, that is not true, O3 is supposed to output more "optimized" code, but most find that it is broken on ppc, in which case people settle for the next best thing which is O2.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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