Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Right flags for DUAL-XEON?
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
qeldroma
Guru
Guru


Joined: 17 Oct 2002
Posts: 370

PostPosted: Wed Jun 22, 2005 10:14 am    Post subject: Right flags for DUAL-XEON? Reply with quote

Hi there,

i need to install a gentoo from stage1 on an dual-Xeon. Which cpu/compile flags do i have to set for ideal performance and "hardened"?

Greets, Qeldroma
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 Jun 22, 2005 10:29 am    Post subject: Reply with quote

Does your Xeon support EM64T? Hyperthreading? Is it dual-core?

Post the output of "cat /proc/cpuinfo" as this will determine what features your processor has and will help in determining what CFLAGs to use.
Back to top
View user's profile Send private message
mikejr
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2004
Posts: 107

PostPosted: Wed Jun 22, 2005 7:03 pm    Post subject: Reply with quote

Hi qeldroma,

my cat /proc/cpuinfo looks as follows:

Code:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 1
cpu MHz         : 2994.604
cache size      : 1024 KB
physical id     : 0
siblings        : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
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 nx lm pni monitor ds_cpl cid cx16 xtpr
bogomips        : 5914.62

All of that times four due to HT. My flags are
Code:

CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"


Pretty much standard, as this is a server. I had small compilation errors on some packages when using -O3, and I usually don't use more than O2 anyway. These may not be the best - but they work well for me.

As for "hardened" - it depends on what your hardening. I use the gentoo hardened-sources and tweak it a bit - then set up a reasonable security policy and watch the logs.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Wed Jun 22, 2005 7:13 pm    Post subject: Reply with quote

I guess that is for a non-EMT64 chip? I run also use MAKEOPTS="-j4" on mine.
Back to top
View user's profile Send private message
mikejr
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2004
Posts: 107

PostPosted: Wed Jun 22, 2005 7:18 pm    Post subject: Reply with quote

Right - not sure if it uses the EM64T extensions or not... I don't think so. I use distcc so I left the MAKEOPTS statement out... When bootstrapping I set PORTAGE_NICENESS to a fairly agressive number - after wich I push it to 15 since it occasionally compiles during the day.

Just watch your use flags or you'll be recompiling - and that's not to good for "ideal performance"...


Last edited by mikejr on Wed Jun 22, 2005 7:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Wed Jun 22, 2005 7:38 pm    Post subject: Reply with quote

DMESG shows this on mine :- CPUx: Intel P4/Xeon Extended MCE MSRs (24) available. I thought that probably would be the EMT64.
Back to top
View user's profile Send private message
mikejr
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2004
Posts: 107

PostPosted: Wed Jun 22, 2005 7:55 pm    Post subject: Reply with quote

Mine show the same: CPU0: Intel P4/Xeon Extended MCE MSRs (24) available
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Wed Jun 22, 2005 8:16 pm    Post subject: Reply with quote

Please open a new topic with the full cpuinfo output, you little highjackers :P

For the correct march setting, reffer to the GCC manual: http://gcc.gnu.org/onlinedocs/
Back to top
View user's profile Send private message
qeldroma
Guru
Guru


Joined: 17 Oct 2002
Posts: 370

PostPosted: Mon Jun 27, 2005 8:58 am    Post subject: Reply with quote

...i definetly got no "MCET"-type CPU.

It's a little bit older, 2.66MHz
Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.66GHz
stepping        : 7
cpu MHz         : 2666.800
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
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 cid
bogomips        : 5321.52

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.66GHz
stepping        : 7
cpu MHz         : 2666.800
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
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 cid
bogomips        : 5321.52


And OF COURSE(!!), i read the gcc-site. But there is no hint for special settings concerning Xeon or Multi-CPU...

That's why i asked ;)

Greets, Qeldroma
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Mon Jun 27, 2005 12:14 pm    Post subject: Reply with quote

Since we got told off for posting :P

Have a look here https://forums.gentoo.org/viewtopic.php?t=225828

and here https://forums.gentoo.org/viewtopic-t-221361.html

Good luck.
Back to top
View user's profile Send private message
mikejr
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2004
Posts: 107

PostPosted: Mon Jun 27, 2005 5:31 pm    Post subject: Reply with quote

qeldroma, I don't think yours has the 64 bit extensions...

What are you using the box for? Server: stick with something mainstream and safe. Workstation: may try some of the other flags (beware of ricing :)) Just playing around? Try anything and let us know :P

The flags I've used have worked perfectly.
Back to top
View user's profile Send private message
markkuk
Guru
Guru


Joined: 29 Nov 2002
Posts: 446

PostPosted: Mon Jun 27, 2005 8:40 pm    Post subject: Reply with quote

mikejr wrote:
Right - not sure if it uses the EM64T extensions or not.

The "lm" flag in cpuinfo means that your processor has EM64T/x86-64 support.
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