From: George K. on
On Aug 1, 2:19 am, Darklight <glen.her...(a)btopenworld.com> wrote:
> George K. wrote:
> > Hi guys,
>
> > I got me a new i7 CPU-based laptop.  I got me the latest Kernel
> from
> >www.kernelhq.comand I am trying to configure the kernel.
> > Unfortunately, I cannot see an
>
> obvious choice for i7 CPUs in the> kernel config menus apart from MCORE2.
> > The option I see as
>
> of kernel 2.6.34 are:> --Opteron... (i.e. AMD CPUs)
> > --Intel P4/ older ...
> > --Core 2/newer
> Xeon
> > --Intel Atom
> > --Generic-x86-64
>
> > Is Core2/Xeon the correct option?
>
> > TIA,
>
> George
>
> how many cores does the os see at the moment

I got me an i7 with 2 cores running at 2.66 GHz. The interesting part
is that gkrellm reports 4 CPUs :). I was doing some reading back
while researching what kind of laptop to get me I distinctly remember
reading that the i7s have two separate pipelines per core, hence why
each core is being reported in linux as a separate CPU.

FYI, I re-compiled the kernel with the fore-mentioned CPU selection
and so far so good. In fact the configuration went very smoothly, I
got it right the first time around--I usually get a couple of panics
on my new kernels :).

George
From: George K. on
On Aug 1, 9:46 am, Loki Harfagr <l...(a)thedarkdesign.free.fr.INVALID>
wrote:
> Sat, 31 Jul 2010 15:43:46 -0700, George K. did cat :
>
> > Hi guys,
>
> > I got me a new i7 CPU-based laptop.  I got me the latest Kernel from
> >www.kernelhq.comand I am trying to configure the kernel. Unfortunately,
> > I cannot see an obvious choice for i7 CPUs in the kernel config menus
> > apart from MCORE2. The option I see as of kernel 2.6.34 are:
> > --Opteron... (i.e. AMD CPUs)
> > --Intel P4/ older ...
> > --Core 2/newer Xeon
> > --Intel Atom
> > --Generic-x86-64
>
> > Is Core2/Xeon the correct option?
>
> that's the one I chose on my i7 setups, I'll admit I didn't really
> think about using any of the other choices since in the "help" panel
> there was enough food for my thoughts, now maybe I'm wrong ;-)
> ---------
> $ grep -C3 'cpu family' /proc/cpuinfo |tail -n6
> processor       : 7
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 26
> model name      : Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
> stepping        : 4
> ---------
>
> from the 'menuconfig' "help" panel:
> ---------
> CONFIG_MCORE2:                                                                                                          x  
>   x                                                                                                                         x  
>   x                                                                                                                         x  
>   x Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and                                                      x  
>   x 53xx) CPUs. You can distinguish newer from older Xeons by the CPU                                                       x  
>   x family in /proc/cpuinfo. Newer ones have 6 and older ones 15                                                            x  
>   x (not a typo)                                                                                                            x  
>   x                                                                                                                         x  
>   x Symbol: MCORE2 [=y]                                                                                                     x  
>   x Prompt: Core 2/newer Xeon                                                                                               x  
>   x   Defined at arch/x86/Kconfig.cpu:256                                                                                   x  
>   x   Depends on: <choice>                                                                                                  x  
>   x   Location:                                                                                                             x  
>   x     -> Processor type and features                                                                                      x  
>   x       -> Processor family (<choice> [=y])
> ---------

Here's what I get.

# grep -C3 'cpu family' /proc/cpuinfo |tail -n6
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz
stepping : 2

George
From: Eef Hartman on
Loki Harfagr <l0k1(a)thedarkdesign.free.fr.invalid> wrote:
> x Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and x
> x 53xx) CPUs. You can distinguish newer from older Xeons by the CPU x
> x family in /proc/cpuinfo. Newer ones have 6 and older ones 15 x
> x (not a typo) x

That is actually not true: family "6" is the i686 line, so also includes
Pentium Pro, II and III cpu's.
15 was the original Pentium 4 line of processors (7 already being taken
by the Itanium cpu's).
With the Core 2 (Duo) etc they moved back to the "6" family again, so
6 both is the older (up to Pentium III) and newest i686 comptible cpu's.
--
******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman(a)tudelft.nl - phone: +31-15-27 82525 **
******************************************************************
From: Loki Harfagr on
Tue, 03 Aug 2010 10:18:54 +0200, Eef Hartman did cat :

> Loki Harfagr <l0k1(a)thedarkdesign.free.fr.invalid> wrote:

please note that I didn't actually "wrote" that, I simply quoted it
from the menuconfig help panel :-)

>> x Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and
>> x x 53xx) CPUs. You
>> can distinguish newer from older Xeons by the CPU
>> x x family in /proc/cpuinfo. Newer
>> ones have 6 and older ones 15
>> x x (not a typo)
>>
>> x
>
> That is actually not true:

More precisely, it is not fully true nor wrong, but a bit tangled maybe :D)

> family "6" is the i686 line, so also includes
> Pentium Pro, II and III cpu's.

correct, that is for family 6 of models of the Pentium model name.

> 15 was the original Pentium 4 line of processors (7 already being taken
> by the Itanium cpu's).
> With the Core 2 (Duo) etc they moved back to the "6" family again, so 6
> both is the older (up to Pentium III) and newest i686 comptible cpu's.

And, as it is precised in the 'menuconfig', 6 is the family tag for
new Xeons (of the Xeon/Core2) model_names, but I reckon they could have
thought twice about it before choosing to mix up numbers :-)


(in /usr/src/linux/arch/x86/Kconfig.cpu)
config MPSC
bool "Intel P4 / older Netburst based Xeon"
depends on X86_64
---help---
Optimize for Intel Pentium 4, Pentium D and older Nocona/Dempsey
Xeon CPUs with Intel 64bit which is compatible with x86-64.
Note that the latest Xeons (Xeon 51xx and 53xx) are not based on the
Netburst core and shouldn't use this option. You can distinguish them
using the cpu family field
in /proc/cpuinfo. Family 15 is an older Xeon, Family 6 a newer one.

config MCORE2
bool "Core 2/newer Xeon"
---help---

Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and
53xx) CPUs. You can distinguish newer from older Xeons by the CPU
family in /proc/cpuinfo. Newer ones have 6 and older ones 15
(not a typo)