Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
speed variation in compilation on ppc64? [solved]
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
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Fri Dec 01, 2006 1:46 pm    Post subject: speed variation in compilation on ppc64? [solved] Reply with quote

i just finished a stage 3 install on my g5. WOOT! wow, in the chroot from the install cd, things were zipping so fast! i couldn't read anything on screen.

i picked the 64 bit userland. anyhow, i rebooted into the box, and it seems its compiling a tad slowerly than what i saw on screen in the chroot.

the only differences i can think is possibly what i compiled into the kernel and what is compiled into the iso kernel?

any ideas here? i'll be investigating and try to make a visual comparison. i can just copy /proc/config.gz into /usr/src/linux and see if that changes?

i don't have hdparm on my sata drive. /dev/sda.


Last edited by gohmdoree on Wed Dec 13, 2006 1:56 am; edited 1 time in total
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Fri Dec 01, 2006 4:43 pm    Post subject: Reply with quote

Do you have

MAKEOPTS="-j3"

in your /etc/make.conf? (If it's a dual G5)

My Powermac G5 dual 2Ghz took about 4 hours or so to compile Openoffice alone. Pretty crazy.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Fri Dec 01, 2006 5:24 pm    Post subject: Reply with quote

i have -j4 actually.

the point i think i didn't clearly make before was that everything configuration wise was the same, save the building of the new kernel. (vs. the one from the minimal_install.iso)

visually, as things scroll down on the screen, it seemed a tad slower. while in the chroot setting everything up, it was dizzying trying to just even catch somethign passing on the screen.

four hours on openoffice? man. i been just resorting to the binary in my other installs. you find much of a performance change?

can you share your make.conf? would be interesting to see what you have set. i'll post mine and other details once i get home.

the kernel config is not fully optimized yet, but just wanted to get something working. maybe that is where i am finding my discrepancy.

regardless, i was highly pleased to see how my g5 was with gentoo. i probably won't ever use mac osx again, save for a few applications.
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Fri Dec 01, 2006 5:51 pm    Post subject: Reply with quote

-j4? That would mean you have 3 cpus. -j5 would be for a ppc quad. Yeah openoffice is a beast to compile. Other things didn't take that long at all.

Here are the relevant lines from my make.conf. I'm still on a 2.6.17 kernel (if you noticed the snd-powermac). Going to 2.6.18 shortly.

Code:
USE="X a52 aac acpi aim alsa altivec audiofile -arts bash-completion bidi bzip2 cdb cdio cdda cdparanoia cdr crypt cups dri dts dv dvb dvd dvdr dvdread encode ethereal fbcon ffmpeg flac freetype ftp foomaticdb gimpprint gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml httpd ieee1394 imagemagik jabber jack -java -javascript joystick jpeg -kde ladcca lash live mad matroska mikmod mozilla mp3 mpeg multilib ogg oggvorbis openal opengl osc pda pdf png portaudio ppds qt quicktime recode samba scanner sox spell svg svga stream symlink tetex tcltk tk theora tiff truetype usb v4l vcd videos vim vorbis wifi wxwindows xine xmms xml xprint xv xvid yahoo zlib"

CFLAGS="-O2 -pipe -mcpu=G5 -maltivec -mabi=altivec -fno-strict-aliasing"

MAKEOPTS="-j3"

VIDEO_CARDS="radeon"

ALSA_CARDS="snd-powermac"




Code:
stmiller@stmiller ~ $ cat /proc/cpuinfo
processor       : 0
cpu             : PPC970FX, altivec supported
clock           : 2000.000000MHz
revision        : 3.0 (pvr 003c 0300)

processor       : 1
cpu             : PPC970FX, altivec supported
clock           : 2000.000000MHz
revision        : 3.0 (pvr 003c 0300)

timebase        : 33333333
platform        : PowerMac
machine         : PowerMac7,3
motherboard     : PowerMac7,3 MacRISC4 Power Macintosh
detected as     : 336 (PowerMac G5)
pmac flags      : 00000000
L2 cache        : 512K unified
pmac-generation : NewWorld
stmiller@stmiller ~ $



This is the more interesting thing about Linux on this powermac:

Code:
stmiller@stmiller ~ $ cat /sys/devices/temperature/cpu0_temperature
39.078
stmiller@stmiller ~ $ cat /sys/devices/temperature/cpu1_temperature
47.776


In OS X this machine IDLES at 68-69C. In Gentoo, idles at around ~40C. And under a full load in Gentoo, only gets to 65C max. Much better thermal management in Linux than in OS X!

If I could only get lilypond to compile... :wink:


Last edited by stmiller on Fri Dec 01, 2006 10:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Fri Dec 01, 2006 6:10 pm    Post subject: Reply with quote

well with j3, j4, j5

that is really up to you. i have 2 cpu's, but just letting 4 threads compile in make. thats just something you can play around with a bit.

i wish i waited a year, and got the xeon dual core, duo cpu. 4 cpu cores! imagine how zippy openoffice would compile.

i'll post my config later tonight.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Sat Dec 02, 2006 2:56 am    Post subject: Reply with quote

assuming you had a radeon card, did you use the kernel drivers or did you emerge ati-drivers? i'm getting the missing keyword mask. did you create an overlay to get this working?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Dec 02, 2006 10:56 pm    Post subject: Reply with quote

ati-drivers are the x86 binary drivers, you want to add radeon to VIDEO_CARDS in make.conf and re-emerge xorg-server and mesa for the open source ones. As for the compilations being "slow", perhaps you didn't enable the radeon framebuffer? The open firmware frame buffer is much slower, so the text would scroll less quickly.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 04, 2006 1:40 am    Post subject: Reply with quote

josejx,

as always thanks for the insight and tips.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Wed Dec 13, 2006 1:56 am    Post subject: Reply with quote

marking closed. not sure if it was the framebuffer issue, or something different from the livecd environment and my newly installed.

anyhow, just a question nothing serious, or such a drastic difference.
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