View previous topic :: View next topic |
Author |
Message |
qeldroma Guru
Joined: 17 Oct 2002 Posts: 370
|
Posted: Wed Jun 22, 2005 10:14 am Post subject: Right flags for DUAL-XEON? |
|
|
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 |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Wed Jun 22, 2005 10:29 am Post subject: |
|
|
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 |
|
|
mikejr Tux's lil' helper
Joined: 07 Nov 2004 Posts: 107
|
Posted: Wed Jun 22, 2005 7:03 pm Post subject: |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Wed Jun 22, 2005 7:13 pm Post subject: |
|
|
I guess that is for a non-EMT64 chip? I run also use MAKEOPTS="-j4" on mine. |
|
Back to top |
|
|
mikejr Tux's lil' helper
Joined: 07 Nov 2004 Posts: 107
|
Posted: Wed Jun 22, 2005 7:18 pm Post subject: |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Wed Jun 22, 2005 7:38 pm Post subject: |
|
|
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 |
|
|
mikejr Tux's lil' helper
Joined: 07 Nov 2004 Posts: 107
|
Posted: Wed Jun 22, 2005 7:55 pm Post subject: |
|
|
Mine show the same: CPU0: Intel P4/Xeon Extended MCE MSRs (24) available |
|
Back to top |
|
|
racoontje Veteran
Joined: 19 Jul 2004 Posts: 1290
|
Posted: Wed Jun 22, 2005 8:16 pm Post subject: |
|
|
Please open a new topic with the full cpuinfo output, you little highjackers
For the correct march setting, reffer to the GCC manual: http://gcc.gnu.org/onlinedocs/ |
|
Back to top |
|
|
qeldroma Guru
Joined: 17 Oct 2002 Posts: 370
|
Posted: Mon Jun 27, 2005 8:58 am Post subject: |
|
|
...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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
|
Back to top |
|
|
mikejr Tux's lil' helper
Joined: 07 Nov 2004 Posts: 107
|
Posted: Mon Jun 27, 2005 5:31 pm Post subject: |
|
|
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
The flags I've used have worked perfectly. |
|
Back to top |
|
|
markkuk Guru
Joined: 29 Nov 2002 Posts: 446
|
Posted: Mon Jun 27, 2005 8:40 pm Post subject: |
|
|
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 |
|
|
|