Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Quad Intel(R) Core(TM) i5-3330 optimieren
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3463
Location: Berlin

PostPosted: Sun Nov 18, 2012 11:18 am    Post subject: Quad Intel(R) Core(TM) i5-3330 optimieren Reply with quote

Hallo,
ich bin von einem Dualcore auf einen Quadcore umgestiegen.
Was kann man da optimieren. Ich habe in der make.conf
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
Makeopts="-j5 -s"
-j5 oder -j8 ? Da gibt es wiedersprüchliche Aussagen.
Bleibt -s ?
Code:
USE="64bit rtc sse2 sse3 ssse3 "
Ist das optimal ?

Ist sonst noch etwas möglich?
gcc-4.6.3

http://www.gentooforum.de/artikel/20937/quad-intel-r-core-tm-i5-3330-optimieren.html#post147256

CFLAGS="-march=core2 -mcx16 -msahf -msse4.1 -mtune=core2 -O2 -pipe" ?
CFLAGS="-march=native" ?
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Sun Nov 18, 2012 1:42 pm    Post subject: Reply with quote

wenn du nicht crosskompilierst kannst du auf jeden fall march=native nehmen.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3463
Location: Berlin

PostPosted: Sun Nov 18, 2012 4:47 pm    Post subject: Reply with quote

Und wenn ich crosskompiliere?
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Sun Nov 18, 2012 4:59 pm    Post subject: Reply with quote

dann kannst du, soweit ich mich da auskenne, kein march=native verwenden, sondern musst die jeweilige march= für den jeweiligen Prozessor. Ist aber schon ne Weile her, dass ich mich damit beschäftigt habe, wie das genau geht...
Back to top
View user's profile Send private message
Max Steel
Advocate
Advocate


Joined: 12 Feb 2007
Posts: 2229
Location: My own world! I and Gentoo!

PostPosted: Sun Nov 18, 2012 5:45 pm    Post subject: Reply with quote

Christian99 wrote:
dann kannst du, soweit ich mich da auskenne, kein march=native verwenden, sondern musst die jeweilige march= für den jeweiligen Prozessor. Ist aber schon ne Weile her, dass ich mich damit beschäftigt habe, wie das genau geht...


Ich glaube ja du meinst das richtige sagst es aber etwas widersprüchlich:
Wenn du distcc oder icecream verwendest, wird -march=native nicht funktionieren (die andern Hosts bauen bei -march=native entsprechend ihres eigenen Prozessors)

Fürs Crosscompilen auf der eigenen Maschine (ohne distcc) kann dein Rechner ruhig mit -march=native gebaut sein, außer du erzeugst Binaries für ein anderes TARGET dann muss -march natürlich entsprechend des TARGETs gesetzt werden. (aus gleichem Grunde wie mit distcc)
_________________
mfg
Steel
___________________

Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2)
Back to top
View user's profile Send private message
Molniya
n00b
n00b


Joined: 01 Jan 2004
Posts: 6
Location: The Netherlands

PostPosted: Mon Nov 19, 2012 4:01 pm    Post subject: Reply with quote

Ich benütze USE="mmx mmxext sse sse2 sse3 ssse3 sse4_1 -3dnow"
Back to top
View user's profile Send private message
Oerpi
n00b
n00b


Joined: 20 Jun 2008
Posts: 36
Location: Germany

PostPosted: Mon Nov 19, 2012 4:55 pm    Post subject: Reply with quote

Vlt hilft dir das weiter aus dem englischen Teil hier:

https://forums.gentoo.org/viewtopic-p-6473349.html#6473349
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3333
Location: de

PostPosted: Mon Nov 19, 2012 11:02 pm    Post subject: Reply with quote

Mit
Code:
gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"

bekommst du raus, welche CFLAGS der gcc mit native verwendet.

Das kannst du dann noch zusätzlich mit den Flags von
Code:
cat /proc/cpuinfo

abgleichen.

Da ich cross-compile verwende - also manchmal, hab ich das bei meiner Kiste so gemacht. Ist 'n Xeon X5650. Rausgekommen ist bei mir:
Code:
CFLAGS="-march=corei7 -O2 -pipe -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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