Bug 614 - [x86_64]不管是否打开no_turbo,cpu frequency not stable
Summary: [x86_64]不管是否打开no_turbo,cpu frequency not stable
Status: CONFIRMED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: CruzZhao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-07 18:27 UTC by kangjiangbo
Modified: 2022-03-14 19:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kangjiangbo 2022-03-07 18:27:12 UTC
Description of problem:
不管是否打开CPU睿频
#打开
echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
#关闭
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
4.19 x86内核上发现cpu频率不稳定,使用三台机器发现都是一样的

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:


Actual results:
cpu频率不稳定,以cpu0为例:
[root@i22e11409 bin]# cat /sys/devices/system/cpu/cpu0/cpufreq/*_cur_freq
1662040
[root@i22e11409 bin]# cat /sys/devices/system/cpu/cpu0/cpufreq/*_cur_freq
1327543
[root@i22e11409 bin]# cat /sys/devices/system/cpu/cpu0/cpufreq/*_cur_freq
1192405
[root@i22e11409 bin]# cat /sys/devices/system/cpu/cpu0/cpufreq/*_cur_freq
1687081


Expected results:


Additional info:
Comment 1 kangjiangbo 2022-03-08 10:27:13 UTC
补充下机器信息:
# uname -a
Linux i22e11410.eu95sqa 4.19.91-231.git.533d40934.an8.x86_64 #1 SMP Mon Feb 14 13:30:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.2"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.2"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.2"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              96
On-line CPU(s) list: 0-95
Thread(s) per core:  2
Core(s) per socket:  24
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Stepping:            4
CPU MHz:             1606.574
CPU max MHz:         3100.0000
CPU min MHz:         1000.0000
BogoMIPS:            5000.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            33792K
NUMA node0 CPU(s):   0-95
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d