Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Best CFLAGS for Xeon W3670
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
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1174

PostPosted: Thu Oct 16, 2014 5:23 pm    Post subject: [Solved] Best CFLAGS for Xeon W3670 Reply with quote

Hi,

I am installing gentoo on machines with a Xeon W3670. I have looked all around, but I cannot seem to find any advice on cflags for this particular model (or any "W" series Xeon), though there is plenty on the "E" Series.

Can someone point me to a resource that references this, or otherwise indicate what is ideal here?

Thank you!

G
_________________
To look without without looking within is like looking without without looking at all.


Last edited by grooveman on Tue Oct 28, 2014 7:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2468
Location: /home/zach

PostPosted: Fri Oct 17, 2014 12:04 am    Post subject: Reply with quote

Can you please post the output of:

Code:

cat /proc/cpuinfo


on the machine? That should give a good start on the best flags to set.

Cheers,
Nathan Zachary
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1174

PostPosted: Fri Oct 17, 2014 1:28 am    Post subject: Reply with quote

One of these:
Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           W3670  @ 3.20GHz
stepping        : 2
microcode       : 0x10
cpu MHz         : 3200.118
cache size      : 12288 KB
physical id     : 0
siblings        : 6
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov                  pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdt                 scp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc ap                 erfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdc                 m pcid dca sse4_1 sse4_2 popcnt aes lahf_lm ida arat epb dtherm tpr_shadow vnmi                  flexpriority ept vpid
bogomips        : 6400.23
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


It is a hexacore.

Thanks.

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7972
Location: ~Brussels - Belgique

PostPosted: Fri Oct 17, 2014 7:54 am    Post subject: Reply with quote

I always do "-march=native -mtune=native" for all my machines.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2468
Location: /home/zach

PostPosted: Fri Oct 17, 2014 4:28 pm    Post subject: Reply with quote

Since this is an older Xeon processor (2010), I would go with XavierMiller's recommendation of just setting it to native. For additional flags, you can do:

Code:

-O2 -pipe


Those are safe, and if you don't really care about debugging all that often, -fomit-frame-pointer.

Hope that helps.

Cheers,
Nathan Zachary
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1174

PostPosted: Tue Oct 28, 2014 7:52 pm    Post subject: Reply with quote

Thank you all. I went with march=native mtune=native -o2 -pipe. Been prettyhappy so far.:)
_________________
To look without without looking within is like looking without without looking at all.
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