Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximize-cpu-freq fails on offlined CPUs #226

Open
Znuff opened this issue Aug 17, 2022 · 0 comments
Open

maximize-cpu-freq fails on offlined CPUs #226

Znuff opened this issue Aug 17, 2022 · 0 comments

Comments

@Znuff
Copy link

Znuff commented Aug 17, 2022

If you encountered some bug/error in one of these utils, please, provide following information:

Python 3.6.9

Name: netutils-linux
Version: 2.7.11
Summary: Bunch of utils to simplify linux network troubleshooting and performance tuning.
Home-page: https://github.com/strizhechenko/netutils-linux
Author: Oleg Strizhechenko
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.6/dist-packages
Requires: ipaddress, colorama, pyyaml, prettytable, argparse, six



Ubuntu 18.04.6 LTS \n \l

Linux ubuntu 5.4.0-124-generic #140~18.04.1-Ubuntu SMP Fri Aug 5 11:43:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Architecture:         x86_64
CPU op-mode(s):       32-bit, 64-bit
Byte Order:           Little Endian
CPU(s):               256
On-line CPU(s) list:  0-254
Off-line CPU(s) list: 255
Thread(s) per core:   1
Core(s) per socket:   64
Socket(s):            2
NUMA node(s):         32
Vendor ID:            AuthenticAMD
CPU family:           23
Model:                49
Model name:           AMD EPYC 7742 64-Core Processor
Stepping:             0
CPU MHz:              1375.650
CPU max MHz:          2250.0000
CPU min MHz:          1500.0000
BogoMIPS:             4499.93
Virtualization:       AMD-V
L1d cache:            32K
L1i cache:            32K
L2 cache:             512K
L3 cache:             16384K
NUMA node0 CPU(s):    0-3,128-131
NUMA node1 CPU(s):    4-7,132-135
NUMA node2 CPU(s):    8-11,136-139
NUMA node3 CPU(s):    12-15,140-143
NUMA node4 CPU(s):    16-19,144-147
NUMA node5 CPU(s):    20-23,148-151
NUMA node6 CPU(s):    24-27,152-155
NUMA node7 CPU(s):    28-31,156-159
NUMA node8 CPU(s):    32-35,160-163
NUMA node9 CPU(s):    36-39,164-167
NUMA node10 CPU(s):   40-43,168-171
NUMA node11 CPU(s):   44-47,172-175
NUMA node12 CPU(s):   48-51,176-179
NUMA node13 CPU(s):   52-55,180-183
NUMA node14 CPU(s):   56-59,184-187
NUMA node15 CPU(s):   60-63,188-191
NUMA node16 CPU(s):   64-67,192-195
NUMA node17 CPU(s):   68-71,196-199
NUMA node18 CPU(s):   72-75,200-203
NUMA node19 CPU(s):   76-79,204-207
NUMA node20 CPU(s):   80-83,208-211
NUMA node21 CPU(s):   84-87,212-215
NUMA node22 CPU(s):   88-91,216-219
NUMA node23 CPU(s):   92-95,220-223
NUMA node24 CPU(s):   96-99,224-227
NUMA node25 CPU(s):   100-103,228-231
NUMA node26 CPU(s):   104-107,232-235
NUMA node27 CPU(s):   108-111,236-239
NUMA node28 CPU(s):   112-115,240-243
NUMA node29 CPU(s):   116-119,244-247
NUMA node30 CPU(s):   120-123,248-251
NUMA node31 CPU(s):   124-127,252-254
Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate sme ssbd mba sev ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smca

# The following is the parsable format, which can be fed to other
# programs. Each different item in every column has an unique ID
# starting from zero.
# CPU,Core,Socket,Node,,L1d,L1i,L2,L3
0,0,0,0,,0,0,0,0
1,1,0,0,,1,1,1,0
2,2,0,0,,2,2,2,0
3,3,0,0,,3,3,3,0
4,4,0,1,,4,4,4,1
5,5,0,1,,5,5,5,1
6,6,0,1,,6,6,6,1
7,7,0,1,,7,7,7,1
8,8,0,2,,8,8,8,2
9,9,0,2,,9,9,9,2
10,10,0,2,,10,10,10,2
11,11,0,2,,11,11,11,2
12,12,0,3,,12,12,12,3
13,13,0,3,,13,13,13,3
14,14,0,3,,14,14,14,3
15,15,0,3,,15,15,15,3
16,16,0,4,,16,16,16,4
17,17,0,4,,17,17,17,4
18,18,0,4,,18,18,18,4
19,19,0,4,,19,19,19,4
20,20,0,5,,20,20,20,5
21,21,0,5,,21,21,21,5
22,22,0,5,,22,22,22,5
23,23,0,5,,23,23,23,5
24,24,0,6,,24,24,24,6
25,25,0,6,,25,25,25,6
26,26,0,6,,26,26,26,6
27,27,0,6,,27,27,27,6
28,28,0,7,,28,28,28,7
29,29,0,7,,29,29,29,7
30,30,0,7,,30,30,30,7
31,31,0,7,,31,31,31,7
32,32,0,8,,32,32,32,8
33,33,0,8,,33,33,33,8
34,34,0,8,,34,34,34,8
35,35,0,8,,35,35,35,8
36,36,0,9,,36,36,36,9
37,37,0,9,,37,37,37,9
38,38,0,9,,38,38,38,9
39,39,0,9,,39,39,39,9
40,40,0,10,,40,40,40,10
41,41,0,10,,41,41,41,10
42,42,0,10,,42,42,42,10
43,43,0,10,,43,43,43,10
44,44,0,11,,44,44,44,11
45,45,0,11,,45,45,45,11
46,46,0,11,,46,46,46,11
47,47,0,11,,47,47,47,11
48,48,0,12,,48,48,48,12
49,49,0,12,,49,49,49,12
50,50,0,12,,50,50,50,12
51,51,0,12,,51,51,51,12
52,52,0,13,,52,52,52,13
53,53,0,13,,53,53,53,13
54,54,0,13,,54,54,54,13
55,55,0,13,,55,55,55,13
56,56,0,14,,56,56,56,14
57,57,0,14,,57,57,57,14
58,58,0,14,,58,58,58,14
59,59,0,14,,59,59,59,14
60,60,0,15,,60,60,60,15
61,61,0,15,,61,61,61,15
62,62,0,15,,62,62,62,15
63,63,0,15,,63,63,63,15
64,64,1,16,,64,64,64,16
65,65,1,16,,65,65,65,16
66,66,1,16,,66,66,66,16
67,67,1,16,,67,67,67,16
68,68,1,17,,68,68,68,17
69,69,1,17,,69,69,69,17
70,70,1,17,,70,70,70,17
71,71,1,17,,71,71,71,17
72,72,1,18,,72,72,72,18
73,73,1,18,,73,73,73,18
74,74,1,18,,74,74,74,18
75,75,1,18,,75,75,75,18
76,76,1,19,,76,76,76,19
77,77,1,19,,77,77,77,19
78,78,1,19,,78,78,78,19
79,79,1,19,,79,79,79,19
80,80,1,20,,80,80,80,20
81,81,1,20,,81,81,81,20
82,82,1,20,,82,82,82,20
83,83,1,20,,83,83,83,20
84,84,1,21,,84,84,84,21
85,85,1,21,,85,85,85,21
86,86,1,21,,86,86,86,21
87,87,1,21,,87,87,87,21
88,88,1,22,,88,88,88,22
89,89,1,22,,89,89,89,22
90,90,1,22,,90,90,90,22
91,91,1,22,,91,91,91,22
92,92,1,23,,92,92,92,23
93,93,1,23,,93,93,93,23
94,94,1,23,,94,94,94,23
95,95,1,23,,95,95,95,23
96,96,1,24,,96,96,96,24
97,97,1,24,,97,97,97,24
98,98,1,24,,98,98,98,24
99,99,1,24,,99,99,99,24
100,100,1,25,,100,100,100,25
101,101,1,25,,101,101,101,25
102,102,1,25,,102,102,102,25
103,103,1,25,,103,103,103,25
104,104,1,26,,104,104,104,26
105,105,1,26,,105,105,105,26
106,106,1,26,,106,106,106,26
107,107,1,26,,107,107,107,26
108,108,1,27,,108,108,108,27
109,109,1,27,,109,109,109,27
110,110,1,27,,110,110,110,27
111,111,1,27,,111,111,111,27
112,112,1,28,,112,112,112,28
113,113,1,28,,113,113,113,28
114,114,1,28,,114,114,114,28
115,115,1,28,,115,115,115,28
116,116,1,29,,116,116,116,29
117,117,1,29,,117,117,117,29
118,118,1,29,,118,118,118,29
119,119,1,29,,119,119,119,29
120,120,1,30,,120,120,120,30
121,121,1,30,,121,121,121,30
122,122,1,30,,122,122,122,30
123,123,1,30,,123,123,123,30
124,124,1,31,,124,124,124,31
125,125,1,31,,125,125,125,31
126,126,1,31,,126,126,126,31
127,127,1,31,,127,127,127,31
128,0,0,0,,0,0,0,0
129,1,0,0,,1,1,1,0
130,2,0,0,,2,2,2,0
131,3,0,0,,3,3,3,0
132,4,0,1,,4,4,4,1
133,5,0,1,,5,5,5,1
134,6,0,1,,6,6,6,1
135,7,0,1,,7,7,7,1
136,8,0,2,,8,8,8,2
137,9,0,2,,9,9,9,2
138,10,0,2,,10,10,10,2
139,11,0,2,,11,11,11,2
140,12,0,3,,12,12,12,3
141,13,0,3,,13,13,13,3
142,14,0,3,,14,14,14,3
143,15,0,3,,15,15,15,3
144,16,0,4,,16,16,16,4
145,17,0,4,,17,17,17,4
146,18,0,4,,18,18,18,4
147,19,0,4,,19,19,19,4
148,20,0,5,,20,20,20,5
149,21,0,5,,21,21,21,5
150,22,0,5,,22,22,22,5
151,23,0,5,,23,23,23,5
152,24,0,6,,24,24,24,6
153,25,0,6,,25,25,25,6
154,26,0,6,,26,26,26,6
155,27,0,6,,27,27,27,6
156,28,0,7,,28,28,28,7
157,29,0,7,,29,29,29,7
158,30,0,7,,30,30,30,7
159,31,0,7,,31,31,31,7
160,32,0,8,,32,32,32,8
161,33,0,8,,33,33,33,8
162,34,0,8,,34,34,34,8
163,35,0,8,,35,35,35,8
164,36,0,9,,36,36,36,9
165,37,0,9,,37,37,37,9
166,38,0,9,,38,38,38,9
167,39,0,9,,39,39,39,9
168,40,0,10,,40,40,40,10
169,41,0,10,,41,41,41,10
170,42,0,10,,42,42,42,10
171,43,0,10,,43,43,43,10
172,44,0,11,,44,44,44,11
173,45,0,11,,45,45,45,11
174,46,0,11,,46,46,46,11
175,47,0,11,,47,47,47,11
176,48,0,12,,48,48,48,12
177,49,0,12,,49,49,49,12
178,50,0,12,,50,50,50,12
179,51,0,12,,51,51,51,12
180,52,0,13,,52,52,52,13
181,53,0,13,,53,53,53,13
182,54,0,13,,54,54,54,13
183,55,0,13,,55,55,55,13
184,56,0,14,,56,56,56,14
185,57,0,14,,57,57,57,14
186,58,0,14,,58,58,58,14
187,59,0,14,,59,59,59,14
188,60,0,15,,60,60,60,15
189,61,0,15,,61,61,61,15
190,62,0,15,,62,62,62,15
191,63,0,15,,63,63,63,15
192,64,1,16,,64,64,64,16
193,65,1,16,,65,65,65,16
194,66,1,16,,66,66,66,16
195,67,1,16,,67,67,67,16
196,68,1,17,,68,68,68,17
197,69,1,17,,69,69,69,17
198,70,1,17,,70,70,70,17
199,71,1,17,,71,71,71,17
200,72,1,18,,72,72,72,18
201,73,1,18,,73,73,73,18
202,74,1,18,,74,74,74,18
203,75,1,18,,75,75,75,18
204,76,1,19,,76,76,76,19
205,77,1,19,,77,77,77,19
206,78,1,19,,78,78,78,19
207,79,1,19,,79,79,79,19
208,80,1,20,,80,80,80,20
209,81,1,20,,81,81,81,20
210,82,1,20,,82,82,82,20
211,83,1,20,,83,83,83,20
212,84,1,21,,84,84,84,21
213,85,1,21,,85,85,85,21
214,86,1,21,,86,86,86,21
215,87,1,21,,87,87,87,21
216,88,1,22,,88,88,88,22
217,89,1,22,,89,89,89,22
218,90,1,22,,90,90,90,22
219,91,1,22,,91,91,91,22
220,92,1,23,,92,92,92,23
221,93,1,23,,93,93,93,23
222,94,1,23,,94,94,94,23
223,95,1,23,,95,95,95,23
224,96,1,24,,96,96,96,24
225,97,1,24,,97,97,97,24
226,98,1,24,,98,98,98,24
227,99,1,24,,99,99,99,24
228,100,1,25,,100,100,100,25
229,101,1,25,,101,101,101,25
230,102,1,25,,102,102,102,25
231,103,1,25,,103,103,103,25
232,104,1,26,,104,104,104,26
233,105,1,26,,105,105,105,26
234,106,1,26,,106,106,106,26
235,107,1,26,,107,107,107,26
236,108,1,27,,108,108,108,27
237,109,1,27,,109,109,109,27
238,110,1,27,,110,110,110,27
239,111,1,27,,111,111,111,27
240,112,1,28,,112,112,112,28
241,113,1,28,,113,113,113,28
242,114,1,28,,114,114,114,28
243,115,1,28,,115,115,115,28
244,116,1,29,,116,116,116,29
245,117,1,29,,117,117,117,29
246,118,1,29,,118,118,118,29
247,119,1,29,,119,119,119,29
248,120,1,30,,120,120,120,30
249,121,1,30,,121,121,121,30
250,122,1,30,,122,122,122,30
251,123,1,30,,123,123,123,30
252,124,1,31,,124,124,124,31
253,125,1,31,,125,125,125,31
254,126,1,31,,126,126,126,31

As per title, due to some BIOS/Linux issue, I can't set the CPU 255 online (256th), per Supermicro:

This issue is due to that your Linux kernel does not support 256 CPU cores. Make sure that your Linux kernel version is equal to or higher than 4.19x, and enable IOMMU (Input/Output Memory Management Unit) in BIOS. So, from above: you need OS kernel with 4.19 & above, then enable IOMMU in BIOS setting. It was implemented as follows: BIOS, Advanced ==> NB Configuration ==> IOMMU ==> Enabled.

When running maximize-cpu-freq, it will attempt to change CPU 255 and fail:

root@ubuntu:~# maximize-cpu-freq
- set /sys/devices/system/cpu/cpu239 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu88 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu182 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu21 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu116 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu200 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu144 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu229 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu78 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu172 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu11 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu106 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu9 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu134 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu219 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu68 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu162 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu247 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu96 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu190 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu124 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu209 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu58 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu152 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu237 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu86 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu180 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu114 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu48 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu142 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu227 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu76 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu170 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu104 minimal freq (2250000) to maximum (2250000)
- set /sys/devices/system/cpu/cpu7 minimal freq (2250000) to maximum (2250000)
/usr/local/bin/maximize-cpu-freq: line 27: continue: only meaningful in a `for', `while', or `until' loop
/usr/local/bin/maximize-cpu-freq: line 28: /sys/devices/system/cpu/cpu255/cpufreq/scaling_governor: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant