View previous topic :: View next topic |
Author |
Message |
ge3kz n00b
Joined: 16 Aug 2011 Posts: 4
|
Posted: Tue Aug 16, 2011 9:44 pm Post subject: which best CFLAGS & MAKEOPTS for 'Intel Core Duo T2700' |
|
|
Hello,
i want install Gentoo latest version, so what is best CFLAGS for my processor 'Intel Core Duo T2700'.
also what is best value for MAKEOPTS
MAKEOPTS="-j2" or MAKEOPTS="-j3"
more information about hardware:
cpu: Intel Core Duo T2700
ram : 2GB
crad graphical : ATI Radeon 2400 PRO.
sound: Creative Blaster.
Thank you advance. |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Tue Aug 16, 2011 10:26 pm Post subject: |
|
|
I'm too lazy to look up -march names for that CPU...
But, for MAKEOPTS, -j# says how many compilation threads to run at a time, I suggest just doing your number of processor cores there. There may be a slight gain by increasing it to 1+# of cpu cores, but probably not much. Keep in mind compile time memory requirements will increase as the number of threads is increased, so if you regularly use a lot of your 2GB, using a large number of compile threads might hurt performance for your other applications while you compile. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Aug 17, 2011 12:14 pm Post subject: |
|
|
On my box I use -march=native and I use -j5 for a Quad Core Q9550. |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed Aug 17, 2011 2:17 pm Post subject: |
|
|
If you experiment faster builds with -jN and N greater than the number of logical cores then... :
Change your scheduler ! |
|
Back to top |
|
|
Hans-Linux n00b
Joined: 21 Jul 2011 Posts: 14 Location: Brisbane, Australia
|
Posted: Wed Aug 24, 2011 12:28 pm Post subject: |
|
|
I use CFLAGS="-march=native -mtune-native -O3" and MAKEOPTS="-j5" on a 3 GHz quad core AMD Phenom in a VirtualBox with 2GB RAM. |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Wed Aug 24, 2011 12:46 pm Post subject: |
|
|
Hans-Linux wrote: | I use CFLAGS="-march=native -mtune-native -O3" and MAKEOPTS="-j5" on a 3 GHz quad core AMD Phenom in a VirtualBox with 2GB RAM. | -march implies -mtune, and generally -O2 is a safer bet than -O3. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Sep 01, 2011 11:20 pm Post subject: |
|
|
-O2 and -O3 are pretty close in terms of safeness but it's kinda a crapshoot which will produce better performing code. -O3 enables everything -O2 does plus optimizations that increase code size. Sometimes the effect this has on cache memory negates the benefit or even makes it worse. |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Fri Sep 02, 2011 1:24 am Post subject: |
|
|
I believe "Core Duo T2700" is a 32-bit processor, so something like the following should work.
Code: | CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}" |
Refer to the following link for more info.
http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel
You can really go wild with the optimization options, but I'd rather go with a more stable system.
__
sol |
|
Back to top |
|
|
|