Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which best CFLAGS & MAKEOPTS for 'Intel Core Duo T2700'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ge3kz
n00b
n00b


Joined: 16 Aug 2011
Posts: 4

PostPosted: Tue Aug 16, 2011 9:44 pm    Post subject: which best CFLAGS & MAKEOPTS for 'Intel Core Duo T2700' Reply with quote

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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Aug 16, 2011 10:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Aug 16, 2011 10:34 pm    Post subject: Reply with quote

Welcome to Gentoo!

march=native is a safe and good choice. Enable sse* USE flags for packages that support/need it.

As for threads, it's up to you. I use -j3 on my quadcore just to keep it responsive while compiling.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Aug 17, 2011 12:14 pm    Post subject: Reply with quote

On my box I use -march=native and I use -j5 for a Quad Core Q9550.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Wed Aug 17, 2011 2:17 pm    Post subject: Reply with quote

If you experiment faster builds with -jN and N greater than the number of logical cores then... :
Change your scheduler ! :D
Back to top
View user's profile Send private message
Hans-Linux
n00b
n00b


Joined: 21 Jul 2011
Posts: 14
Location: Brisbane, Australia

PostPosted: Wed Aug 24, 2011 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Wed Aug 24, 2011 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Sep 01, 2011 11:20 pm    Post subject: Reply with quote

-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
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Fri Sep 02, 2011 1:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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