Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: CPU upgrade and LVM questions.
Date: Thu, 06 Dec 2018 21:02:19
Message-Id: puc2k3$m2v$1@blaine.gmane.org
In Reply to: [gentoo-user] CPU upgrade and LVM questions. by Dale
1 On 06/12/2018 11:27, Dale wrote:
2 >
3 > I've bought but not yet installed a FX-8350 CPU.  I have this in my
4 > make.conf file:
5 >
6 > CFLAGS="-march=native -O2 -pipe"
7 > USE_CPU="
8
9 USE_CPU does not do anything, AFAICT. CPU features are specified in
10 CPU_FLAGS_X86. You can get appropriate flags using the
11 app-portage/cpuid2cpuflags tool. For example, here:
12
13 $ cpuid2cpuflags
14 CPU_FLAGS_X86: aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1
15 sse4_2 ssse3
16
17 So in my make.conf, I use:
18
19 CPU_FLAGS_X86="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1
20 sse4_2 ssse3"
21
22
23 > Those were put there ages ago, likely when I built and installed Gentoo
24 > on this rig.  Do I need to change those to something that is compatible
25 > with both CPUs and then change to the new CPU after it is installed?  Or
26 > will the new CPU be close enough that it won't matter?  Right now, I
27 > don't know for sure what the new CPU supports or doesn't.
28
29 Just install the new CPU and run cpuid2cpuflags to see what to put in
30 CPU_FLAGS_X86. You can delete USE_CPU as that doesn't seem to be used
31 for anything.
32
33
34
35 > While at it, going from a 4 core CPU at 3.2GHz to a 8 core CPU at
36 > 4.0/4.2GHz, just how much increase can I expect?  Will it double and
37 > that's about it or will it be more than that?
38
39 You won't get anything close to double the speed. The extra cores will
40 mostly go unused, unless you use applications that make use of them.
41
42 You will still get a speed up due to the newer CPU architecture and the
43 higher frequency.
44
45
46 > Also, since it has two
47 > speeds, will it run at the slower or faster one?  Will it depend on
48 > load?  I've never had a CPU with two clock speeds like this before.
49
50 The two speeds specify the lower and upper speeds, depending on how many
51 CPU cores are currently being under load, and also how much load there
52 is. You don't have to worry about it though. It's all automatic. When
53 you're not running anything that stressed the CPU, clock speeds are
54 actually lower than 4GHz (some CPUs can clock down to 1GHz or so when
55 they're idle and not doing anything.) Once something CPU-heavy runs, it
56 will clock up to 4.2GHz. If you run something that stresses all CPU
57 cores, then it will go to 4.0GHz to avoid overheating.
58
59 But again, all this is automatic.

Replies

Subject Author
Re: [gentoo-user] Re: CPU upgrade and LVM questions. Dale <rdalek1967@×××××.com>