Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2026 22:15:41 -0700
From:      "Jin Guojun[VFF]" <jguojun@gmail.com>
To:        questions@freebsd.org
Subject:   Re: cpu vs CPUTYPE
Message-ID:  <bea195b4-7851-4af6-96f3-989fe7fadf78@gmail.com>
In-Reply-To: <aiRyHHDFJfVW_BdS@www.stare.cz>

index | next in thread | previous in thread | raw e-mail

On 6/6/26 12:16, Jan Stary wrote:
> Dear all,
>
> I just installed 15.0-RELEASE on this HP EliteBook 820 (dmesg below).
> It seems to be running fine; as a test of stability, I would like
> to recompile GENERIC as is. Without any make.conf or src.conf,
> 'time make -j4 buildkernel' works and the installed kernel boots.
>
> Now, as a first step, I would like to recompile again, taking advantage
> of the optimizations when a specific cpu is set. It seems there are
> two places where I can specify that:
>
> the KERNCONF (= GENERIC) says 'cpu HAMMER'
> and make.conf has the CPUTYPE variable.
>
> What is the relation of the two?
>
> My actual cpu is an Intel(R) Core(TM) i7-4600U;
> that's not HAMMER, about which NOTES says
>
> 	cpu HAMMER # aka K8, aka Opteron & Athlon64
>
> and the closest CPUTYPE out of
>
> #       (Intel CPUs)	alderlake, sapphirerapids, tigerlake, cooperlake,
> #			cascadelake, tremont, goldmont-plus, icelake-server,
> #			icelake-client, cannonlake, knm, skylake-avx512, knl,
> #			goldmont, skylake, broadwell, haswell, ivybridge,
> #			sandybridge, westmere, nehalem, silvermont, bonnell,
> #			core2, core, nocona, pentium4m, pentium4, prescott,
> #			pentium3m, pentium3, pentium-m, pentium2, pentiumpro,
> #			pentium-mmx, pentium, i486
>
> listed in the example make.conf seems to be 'core' (right?)

The Intel Core i7-4600U (4th Gen) official architectural code name is 
Haswell, which should be the CPUTYPE.

Core Ultra (Series 1 & 2): Meteor Lake and Arrow Lake

14th/13th Gen: Raptor Lake
12th Gen: Alder Lake
11th Gen: Rocket Lake
10th Gen: Comet Lake / Ice Lake
9th/8th Gen: Coffee Lake
7th Gen: Kaby Lake
6th Gen: Skylake
Older (1st-5th Gen): Broadwell, Haswell, Ivy Bridge, Sandy Bridge, 
Westmere, and Nehalem.

-Jin




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bea195b4-7851-4af6-96f3-989fe7fadf78>