Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prędkość systemu...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
no4b
Bodhisattva
Bodhisattva


Joined: 18 Jan 2004
Posts: 774
Location: Tarnów, Poland

PostPosted: Sun Mar 28, 2004 9:54 pm    Post subject: Reply with quote

Co do moich flag, to nie czytalem testow, po prostu nie chce mi sie. Samo tak sie wyklarowalo podczas uzywania FreeBSD i na poczatku uzyania Gentoo.

Dodac mozna jeszcze -mfpmath=sse, ale moj procesor nie obsluguje...
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Sun Mar 28, 2004 10:25 pm    Post subject: Reply with quote

C1REX Mozesz wkleic swoje aktualne flagi ?

Teraz male OT:
Moze mi ktos powiedziec, czy oplaca sie dawac do flag -fno-rerun-loop-opt i co ta flaga robi ?
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Sun Mar 28, 2004 11:33 pm    Post subject: Reply with quote

OBenY wrote:
C1REX Mozesz wkleic swoje aktualne flagi ?


kolkowski_damian gdzieś na grupach dyskusyjnych wrote:
Polecane przez jednego dziwaka, no ale on na tym bootstrapa na 99,9 nie
mielił!

Masz najwyżej 0.01% szansy, że się uda aż cały system z KDE na tym postawić ;)

Code:
CFLAGS="-O4 -march=athlon-tbird -mcpu=athlon-tbird -pipe -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -fno-rerun-loop-opt -ftracer -fforce-addr -fmove-all-movables -ffast-math -s -mmmx -m3dnow -fstrength-reduce -DNDEBUG -DG_DISABLE_ASSERT

USE="mmx 3dnow kde qt -gnome -gtk -java -cups -docs"


Ryzykowną (teoretycznie), ale b. dużo dającą w wielu przypadkach flagą jest -ffast-math.

O4 mam, bo nadal nie wiem czy to fakt, czy mit. Sporo testów uwzględnia ten stopień optymalizacji, a i ebuild do mplayera ustawia domyślnie O4. Tak, czy inaczej, to nic nie tracę - najwyżej zredukuje mi do O3.
--------------------------

OBenY wrote:

Teraz male OT:
Moze mi ktos powiedziec, czy oplaca sie dawac do flag -fno-rerun-loop-opt i co ta flaga robi ?


Teraz udało mi się jedynie tyle wykopać. Więcej dowiesz się pewnie od fallow-a.

-fno-rerun-loop-opt -
1.
Quote:
*Optimization Options*
*Note Options that Control Optimization: Optimize Options.
-ffloat-store -fforce-mem -fforce-addr -fno-inline
-ffast-math -fstrength-reduce -frerun-cse-after-loop
-fexpensive-optimizations -fdelayed-branch
-fschedule-insns -fschedule-insn2 -fcaller-saves
-funroll-loops -funroll-all-loops
-fno-move-all-movables -fno-reduce-all-givs
-fno-rerun-loop-opt


2. http://www-f1.ijs.si/~krivec/bench/bench_bm_mm_all.txt

3.
Quote:
-fno-rerun-loop-opt
In general, the optimizations enabled with these options will lead to faster code being generated by GNU Fortran; hence they are enabled by default when issuing the g77 command.


4. http://www.math.utah.edu/pub/benchmarks/local/zhu/SUMMARY.2.html
--------------------------
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/


Last edited by C1REX on Sun Mar 28, 2004 11:48 pm; edited 2 times in total
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Sun Mar 28, 2004 11:43 pm    Post subject: Reply with quote

Acha... dla poparcia tezy, że nie istnieją flagi idealne. Podaje ten link.
http://night.pl/~viper/gentoo/

kolkowski_damian do autora wrote:
Znalazłem tam Twoje dziwne flagi, powiedz ale bez kłamst czy Ci się na nich
bootstrap kompiluje w czymś po wydaniu 2004.0..?

_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Back to top
View user's profile Send private message
fallow
Bodhisattva
Bodhisattva


Joined: 08 Jan 2004
Posts: 2208
Location: Poland

PostPosted: Mon Mar 29, 2004 12:54 pm    Post subject: Reply with quote

hello :) ja dodam tylko tyle , ze standardowo optymizacja petli przy 0>=2 jest przeprowadzana dwukrotnie. a fno-rerun-loop-opt wylacza drugi przebieg , pozostawiajac pierwszy . w sumie logiczne jest optymizowac wiecej niz jeden raz , ale z wielu testow wynikia , ze przy srednio zlozonych petlach nie oplaca sie ich powtornie optymiazowac bo daje to gorsze wyniki ,
np :
Code:

mnozenie macierzy
-------------------------------------------------------------------------------
Program  f77 options                                               CPU time
-------------------------------------------------------------------------------
                                                                       97
         -O3                                                            47
         -O3 -funroll-loops                                        47
         -O3 -funroll-all-loops                                       47
         -O3                -fstrength-reduce                             47
         -O3 -funroll-loops -fstrength-reduce                         47
    -O3 -funroll-loops -fstrength-reduce -fno-rerun-loop-opt   29
    -O3 -funroll-loops                   -fno-rerun-loop-opt          29
    -O3 -funroll-all-loops               -fno-rerun-loop-opt          29
    -O3 -funroll-loops -fstrength-reduce -fno-rerun-loop-opt
         -fexpensive-optimizations                             29

    -O3 -funroll-loops -fstrength-reduce -fno-rerun-loop-opt
         -fforce-mem                                                29
    -O3 -funroll-loops -fstrength-reduce -fno-rerun-loop-opt
         -fforce-addr                                                 29
    -O3 -funroll-loops                   -fno-rerun-loop-opt
         -fforce-mem -fforce-addr                                     29



btw.nie sadze aby C1Rex klamal :)
greetzz
Back to top
View user's profile Send private message
kolkowski_damian
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 88
Location: Nysa, Poland

PostPosted: Tue Mar 30, 2004 8:28 pm    Post subject: Reply with quote

kolkowski_damian wrote:
Właśnie mi się bootstrap skompilował na tych flagach:

Code:

CXXFLAGS="-Os -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -mmmx -m3dnow -s -DNDEBUG -DG_DISABLE_ASSERT"

CFLAGS="-Os -march=athlon-xp -mcpu=athlon-xp -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -s -DNDEBUG -DG_DISABLE_ASSERT"


Ufffff.., w końcu znalazłem przyczynę problemu. Wina leżała po stronie stage1-x86 z experimental.

Niepotrzebnie go użyłem, na tym z 2004.0 też x86 stage1 - skompilowało się bez zacieńć.

Może tym razem gentoo bedzie szybsze od slaka :-)


No i stało się większośc programów (według mojego odczucia) działa o jakieś 5% szybciej - tak na oko ;-D

Wracając do flag których użyłem do kompilacji całego systemu od bootstrapa, tylko w 2 miejscach zawiodły, mianowicie:
- libwww
- mozilla-1.{6|7b}

Także wtedy je zmieniłoem i się skompilowało.

Ogólnie polecam Gentoo - fajna rzecz.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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