View previous topic :: View next topic |
Author |
Message |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Fri Jul 28, 2006 3:57 pm Post subject: [OPTIMISATION] Est-ce la bonne façon ? (resolu) |
|
|
Bonjour à tous ..
Voila je me suis dis ..
bon ca fait une semaine que tu as réinstallé en amd64 ..
c'est cool c'est stable ..
mais punaise qu'est ce que je me fais ch..r
Donc dans mon make.conf j'ai injecté un petit ~ et un -O4 plus d'autres raffinements concernant un certain vectorize
bon ok tout le monde vas me dire = "ca vas te péter à la tronche"
mais bon ...
à votre avis un
Code: |
emerge --sync && emerge gcc && emerge system -e && emerge world -e
|
devrait faire l'affaire pour en proffiter un max ou ais-e oublié quelque chose ? :p
NOTA=Je ne veux pas de troll sur les optimisations sélectionnées svp uniquement si mes commandes vont faire comme un stage1 grosso-modo :p
EDIT=Ca vas réellement péter (aux deux sens du terme) avec gcc 4.2 .. mouhahaha j'adore le =
export I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1
pour l'émerger.
Last edited by dapsaille on Fri Jul 28, 2006 4:27 pm; edited 1 time in total |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Jul 28, 2006 4:12 pm Post subject: |
|
|
et bien..
emerge glibc gcc && emerge binutils glibc gcc && emerge -e system && emerge -e world
C'est overkill, mais garanti que tu utiliseras tout ce qui est nouveau partout.  _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Fri Jul 28, 2006 4:27 pm Post subject: |
|
|
Super
je n'en attendais pas moins de toi :p
Merci ^^ |
|
Back to top |
|
 |
PabOu Veteran


Joined: 11 Feb 2004 Posts: 1088 Location: Namur - Belgium
|
Posted: Fri Jul 28, 2006 6:00 pm Post subject: |
|
|
Si il change de version gcc, il ne faut pas passer par une étape de "eselect compiler" ? _________________ Mangez du poulet ! |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Jul 28, 2006 6:30 pm Post subject: |
|
|
Si, mais il parle juste de modifications dans les CFLAGS, la. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
PabOu Veteran


Joined: 11 Feb 2004 Posts: 1088 Location: Namur - Belgium
|
Posted: Fri Jul 28, 2006 9:24 pm Post subject: |
|
|
oui enfin, il a parlé de gcc 4.2 alors bon :) _________________ Mangez du poulet ! |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Fri Jul 28, 2006 9:43 pm Post subject: |
|
|
Ouais c'est vrai mais bon un gcc-config as fait l'affaire :p
Bon j'en suis à 50 packetages du emerge system et en gcc 4.2 ca tourne :p |
|
Back to top |
|
 |
Tom_ Guru


Joined: 20 May 2004 Posts: 448 Location: France
|
Posted: Fri Jul 28, 2006 10:36 pm Post subject: |
|
|
Quand tu auras finis de tout recompiler, tu pourras nous faire un résumé de tes optimisations et de leurs résultats en pratique. J'ai également un système ~amd64 donc ca m'interesse pas mal (même si je ne suis pas tenté par gcc-4.2 pour le moment). Merci. |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Fri Jul 28, 2006 11:14 pm Post subject: |
|
|
Sans soucis, je remonte l'info demain normallement :p |
|
Back to top |
|
 |
Nattfodd Retired Dev


Joined: 07 Feb 2006 Posts: 62 Location: Göteborg, Sweden
|
Posted: Fri Jul 28, 2006 11:32 pm Post subject: |
|
|
A noter que sauf erreur, -O4 ne sert à rien puisque gcc s'arrête à -O3 (en gros, pour n>=3, -On == -O3). Je suis à peu près sûr que c'est vrai sur x86, un peu moins sur amd64.
Et effectivement, emerger une nouvelle version de gcc ne sert à rien si tu ne switches pas manuellement après coup avec eselect compiler. _________________ Don't believe the red stuff, I'm retired. |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Sat Jul 29, 2006 7:39 am Post subject: |
|
|
Nattfodd wrote: | A noter que sauf erreur, -O4 ne sert à rien puisque gcc s'arrête à -O3 (en gros, pour n>=3, -On == -O3). Je suis à peu près sûr que c'est vrai sur x86, un peu moins sur amd64.
Et effectivement, emerger une nouvelle version de gcc ne sert à rien si tu ne switches pas manuellement après coup avec eselect compiler. |
Ha .. c'est pobable en effet je ne suis pas calé en la matière .. en tout cas gcc accepte mon -O4 sans broncher lors des compilations ?!
Je verrais bien :p
EDIT= Bon mon emerge system -e c'est bien déroule avec ce make.conf
Code: |
CFLAGS="-O4 -mmmx -msse -msse2 -m3dnow -mfpmath=sse,387 -ftree-vectorize -march=
athlon64 -ffast-math -funroll-loops -fexpensive-optimizations -frerun-loop-opt -
fthread-jumps -fforce-addr -frerun-cse-after-loop -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
USE="kdehiddenvisibility nptl nptlonly qt3 qt4 browserplugin nsplugin kdeenablef
inal nowin timidity -ssl -gnome -esd -arts pcmcia -apache -php -mysql oss alsa h
al hald dbus java -cups -samba opengl dvd dvdrw dvd+rw"
FEATURES="ccache"
INPUT_DEVICES="mouse keyboard"
VIDEO_CARDS="vesa vga"
LINGUAS="fr FR fr_FR FR_fr"
ACCEPT_KEYWORDS="~amd64"
PORTDIR_OVERLAY=/usr/local/portage
|
EDIT2=N'avais pas vu le bouzin :p
Code: |
make[1]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8'
echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' >.shlist
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8'
Updating makefile...
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
make[1]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
sh ../makedepend MAKE=make
make[2]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
echo hash.c str.c util.c walk.c | tr ' ' '\n' >.clist
make[2]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
make[2]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[2]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
Updating makefile...
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
Now you must run 'make'.
If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.
make: *** No rule to make target `<command-line>', needed by `miniperlmain.o'. Stop.
!!! ERROR: dev-lang/perl-5.8.8-r2 failed.
Call stack:
ebuild.sh, line 1545: Called dyn_compile
ebuild.sh, line 940: Called src_compile
perl-5.8.8-r2.ebuild, line 267: Called die
!!! Unable to make
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
Bon ok j'ais un script d'autorésume du emerge avec skipfirst :p |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Sun Jul 30, 2006 7:54 am Post subject: |
|
|
Bon j'ai laissé tombé gcc 4.2 dans le sens ou tout ce qui concerne python se gauffre :p
j'ai repris à zéro avec gcc 4.1 et les mêmes optimisations citées plus haut et ca rulez suis à 200/450 de mon world sans problèmes :p |
|
Back to top |
|
 |
|