View previous topic :: View next topic |
Author |
Message |
Darakian n00b
Joined: 31 Mar 2006 Posts: 6
|
Posted: Fri Mar 31, 2006 4:16 am Post subject: CFLAGS and Core Duo |
|
|
After looking through what I could find on the forum and the documentation I am at a loss for what CFLAGs I should put in to the make.conf
I am tempted to put in
"-march=pentium-m"
However I am unsure of how much the core changed in the jump from dothan to yonah. Sorry if I am missing anything this is my first time installing gentoo. |
|
Back to top |
|
|
benster n00b
Joined: 30 Nov 2005 Posts: 67 Location: Funkytown
|
Posted: Fri Mar 31, 2006 5:19 am Post subject: |
|
|
Just off the top of my head I seem to remember that for a Core Duo you want to add -march=nocona to your CFLAGS. At least for the desktop version, for Centrino I don't know. |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Fri Mar 31, 2006 8:39 am Post subject: |
|
|
What type of processor is Core Duo?
For desktop or for laptop use? |
|
Back to top |
|
|
benster n00b
Joined: 30 Nov 2005 Posts: 67 Location: Funkytown
|
Posted: Fri Mar 31, 2006 1:58 pm Post subject: |
|
|
It's Intel's new dual core chip.
The Magic of Google reveals a result on Intel's page:
http://www.intel.com/products/processor/coreduo/
IIRC, they're based on Pentium-M which was much more power efficient than the P4s. There are mobile and desktop versions. |
|
Back to top |
|
|
Darakian n00b
Joined: 31 Mar 2006 Posts: 6
|
Posted: Sat Apr 01, 2006 3:47 am Post subject: |
|
|
Bingo core duo = marketing slogan for the dual core mobile chip (32-bit mind you). The cores name is Yonah. |
|
Back to top |
|
|
robbster n00b
Joined: 07 Apr 2006 Posts: 12 Location: Darmstadt, Germany
|
Posted: Fri Apr 07, 2006 5:07 pm Post subject: Re: CFLAGS and Core Duo |
|
|
Darakian wrote: |
I am tempted to put in
"-march=pentium-m"
|
Just my question! Anyone a solution? |
|
Back to top |
|
|
digitalfrost n00b
Joined: 08 Feb 2004 Posts: 8
|
Posted: Sun Apr 09, 2006 2:52 am Post subject: |
|
|
I have succesfully used -march=pentium-m -msse3 on my Thinkpad T60. _________________ MSI K8N Neo2 Platinum 54G / Winchester 3200+ 2.5Ghz / 1GByte GSkill PC4400 275Mhz 2.5-3-3-7
IBM Thinkpad T60 2007-49G / 1.83Ghz Dual Core / 512MB PC667 / 60GB 5400rpm HDD / SXGA+ TFT |
|
Back to top |
|
|
robbster n00b
Joined: 07 Apr 2006 Posts: 12 Location: Darmstadt, Germany
|
Posted: Wed Apr 12, 2006 1:26 pm Post subject: |
|
|
Yes, I did so, too and it seems to be stable. |
|
Back to top |
|
|
kfiaciarka Veteran
Joined: 20 May 2005 Posts: 1498 Location: Dobre Miasto, Poland
|
Posted: Wed Apr 12, 2006 8:45 pm Post subject: |
|
|
Intel Core Duo (Yonah)
Code: | CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -msse3 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}" |
according to http://gentoo-wiki.com/Safe_Cflags |
|
Back to top |
|
|
SMoo Tux's lil' helper
Joined: 08 Jul 2004 Posts: 140 Location: Leander, TX
|
Posted: Sat May 13, 2006 11:49 am Post subject: |
|
|
Sorry about rehashing this, but I thought someone might want to know what I've used successfully.
My make.conf:
CFLAGS="-march=pentium-m -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="X qt gnome nptl -kde cdr dvd alsa wireless"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
AUTOCLEAN="yes" |
|
Back to top |
|
|
tjesis n00b
Joined: 14 Jan 2005 Posts: 5 Location: Netherlands
|
Posted: Sat May 20, 2006 7:36 am Post subject: pentium4m ?? |
|
|
Hi all,
I also have a Intel Centrino Duo notebook. and have used the option "-march=pentium4m" succesfully.
My make.conf looks like this:
CFLAGS="-march=pentium4m -O2 -pipe -msse3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
Right now I'm in doubt which '-march' flag I should use.
Can somebody help me to clear things up?
Thanx! _________________ Asus M2N-E, Athlon64 X2 3800+, 4Gb DDR2 667Mhz
1x SATA2 160Gb, 2x SATA2 80Gb in RAID0, 1x SATA 300Gb |
|
Back to top |
|
|
SMoo Tux's lil' helper
Joined: 08 Jul 2004 Posts: 140 Location: Leander, TX
|
Posted: Sat May 20, 2006 1:23 pm Post subject: |
|
|
You should use -j3 so that Gentoo will make use of both CPUs... |
|
Back to top |
|
|
tjesis n00b
Joined: 14 Jan 2005 Posts: 5 Location: Netherlands
|
Posted: Tue May 23, 2006 4:21 pm Post subject: |
|
|
SMoo wrote: |
You should use -j3 so that Gentoo will make use of both CPUs... |
Thanx!!!!
I changed the /etc/make.conf to reflect MAKEOPTS="-j3" _________________ Asus M2N-E, Athlon64 X2 3800+, 4Gb DDR2 667Mhz
1x SATA2 160Gb, 2x SATA2 80Gb in RAID0, 1x SATA 300Gb |
|
Back to top |
|
|
bssteph l33t
Joined: 26 Feb 2003 Posts: 652 Location: Wisconsin
|
Posted: Sat Jun 03, 2006 4:28 pm Post subject: Re: pentium4m ?? |
|
|
tjesis wrote: | Hi all,
I also have a Intel Centrino Duo notebook. and have used the option "-march=pentium4m" succesfully.
My make.conf looks like this:
CFLAGS="-march=pentium4m -O2 -pipe -msse3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
Right now I'm in doubt which '-march' flag I should use.
Can somebody help me to clear things up?
Thanx! |
I'm not certain, but I'm pretty sure that "pentium4m" means the Pentium 4 M, which was just a standard P4 with SpeedStep (and, if the laptop I used to have is any indication, pretty cruddy SpeedStep at that). It predates the Pentium M line. You probably want to use pentium-m. I'm not sure if there's any difference as far as GCC is concerned though. |
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Sat Jun 03, 2006 9:15 pm Post subject: |
|
|
no, Core Duo is -march=prescott. it supports Prescott New Instructions but not EM64T.
pentium-m sets the architecture to Pentium Pro with support for MMX, SSE, and SSE2.
pentium4 sets the architecture to Pentium 4 with support for MMX, SSE, and SSE2.
pentium-4m is identical to pentium4. there is no difference whatsoever.
prescott sets the architecture to Nocona with support for MMX, SSE, SSE2, and SSE3.
nocona sets the architecture to Nocona with support for MMX, SSE, SSE2, SSE3, and EM64T.
Core Solo is -march=prescott. Core Duo is -march=prescott. Pentium D is -march=nocona. Core Solo/Duo 2 will be -march=nocona but also have SSE4 (mni) support. basically if you have pni in /proc/cpuinfo, use prescott. if you have pni and lm in /proc/cpuinfo, use nocona. _________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Sun Jun 04, 2006 4:40 pm Post subject: |
|
|
Code: |
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2300 @ 1.66GHz
stepping : 8
cpu MHz : 1660.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips : 3333.62
|
No sse3 here, are you sure prescott is correct? |
|
Back to top |
|
|
htranou Tux's lil' helper
Joined: 08 May 2006 Posts: 96
|
Posted: Sun Jun 04, 2006 5:27 pm Post subject: |
|
|
pni = sse3
Prescott New instructions I think. Kernel people named it pni before marketing from Intel called it SSE3, and they decided not to change it. |
|
Back to top |
|
|
drsound n00b
Joined: 20 Sep 2004 Posts: 10 Location: Italy
|
Posted: Sat Jul 01, 2006 2:58 pm Post subject: |
|
|
And what about kernel optimizations? I have an Intel Yonah dual core CPU (T2500): what should I choose as Processor type and features
/ Processor family? Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon or Pentium M?
Moreover, is the dual core technically an hyperthreading or not? If so, should I choose SMT (Hyperthreading) scheduler support? |
|
Back to top |
|
|
slashdevslashtty Tux's lil' helper
Joined: 29 Aug 2004 Posts: 119 Location: 97219
|
Posted: Sun Jul 02, 2006 6:35 am Post subject: |
|
|
drsound wrote: | Moreover, is the dual core technically an hyperthreading or not? If so, should I choose SMT (Hyperthreading) scheduler support? |
Not hyperthreading. Just make sure SMP is enabled. |
|
Back to top |
|
|
scahrossar n00b
Joined: 17 Mar 2005 Posts: 2 Location: Norway
|
Posted: Sun Jul 09, 2006 2:16 pm Post subject: Confusing ... |
|
|
From the GCC-manual:
pentium-m: Low power version of Intel Pentium3 CPU with MMX, SSE and SSE2 instruction set support. Used by Centrino notebooks.
prescott: Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.
Allright. The Prescott is a Pentium 4 CPU, the Core Duo is a Pentium-M.
"cat /proc/cpuinfo" reveals that it's related to the models in family 6(check out http://sandpile.org/ia32/cpuid.html to see all models in that family). In some way, it means, that the Core Duo(Yonah) actually is a modified Pentium 3 with SSE3/pni support. The closest GCC match is "-march=prescott", simply because it has support for SSE3/pni instruction set. However the system will then be optimized for a Pentium 4, which is a 7th Generation(80786) processor. It just have to be wrong. It seems a lot more logically to optimize for Pentium M(P3) with SSE3/pni support. What about these CFLAGS ?
Code: |
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
|
|
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Mon Jul 10, 2006 5:10 am Post subject: Re: Confusing ... |
|
|
scahrossar wrote: | "cat /proc/cpuinfo" reveals that it's related to the models in family 6(check out http://sandpile.org/ia32/cpuid.html to see all models in that family). In some way, it means, that the Core Duo(Yonah) actually is a modified Pentium 3 with SSE3/pni support. The closest GCC match is "-march=prescott", simply because it has support for SSE3/pni instruction set. However the system will then be optimized for a Pentium 4, which is a 7th Generation(80786) processor. It just have to be wrong. It seems a lot more logically to optimize for Pentium M(P3) with SSE3/pni support. What about these CFLAGS ?
Code: |
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
|
|
You're right that the Core Duo is based on the Pentium-M microarch, but it's had some major updates done to it. Fex, the SSE front and backend are completely redone. On the P-M, it took twice as long to decode SSE than X87. Core can handle up to three packed and micro-op SSE instructions at once, making using SSE the advantage. However, when you set -march=pentium-m, GCC prefers to generate x87 instructions.
There's other changes that make Core more similar to Netburst than P-M when it comes to cost calculation, prefetch block size, etc., all of which are dependent on -march. Check out gcc/config/i386/i386.c and the IA32 Intel Architecture Optimization Reference Manual. _________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
pactoo Guru
Joined: 18 Jul 2004 Posts: 553
|
Posted: Mon Jul 10, 2006 2:08 pm Post subject: |
|
|
If prescottt is to prefer over pentium-m for cflags, what should I choose then for the kernel config? pentium-4 or still pentium-m? And does it make sense to also activate "check for P4 thermal throttling support" with core duo? |
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Sat Jul 15, 2006 3:40 am Post subject: |
|
|
pactoo wrote: | If prescottt is to prefer over pentium-m for cflags, what should I choose then for the kernel config? pentium-4 or still pentium-m? And does it make sense to also activate "check for P4 thermal throttling support" with core duo? |
I'd choose pentium-4.
Core Solo/Duo supports both types of thermal monitoring, T1 and T2, preferring T2. See http://www.hardwaresecrets.com/article.php?cat=&id=104 for a quick explanation of what that means.
Ref: http://www.intel.com/design/mobile/datashts/309221.htm (Sec 2.2) _________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
ph03n1x l33t
Joined: 06 Feb 2003 Posts: 756
|
Posted: Sun Jul 30, 2006 5:50 pm Post subject: |
|
|
Thx for all the infos guys |
|
Back to top |
|
|
Daemonax Apprentice
Joined: 30 Apr 2004 Posts: 211
|
Posted: Sat Aug 12, 2006 6:44 am Post subject: |
|
|
This is great.
Thanks for all the info, looking at getting a core duo laptop this week, so I'll set cflags to prescott and the internal kernel processor option to Pentium-4 from what I can tell?
Hurray, looking forward to getting back in to Gentoo. _________________ The God idea is growing more impersonal and nebulous in proportion as the human mind is learning to understand natural phenomena and in the degree that science progressively correlates human and social events. -- Emma Goldman |
|
Back to top |
|
|
|