Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] RYZEN 5: Hyperthreading or no hyperthreading...
Date: Fri, 27 Mar 2020 18:02:26
Message-Id: BSWLCTE5.CC25DG5W.U3JJ45YP@NMRMSFGM.IEIPRU4S.7DD2MZNN
In Reply to: [gentoo-user] RYZEN 5: Hyperthreading or no hyperthreading... by tuxic@posteo.de
1 On 2020.03.27 12:20, tuxic@××××××.de wrote:
2 > Hi,
3 >
4 > still not 100% sure, whether I configured the kernel correctlu:
5 >
6 > Running an AMD RYZEN 5 3600...
7 >
8 > lscpu displays:
9 > Architecture: x86_64
10 > CPU op-mode(s): 32-bit, 64-bit
11 > Byte Order: Little Endian
12 > Address sizes: 43 bits physical, 48 bits virtual
13 > CPU(s): 6
14 > On-line CPU(s) list: 0-5
15 > Thread(s) per core: 1 <<<<<<
16 > Core(s) per socket: 6
17 > Socket(s): 1
18 > Vendor ID: AuthenticAMD
19 > CPU family: 23
20 > Model: 113
21 > Model name: AMD Ryzen 5 3600 6-Core Processor
22 > Stepping: 0
23 > ...
24 >
25 > The accoring part of lshw shows:
26 >
27 > *-cpu
28 > description: CPU
29 > product: AMD Ryzen 5 3600 6-Core Processor
30 > vendor: Advanced Micro Devices [AMD]
31 > physical id: 15
32 > bus info: cpu@0
33 > version: AMD Ryzen 5 3600 6-Core Processor
34 > serial: Unknown
35 > slot: AM4
36 > size: 3649MHz
37 > capacity: 4200MHz
38 > width: 64 bits
39 > clock: 100MHz
40 > capabilities: x86-64 fpu fpu_exception wp vme de pse tsc
41 > msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr
42 > sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp constant_tsc
43 > rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq
44 > monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c
45 > rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a
46 > misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext
47 > perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3
48 > hw_pstate sme ssbd mba sev ibpb stibp vmmcall fsgsbase bmi1 avx2 smep
49 > bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec
50 > xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local
51 > clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock
52 > nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
53 > pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov
54 > succor smca cpufreq
55 > configuration: cores=6 enabledcores=6 threads=12
56 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
58 >
59 >
60 > I set (beside other things) these kernel configurations:
61 >
62 > Processor type and features --->
63 > [*] Symmetric multi-processing support
64 > [*] AMD ACPI2Platform devices support
65 > [*] Supported processor vendors --->
66 > [*] Support AMD processors
67 > [*] SMT (Hyperthreading) scheduler support
68 > [*] Multi-core scheduler support
69 > Preemption Model (Preemptible Kernel (Low-Latency Desktop))
70 > --->
71 > [*] Machine Check / overheating reporting
72 > [*] AMD MCE features
73 > Performance monitoring --->
74 > <*> AMD Processor Power Reporting Mechanism
75 > [*] AMD microcode loading support
76 > Power management and ACPI options --->
77 > CPU Frequency scaling --->
78 > <*> AMD Opteron/Athlon64 PowerNow!
79 > <*> AMD frequency sensitivity feedback powersave bias
80 > Device Drivers --->
81 > [*] IOMMU Hardware Support --->
82 > [*] AMD IOMMU support
83 > <*> AMD IOMMU Version 2 driver
84 >
85 > htop shows six cores.
86 >
87 > Does my CPU hyperthread?
88 >
89 > Cheers
90 > Meino
91 I have a Ryzen 5 2600 and an MSI B350 Tomahawk, and I show 12 threads
92 in htop. I'll look in my own BIOS next reboot, but dmidecode shows me:
93
94 Processor Information
95 Socket Designation: AM4
96 Type: Central Processor
97 Family: Zen
98 Manufacturer: Advanced Micro Devices, Inc.
99 ID: 82 0F 80 00 FF FB 8B 17
100 Signature: Family 23, Model 8, Stepping 2
101 Flags:
102 FPU (Floating-point unit on-chip)
103 VME (Virtual mode extension)
104 DE (Debugging extension)
105 PSE (Page size extension)
106 TSC (Time stamp counter)
107 MSR (Model specific registers)
108 PAE (Physical address extension)
109 MCE (Machine check exception)
110 CX8 (CMPXCHG8 instruction supported)
111 APIC (On-chip APIC hardware supported)
112 SEP (Fast system call)
113 MTRR (Memory type range registers)
114 PGE (Page global enable)
115 MCA (Machine check architecture)
116 CMOV (Conditional move instruction supported)
117 PAT (Page attribute table)
118 PSE-36 (36-bit page size extension)
119 CLFSH (CLFLUSH instruction supported)
120 MMX (MMX technology supported)
121 FXSR (FXSAVE and FXSTOR instructions supported)
122 SSE (Streaming SIMD extensions)
123 SSE2 (Streaming SIMD extensions 2)
124 HTT (Multi-threading)
125 Version: AMD Ryzen 5 2600 Six-Core Processor
126 Voltage: 1.1 V
127 External Clock: 100 MHz
128 Max Speed: 3900 MHz
129 Current Speed: 3400 MHz
130 Status: Populated, Enabled
131 Upgrade: Socket AM4
132 L1 Cache Handle: 0x0011
133 L2 Cache Handle: 0x0012
134 L3 Cache Handle: 0x0013
135 Serial Number: Unknown
136 Asset Tag: Unknown
137 Part Number: Unknown
138 Core Count: 6
139 Core Enabled: 6
140 Thread Count: 12
141 Characteristics:
142 64-bit capable
143 Multi-Core
144 Hardware Thread
145 Execute Protection
146 Enhanced Virtualization
147 Power/Performance Control
148
149 which does suggest there might be a BIOS setting involved.
150
151 Jack