我的戴尔 XPS 15 9550 笔记本电脑很慢;在文本框中输入跟不上我的步伐,在 google 地图中移动是不可撤销的,并且当我浏览时 javascript 弹出窗口很慢。我在本地运行的开发网站也是如此。
我注意到 CPU 可能会被限制在 800Mhz。所以我开始调查 CPU 报告:
/proc/cpuinfo在所有 8 个线程上报告 ~800MHz我打电话给戴尔,他们建议更新 Bios 并禁用 SpeedStep 和 C-States。我做了,之后windows任务管理器开始报告2.6GHz,bios也是如此,但windows中的Open Hardware Monitor仍然说800MHz CPU和100Mhz总线。
所以 Windows 中的数字似乎不一致,但坦率地说,我最关心 Ubuntu。改bios后,Ubuntu还是感觉很慢。
我想知道我的 CPU 或内核的实际运行速度。所以确保核心有一些工作要做
for i in `seq 5`; do (echo "i=0"; echo "while True: i=1+1") | python& done
Run Code Online (Sandbox Code Playgroud)
现在任务管理器中有 5 个线程处于完全活动状态;性能调节器扩展内核的一个原因。我看到的是这样的:
$ sudo lshw -c cpu
*-cpu
description: CPU
product: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
vendor: Intel Corp.
physical id: 3c
bus info: cpu@0
version: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
serial: To Be Filled By O.E.M.
slot: U3E1
size: 799MHz # suggests the current speed is 800MHz
capacity: 3500MHz
width: 64 bits
clock: 100MHz
capabilities: x86-64 fpu fpu_exception wp 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 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq
configuration: cores=4 threads=8
Run Code Online (Sandbox Code Playgroud)
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 94
model name : Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
stepping : 3
microcode : 0x9e
cpu MHz : 799.906
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
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 aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs :
bogomips : 5183.76
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
# Repeated 8 times for all threads, cpu MHz around 800MHz for all
Run Code Online (Sandbox Code Playgroud)
$ sudo dmidecode -t processor
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
Handle 0x003C, DMI type 4, 48 bytes
Processor Information
Socket Designation: U3E1
Type: Central Processor
Family: Core i7
Manufacturer: Intel(R) Corporation
ID: E3 06 05 00 FF FB EB BF
Signature: Type 0, Family 6, Model 94, Stepping 3
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Voltage: 0.6 V
External Clock: 100 MHz
Max Speed: 2600 MHz
Current Speed: 2600 MHz
Status: Populated, Enabled
Upgrade: Other
L1 Cache Handle: 0x0039
L2 Cache Handle: 0x003A
L3 Cache Handle: 0x003B
Serial Number: To Be Filled By O.E.M.
Asset Tag: To Be Filled By O.E.M.
Part Number: To Be Filled By O.E.M.
Core Count: 4
Thread Count: 8
Characteristics:
64-bit capable
Multi-Core
Hardware Thread
Execute Protection
Enhanced Virtualization
Power/Performance Control
Run Code Online (Sandbox Code Playgroud)
这里/proc/cpuinfo并lshw建议实际 CPU 速度为 800MHz,这是由我的机器有多慢来支持的。但是,`dmidecode 说当前速度是 2600MHz,我的 BIOS 也是如此。为什么这个数字不一致?有没有经验方法,检查CPU需要多长时间来计算某事,以猜测CPU速度?(800MHz 应该和 2600MHz 有很大区别)
此外,Open Hardware Monitor 也报告了 800Mhz,而 Windows 任务管理器报告了 2.6GHz。
显然,关于如何解决 CPU 节流的任何建议将不胜感激。我已经找到了“打开笔记本电脑,卸下电池几分钟”和“完全耗尽电池电量,不要充电几分钟”的解决方案。仍然需要尝试那些。
要了解所有 CPU 规格,请使用以下命令:
lscpu
Run Code Online (Sandbox Code Playgroud)
要获取 CPU 的特定频率,请使用带有 grep 的命令,如下所示:
lscpu | grep MHz
Run Code Online (Sandbox Code Playgroud)
它将为您提供如下输出:
CPU MHz: 2723.789
Run Code Online (Sandbox Code Playgroud)
要查看实时 CPU 速度波动,请使用:
watch -n1 "lscpu | grep MHz | awk '{print $1}'";
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
29237 次 |
| 最近记录: |