Gentoo Archives: gentoo-user

From: Corbin Bird <corbinbird@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CPU upgrade and LVM questions.
Date: Thu, 06 Dec 2018 18:38:24
Message-Id: 6651f356-8831-1d49-6d1e-adbe9d337b74@charter.net
In Reply to: [gentoo-user] CPU upgrade and LVM questions. by Dale
1 My two cents worth :
2
3 Update gcc before changing any hardware.
4
5 With gcc somewhat current, try this on the replacement CPU.
6 This gives a listing of all CPU supported compiler flags.
7 Including -mtune / -march :)
8
9 gcc -c -Q -march=native --help=target
10
11 sample of output :
12
13 -msse4 [enabled]
14 -msse4.1 [enabled]
15 -msse4.2 [enabled]
16 -msse4a [enabled]
17 -msse5
18 -msseregparm [disabled]
19 -mssse3 [enabled]
20 -mstack-arg-probe [disabled]
21 -mstack-protector-guard= tls
22 -mstackrealign [disabled]
23 -mstringop-strategy= [default]
24 -mstv [enabled]
25 -mtbm [enabled]
26 -mtls-dialect= gnu
27 -mtls-direct-seg-refs [enabled]
28 -mtune-ctrl=
29 -mtune= bdver2
30 -muclibc [disabled]
31 -mveclibabi= [default]
32 -mvect8-ret-in-mem [disabled]
33 -mvzeroupper [enabled]
34 -mx32 [disabled]
35 -mxop [enabled]
36 -mxsave [enabled]
37 -mxsavec [disabled]
38 -mxsaveopt [disabled]
39 -mxsaves [disabled]
40
41
42 This will give you the L1 / L2 cache/line/size parameters :
43
44 gcc -### -march=native /usr/include/stdlib.h
45
46 sample of output :
47
48 gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)
49 COLLECT_GCC_OPTIONS='-march=native'
50 /usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1 -quiet
51 /usr/include/stdlib.h "-march=bdver2" -mmmx -mno-3dnow -msse -msse2
52 -msse3 -mssse3 -msse4a -mcx16 -msahf -mno-movbe -maes -mno-sha -mpclmul
53 -mpopcnt -mabm -mlwp -mfma -mfma4 -mxop -mbmi -mno-sgx -mno-bmi2 -mtbm
54 -mavx -mno-avx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mno-rdrnd
55 -mf16c -mno-fsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mxsave
56 -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf
57 -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq
58 -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi
59 -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero
60 -mno-pku -mno-rdpid --param "l1-cache-size=16" --param
61 "l1-cache-line-size=64" --param "l2-cache-size=2048" "-mtune=bdver2"
62 -quiet -dumpbase stdlib.h -auxbase stdlib -o /tmp/ccQiaXih.s
63 "--output-pch=/usr/include/stdlib.h.gch"
64
65
66 Reference Link : https://wiki.gentoo.org/wiki/GCC_optimization
67
68 On 12/6/18 3:27 AM, Dale wrote:
69 > Howdy,
70 >
71 > I mentioned in other threads that I'm doing some upgrades to my system. 
72 > My first question is about a CPU upgrade.  I currently have this for my
73 > CPU, from cpuinfo:
74 >
75 > AMD Phenom(tm) II X4 955 Processor
76 >
77 > Those were put there ages ago, likely when I built and installed Gentoo
78 > on this rig.  Do I need to change those to something that is compatible
79 > with both CPUs and then change to the new CPU after it is installed?  Or
80 > will the new CPU be close enough that it won't matter?  Right now, I
81 > don't know for sure what the new CPU supports or doesn't. 
82 >

Replies

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