You are not logged in.

#1 2007-08-26 06:33:35

sH
Member
From: Braunschweig, Germany
Registered: 2007-05-02
Posts: 145

What are the best CFLAGS for Athlon XP 2000+ ?

Hello everyone.

I want to make some packages faster wink
What are the best settings for makepkg.conf for the Athlon XP 2000+ ?

So far I just changed the "march" line to athlon-xp, though I don't know if this exists at all wink
Would appreciate any help! Thanks.

#
CARCH="i686"
CHOST="i686-pc-linux-gnu"

#-- Exclusive: will only run on i686
# -mtune builds exclusively for an architecture
# -mcpu optimizes for an architecture, but builds for the whole processor family
CFLAGS="-march=athlon-xp -mtune=generic -O2 -pipe"
CXXFLAGS="-march=athlon-xp -mtune=generic -O2 -pipe"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

PS: Are there any groovy things I can tell the configure script of xvidcore to tune it for Athlon XP?

Last edited by sH (2007-08-26 06:40:26)

Offline

#2 2007-08-26 07:00:19

qlus
Member
From: Tychy, Poland
Registered: 2006-06-15
Posts: 74

Re: What are the best CFLAGS for Athlon XP 2000+ ?

Offline

#3 2007-08-26 07:20:00

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: What are the best CFLAGS for Athlon XP 2000+ ?

sH wrote:

I want to make some packages faster wink

Then start hacking and improve their code smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#4 2007-08-26 11:46:46

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: What are the best CFLAGS for Athlon XP 2000+ ?

I think -mtune=native would enable all CPU wise optimisations available for your CPU and should therefor be better than using -mtune=generic, there is a thread somewhere on the forums about the -mtune=native switch.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#5 2007-08-26 15:07:12

sH
Member
From: Braunschweig, Germany
Registered: 2007-05-02
Posts: 145

Re: What are the best CFLAGS for Athlon XP 2000+ ?

Thanks alot. 3fps more with xvid wink Thanks for the link to the gentoo site. Very useful.

Offline

#6 2007-08-26 21:16:53

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: What are the best CFLAGS for Athlon XP 2000+ ?

CFLAGS="-09 -march=s6000 -pipe=65536 -funroll-every-loop -mrice -mabi=rice -omg-optimized  --disable-all-instructions -DREENABLE_FAST_EXECUTION -feverything-at-once -Wl,--wait-all"
CXXFLAGS="${CFLAGS} -muse-gcc"
LDFLAGS="-04 -static -Rsymbols"





(it's a joke)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#7 2007-08-26 21:24:39

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: What are the best CFLAGS for Athlon XP 2000+ ?

mrbug wrote:

CFLAGS="-09 -march=s6000 -pipe=65536 -funroll-every-loop -mrice -mabi=rice -omg-optimized  --disable-all-instructions -DREENABLE_FAST_EXECUTION -feverything-at-once -Wl,--wait-all"
CXXFLAGS="${CFLAGS} -muse-gcc"
LDFLAGS="-04 -static -Rsymbols"





(it's a joke)

Ut oh......





(kidding tongue)

Offline

#8 2007-08-26 21:32:54

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: What are the best CFLAGS for Athlon XP 2000+ ?

Maybe it's not that stupid to try optimizing for an app as cpu intensive as a video encoder.
There might be better ways though : changing the option of the encoder itself usually have a much bigger effect.
Also trying other encoders to see if they are more performant.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#9 2007-08-27 02:33:42

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: What are the best CFLAGS for Athlon XP 2000+ ?

Seriously, though...  I'm running this:
CFLAGS="-O2 -march=pentium4 -msse2 -mfpmath=ssei -pipe -mtune=native"

It seems to be pretty sane with enough optimizations to speed up video encoding through the use of processor blahblah




I have noticed that mplayer loads a little quicker than with the defaults (using time). The biggest suggestion that anyone can make would be to stop ALL unnecessary processes. You don't need to run GNOME and Pidgin and Firefox and Transmission and ........... to encode video, so it'd be best to not do that.


I usually start en/transcodes before I goto bed. That way, it doesn't matter how long it takes.


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

Board footer

Powered by FluxBB