AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[cpufreq](ubuntu)

Martin Hope
EllistonV
Asked: 2021-03-01 12:11:13 +0800 CST

可能的最低频率是多少?

  • 0

CPU 的最低可能频率是多少(在我的情况下,我有 Intel® Core™ i7-8750H CPU @ 2.20GHz × 12)

cpufreq
  • 1 个回答
  • 103 Views
Martin Hope
s-m-e
Asked: 2020-11-22 04:37:04 +0800 CST

在运行时禁用 AMD 的等效(在 Zen-1 Epyc 上)英特尔的“涡轮增压”?

  • 3

这可能是我的术语问题和重复:在英特尔 CPU 上,我可以通过运行类似的东西在运行时相对轻松地禁用涡轮增压

echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

然后 CPU 以其基本时钟运行而不会“加速”。好消息是我不需要为此更改 BIOS/(U)EFI 设置。

AMD CPU,特别是 Zen-1 Epyc 上的等价物(就术语和命令而言)是什么?

我正在尝试以恒定(低)速度运行 CPU 以获得一致的基准测试结果。我正在尝试比较算法的不同软件实现。

cpu benchmarks cpufreq amd-processor turbo-boost
  • 2 个回答
  • 3408 Views
Martin Hope
Tomaz Pablo
Asked: 2020-11-11 07:07:33 +0800 CST

如何降低cpu最大速度?

  • 0

我正在尝试提高戴尔 Inspiron 7460 笔记本电脑的 CPU 温度,这是这台特定机器在承受合理压力时的常见问题(小机箱、通风口放置不当、cpu 和 gpu 的单一冷却器)。Windows 允许我简单地将 i5 7200U 的最大速度从 3.1GHz 降低到 2.8GHz 或 2.5GHz,虽然我同意这不是最好的解决方案,但它对我来说很好用。

那么 Ubuntu 20.04.1 有什么办法可以做到这一点吗?另外我是 Linux 新手,终端命令对我来说通常是未知的,但我正在努力学习,而且我经常更喜欢使用它们。

power-management cpu cpufreq temperature
  • 2 个回答
  • 829 Views
Martin Hope
GT Tech Life
Asked: 2020-08-20 06:53:39 +0800 CST

Ubuntu 20.04.1 LTS 显着限制 Intel i7 处理器

  • 2

我无法使用我的新笔记本电脑(配备英特尔酷睿 i7-4810MQ 四核处理器 3.7 GHz 的 HP ZBook 15 G2)来避免在 Ubuntu 20.04 上显着限制我的处理器。

它最初在 400MHz 以下开始。我尝试将 Intel-Pstate 的调控器设置更改为性能,我尝试禁用 Grub 上的调控器。我在网上找到了一堆尝试过的建议。

我最后一次尝试让我将 CPU 调控器完全切换到 acpi-cpufreq 调控器,并将其设置为性能或按需。这确实有效果,但现在它的最大频率设置为 900MHz。我尝试使用 cpufreq-set 手动更改它也没有成功。

任何帮助将不胜感激,因为我真的遇到了性能问题。是否还有其他没有此问题的 Linux 发行版?

这是我目前的频率

CPU 频率

这是当前的 cpufreq-info 输出,看看它是如何设置为只有 900MHz

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.41%, 800 MHz:33.30%  (1746)
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.41%, 800 MHz:33.29%  (1746)
analyzing CPU 2:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 2
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.41%, 800 MHz:33.30%  (1746)
analyzing CPU 3:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.41%, 800 MHz:33.30%  (1746)
analyzing CPU 4:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 4
  CPUs which need to have their frequency coordinated by software: 4
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.40%, 800 MHz:33.30%  (1746)
analyzing CPU 5:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 5
  CPUs which need to have their frequency coordinated by software: 5
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.40%, 800 MHz:33.30%  (1746)
analyzing CPU 6:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 6
  CPUs which need to have their frequency coordinated by software: 6
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.41%, 800 MHz:33.29%  (1746)
analyzing CPU 7:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 7
  CPUs which need to have their frequency coordinated by software: 7
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.80 GHz, 2.70 GHz, 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.10 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.50 GHz, 1.40 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 900 MHz and 900 MHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz (asserted by call to hardware).
  cpufreq stats: 2.80 GHz:0.03%, 2.80 GHz:0.00%, 2.70 GHz:0.00%, 2.50 GHz:0.00%, 2.40 GHz:0.00%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 1.90 GHz:0.04%, 1.80 GHz:0.04%, 1.70 GHz:0.04%, 1.50 GHz:0.05%, 1.40 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 900 MHz:66.40%, 800 MHz:33.31%  (1746)

顶部的结果

    top - 15:25:35 up 18 min,  1 user,  load average: 2.08, 1.00, 0.59
Tasks: 347 total,   3 running, 344 sleeping,   0 stopped,   0 zombie
%Cpu(s): 17.6 us,  3.1 sy,  0.0 ni, 77.3 id,  0.0 wa,  0.0 hi,  2.0 si,  0.0 st
MiB Mem :  15928.5 total,  12274.0 free,   2032.8 used,   1621.7 buff/cache
MiB Swap:   2048.0 total,   2048.0 free,      0.0 used.  13505.7 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                   
   4114 gary      20   0 2786772 412368 193164 R 103.9   2.5   0:52.76 Web Content                                                                                                                               
   2880 gary      20   0 4178028 302196 108200 S  26.6   1.9   0:25.29 gnome-shell                                                                                                                               
   2675 root      20   0  177540  50868  35228 R  12.9   0.3   0:08.97 Xorg                                                                                                                                      
   3855 gary      20   0  497652 236072 151040 S   9.9   1.4   0:07.00 GPU Process                                                                                                                               
   3820 gary      20   0 3277312 296956 149340 S   8.6   1.8   0:27.65 MainThread                                                                                                                                
   3998 gary      20   0  970876  51648  39000 S   5.6   0.3   0:02.07 gnome-terminal-                                                                                                                           
   1543 root     -51   0       0      0      0 S   4.3   0.0   0:06.06 irq/38-nvidia                                                                                                                             
    914 root      20   0   85048   2376   1980 S   1.7   0.0   0:11.86 cpufreqd                                                                                                                                  
   4274 gary      20   0   20712   4068   3148 R   1.3   0.0   0:00.10 top                                                                                                                                       
   2808 gary      20   0  162884   6508   5852 S   0.9   0.0   0:00.12 at-spi2-registr                                                                                                                           
    410 root      19  -1  248028 170684 168660 S   0.4   1.0   0:30.93 systemd-journal                                                                                                                           
    792 root      20   0    2540    780    716 S   0.4   0.0   0:00.46 acpid                                                                                                                                     
    852 syslog    20   0  224324   5456   3632 S   0.4   0.0   0:04.93 rsyslogd                                                                                                                                  
      1 root      20   0  168304  12372   8588 S   0.0   0.1   3:43.97 systemd                                                                                                                                   
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd                                                                                                                                  
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp                                                                                                                                    
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp                                                                                                                                
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-kblockd                                                                                                                      
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq                                                                                                                              
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.08 ksoftirqd/0                                                                                                                               
     11 root      20   0       0      0      0 I   0.0   0.0   0:00.69 rcu_sched                                                                                                                                 
     12 root      rt   0       0      0      0 S   0.0   0.0   0:00.03 migration/0                                                                                                                               
     13 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/0                                                                                                                             
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0                                                                                                                                   
top - 15:26:14 up 19 min,  1 user,  load average: 1.74, 1.05, 0.63
Tasks: 349 total,   2 running, 347 sleeping,   0 stopped,   0 zombie
%Cpu(s): 14.1 us,  1.5 sy,  0.0 ni, 83.2 id,  0.0 wa,  0.0 hi,  1.2 si,  0.0 st
MiB Mem :  15928.5 total,  12302.2 free,   2002.4 used,   1623.9 buff/cache
MiB Swap:   2048.0 total,   2048.0 free,      0.0 used.  13535.9 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                             
   4114 gary      20   0 2797012 393096 193164 R 108.6   2.4   1:34.14 Web Content                                                                                                                         
   3855 gary      20   0  497652 236072 151040 S   8.6   1.4   0:10.51 GPU Process                                                                                                                         
   3820 gary      20   0 3277312 295576 150120 S   6.6   1.8   0:31.47 MainThread                                                                                                                          
   1543 root     -51   0       0      0      0 S   5.3   0.0   0:08.28 irq/38-nvidia                                                                                                                       
   2675 root      20   0  177540  50868  35228 S   2.3   0.3   0:11.07 Xorg                                                                                                                                
   3998 gary      20   0  971560  52260  39000 S   2.0   0.3   0:03.82 gnome-terminal-                                                                                                                     
   2880 gary      20   0 4178028 302340 108200 S   1.3   1.9   0:27.12 gnome-shell                                                                                                                         
    914 root      20   0   85048   2376   1980 S   1.0   0.0   0:12.53 cpufreqd                                                                                                                            
   4274 gary      20   0   20712   4068   3148 R   0.7   0.0   0:00.38 top                                                                                                                                 
      1 root      20   0  168304  12372   8588 S   0.3   0.1   3:44.05 systemd                                                                                                                             
    294 root      20   0       0      0      0 I   0.3   0.0   0:00.39 kworker/u16:3-events_power_efficient                                                                                                
    410 root      19  -1  248028 171144 169120 S   0.3   1.0   0:31.10 systemd-journal                                                                                                                     
    790 root      20   0  246884   7396   6500 S   0.3   0.0   0:00.47 accounts-daemon                                                                                                                     
    852 syslog    20   0  224324   5456   3632 S   0.3   0.0   0:05.01 rsyslogd                                                                                                                            
   3807 root      20   0       0      0      0 I   0.3   0.0   0:00.06 kworker/0:4-events                                                                                                                  
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd                                                                                                                            
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp                                                                                                                              
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp                                                                                                                          
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-kblockd                                                                                                                
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq                                                                                                                        
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.08 ksoftirqd/0                                                                                                                         
     11 root      20   0       0      0      0 I   0.0   0.0   0:00.71 rcu_sched                                                                                                                           
     12 root      rt   0       0      0      0 S   0.0   0.0   0:00.03 migration/0                                                                                                                         
     13 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/0                                                                                                                       
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0                                                                                                                             
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1                                                                                                                             
     16 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/1                                                                                                                       
     17 root      rt   0       0      0      0 S   0.0   0.0   0:00.06 migration/1                                                                                                                         
     18 root      20   0       0      0      0 S   0.0   0.0   0:00.07 ksoftirqd/1                                                                                                                         
     20 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-kblockd                                                                                                                
     21 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/2                                                                                                                             
     22 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/2                                                                                                                       
     23 root      rt   0       0      0      0 S   0.0   0.0   0:00.09 migration/2                                                                                                                         
     24 root      20   0       0      0      0 S   0.0   0.0   0:00.10 ksoftirqd/2                                                                                                                         
     25 root      20   0       0      0      0 I   0.0   0.0   0:00.67 kworker/2:0-cgroup_destroy                                                                                                          
     26 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/2:0H-kblockd                                                                                                                
     27 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/3                                                                                                                             
     28 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/3                                                                                                                       
     29 root      rt   0       0      0      0 S   0.0   0.0   0:00.08 migration/3                                                                                                                         
     30 root      20   0       0      0      0 S   0.0   0.0   0:00.05 ksoftirqd/3                                                                                                                         
     32 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/3:0H-kblockd                                                                                                                
     33 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/4                                                                                                                             
     34 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/4                                                                                                                       
     35 root      rt   0       0      0      0 S   0.0   0.0   0:00.09 migration/4                                                                                                                         
     36 root      20   0       0      0      0 S   0.0   0.0   0:00.08 ksoftirqd/4                                                                                                                         
     37 root      20   0       0      0      0 I   0.0   0.0   0:00.38 kworker/4:0-events                                                                                                                  
     38 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/4:0H-kblockd                                                                                                                
     39 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/5                                                                                                                             
     40 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/5  

ps auxc | 的结果 grep -i 热

root         185  0.0  0.0      0     0 ?        I<   15:07   0:00 acpi_thermal_pm

free -h 的结果

total        used        free      shared  buff/cache   available
Mem:           15Gi       2.0Gi        11Gi        80Mi       1.6Gi        13Gi
Swap:         2.0Gi          0B       2.0Gi

sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 6 结果

Busy%   Bzy_MHz IRQ PkgTmp  PkgWatt GFXWatt
19.69   866 11218   45  10.86   0.00
19.75   866 10087   44  11.01   0.00
20.24   864 32081   44  10.98   0.00
19.89   865 9915    45  10.88   0.00
19.57   866 9581    44  10.84   0.00
19.51   867 28248   44  10.80   0.00
19.03   866 8652    45  10.77   0.00
19.19   867 29111   45  10.75   0.00
21.04   867 11219   45  10.92   0.00
21.17   870 10631   46  10.92   0.00
19.42   866 29364   45  10.81   0.00
19.50   867 8938    46  10.84   0.00
21.07   868 10832   44  10.90   0.00
19.96   867 30598   45  10.84   0.00
19.36   867 9359    45  10.83   0.00
20.50   868 52384   46  10.86   0.00
21.44   868 12888   46  10.90   0.00
19.73   800 1079    46  10.55   0.00

传感器的结果

BAT0-acpi-0
Adapter: ACPI interface
in0:          15.98 V  
curr1:         0.00 A  

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +40.0°C  (high = +84.0°C, crit = +100.0°C)
Core 0:        +40.0°C  (high = +84.0°C, crit = +100.0°C)
Core 1:        +39.0°C  (high = +84.0°C, crit = +100.0°C)
Core 2:        +37.0°C  (high = +84.0°C, crit = +100.0°C)
Core 3:        +38.0°C  (high = +84.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +40.0°C  (crit = +128.0°C)
temp2:        +40.0°C  (crit = +128.0°C)
temp3:        +85.0°C  (crit = +128.0°C)
temp4:        +85.0°C  (crit = +128.0°C)
temp5:        +25.0°C  (crit = +128.0°C)
temp6:       +127.0°C  (crit = +128.0°C)

来自 sysctl vm.swappiness 的结果

vm.swappiness = 60

结果来自 dpkg -l *freq* | grep ii

ii  cpufreqd          2.4.2-2ubuntu3 amd64        fully configurable daemon for dynamic frequency and voltage scaling
ii  cpufrequtils      008-1.1        amd64        utilities to deal with the cpufreq Linux kernel feature
ii  indicator-cpufreq 0.2.2-0ubuntu3 all          CPU frequency scaling indicator
ii  libcpufreq0       008-1.1        amd64        shared library to deal with the cpufreq Linux kernel feature

ls -al /usr/share/gnome-shell/extensions 的结果

total 20
drwxr-xr-x 5 root root 4096 Apr 23 03:35 .
drwxr-xr-x 7 root root 4096 Aug 18 14:29 ..
drwxr-xr-x 2 root root 4096 Aug 19 15:00 desktop-icons@csoriano
drwxr-xr-x 3 root root 4096 Apr 23 03:35 ubuntu-appindicators@ubuntu.com
drwxr-xr-x 3 root root 4096 Jul 30 16:43 ubuntu-dock@ubuntu.com

任何帮助将不胜感激,机器实际上无法使用这么低的速度。

performance intel cpufreq 20.04
  • 4 个回答
  • 7468 Views
Martin Hope
Arthur Tabbal
Asked: 2020-03-13 17:59:08 +0800 CST

如何编写在启动时运行的脚本?

  • 2

新手来了 我有一台戴尔 Inspiron 灵越 3442,它遇到了“CPU 卡在 800Mhz”的问题。在 Windows 中,我曾经在每次启动时运行 ThrottleStop 并禁用 BD PROCHOT ......所以我最近安装了 Ubuntu 并学会了用这个答案中的一组命令来解决这个问题:

https://askubuntu.com/a/1192949/1053161

哪个是 :

sudo cpufreq-set -c 0 -g performance
sudo cpufreq-set -c 1 -g performance
sudo cpufreq-set -c 2 -g performance
sudo cpufreq-set -c 3 -g performance
sudo modprobe msr
sudo wrmsr 0x1FC 17422

这些完全解决了我的问题。现在我想制作一个可以在启动/登录后自动运行的脚本。实现这一目标的最简单方法是什么?

提前致谢!

scripts performance startup cpufreq modprobe
  • 1 个回答
  • 401 Views
Martin Hope
thomasb
Asked: 2019-05-04 00:30:18 +0800 CST

新司机问题

  • 0

计算机需要随机连续两次启动才能启动。

这是发生的事情:

  1. 在安装indicator-cpufreq和运行openssl speed之后turbostat,我需要两次启动来启动 Ubuntu。

    • 所以我删除了它,但我在第一次启动时收到“内核恐慌”消息,在第二次启动时收到正常登录消息
    • 因此,我清除了 indicator-cpufreq :sudo apt-get purge --auto-remove indicator-cpufreq

    • 然后,我仍然需要两次引导,但第一次没有内核恐慌消息了。

  2. 之后,我重新安装了 indicator-cpufreq 并随机:

    • 当系统找到声卡时冻结屏幕
    • 系统发现网络连接时冻结屏幕
    • 内核恐慌
    • 在消息“A job is running for...”之后第一次启动停止了一点
  3. 最后,我再次清除了 indicator-cpufreq。现在第一次启动在消息“A job is running for...”之后停止了一点,它围绕着它找到了网络连接或声卡的消息。

引人注目:

  • 当消息“A job is running for...”前面有 (x of 6) 时,似乎总是有错误
  • 当它前面有 (x of 5) 时,启动过程似乎停止并重新启动。
  • 当它前面有 (x of 4) 时,引导过程似乎以登录屏幕结束。

此外,我的 BIOS 坏了:(来自 dmesg)

[    0.000000] ------------[ cut here ]------------
[    0.000000] Your BIOS is broken; DMAR reported at address fed90000 returns all ones!
               BIOS vendor: Hewlett-Packard; Ver: 786F1 v01.24; Product Version: 
[    0.000000] WARNING: CPU: 0 PID: 0 at /build/linux-S9wgEU/linux-4.15.0/drivers/iommu/dmar.c:848 warn_invalid_dmar.part.11+0x55/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.15.0-49-generic #53-Ubuntu
[    0.000000] Hardware name: Hewlett-Packard HP Compaq dc7800 Convertible Minitower/0AACh, BIOS 786F1 v01.24 03/18/2008
[    0.000000] EIP: warn_invalid_dmar.part.11+0x55/0x70
[    0.000000] EFLAGS: 00210092 CPU: 0
[    0.000000] EAX: 0000008b EBX: c7b6b6b5 ECX: 00000080 EDX: 00000000
[    0.000000] ESI: fed90000 EDI: 00000000 EBP: c7c13ed0 ESP: c7c13ea0
[    0.000000]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[    0.000000] CR0: 80050033 CR2: 00000000 CR3: 07e24000 CR4: 000006b0
[    0.000000] Call Trace:
[    0.000000]  dmar_validate_one_drhd+0xc9/0x140
[    0.000000]  dmar_walk_remapping_entries+0x92/0x1e0
[    0.000000]  detect_intel_iommu+0x58/0xd7
[    0.000000]  ? xen_swiotlb_init+0x3f0/0x3f0
[    0.000000]  pci_iommu_alloc+0x45/0x5f
[    0.000000]  mem_init+0x28/0x204
[    0.000000]  start_kernel+0x217/0x438
[    0.000000]  i386_start_kernel+0xa1/0xa5
[    0.000000]  startup_32_smp+0x164/0x168
[    0.000000] Code: 00 00 00 e8 9e db 1a 00 89 45 f0 b8 01 00 00 00 e8 91 db 1a 00 8b 4d ec 8b 55 f0 51 52 50 53 57 56 68 e4 ad b6 c7 e8 2b 8d af ff <0f> 0b 83 c4 1c 8d 65 f4 5b 5e 5f 5d c3 8d b4 26 00 00 00 00 8d
[    0.000000] ---[ end trace 0f18a8dcfe7fc25e ]---

boot kernel bios cpufreq purge
  • 2 个回答
  • 606 Views
Martin Hope
Vlad Balmos
Asked: 2019-04-25 06:29:12 +0800 CST

笔记本电脑电池电量低

  • 1

我最近在 HP ProBook 430 G3 上安装了 Ubuntu 19.04 并发现了以下问题。插入交流电时电池不会充电,直到电量低于 15% 或更低,有时我必须拔下插头并插入几次,直到它开始充电。此外,当使用电池供电时,性能很差,非常糟糕。我认为这与CPU缩放或其他东西有关。首先,我认为我的安装有问题,所以我删除了所有内容并安装了 Lubuntu 19.04,但出现了同样的问题。

我想在电池供电时禁用 CPU 缩放,并在交流电时一直为电池充电,而不仅仅是在电量低于某个阈值时。

你能帮我做吗?谢谢!

更新 电池放电至 45%,然后插入电源线。1 小时后,电池电量降至 3%,令我惊讶的是它根本没有充电。我不得不拔掉插头并重新插入 5 次才能开始工作。这变得非常令人沮丧。

power-management laptop lubuntu cpufreq 19.04
  • 1 个回答
  • 1755 Views
Martin Hope
DannyBoy
Asked: 2019-04-13 05:26:36 +0800 CST

处理器上限为 800Mhz

  • 5

当我做一些使 CPU 达到峰值的事情时,它似乎会限制 CPU 以防止过热。这可以。但是,当我停止、完成或关闭推动 CPU 的程序或进程时,似乎节流从未解除。

我的处理器上限为 800Mhz,不会超过。

我努力了:

  1. 重新插入电源线。它什么也没改变。
  2. 重新启动计算机。这解决了问题,但我不想每次都这样做。

自然很少有应用程序和程序实际上会导致这种情况发生。但是当我玩游戏时,就会发生这种情况。

我的电脑是华硕 UX550VE,配备 i7700、16gb 内存和 1050ti,我正在运行 Ubuntu 16.04 LTS

这是什么原因造成的,我该如何补救?每次发生这种情况时都必须重新启动,这很烦人。

cpufreq 16.04 intel-cpu
  • 5 个回答
  • 2247 Views
Martin Hope
newcat1000
Asked: 2019-01-06 05:15:38 +0800 CST

是否有 CPU 监视器小部件以 GHz 显示 CPU 频率?

  • 3

我在联想笔记本电脑上有 Kubuntu 18.10 和 KDE Plasma 5.14.4。

是否有 CPU 监视器小部件以 GHz 显示 CPU 频率?

我想要以 GHz 为单位从系统托盘中的小部件进行实时监控。

如果可能,如何使 Psensor 以 GHz 或类似的方式显示 CPU 频率?

我想从系统托盘监视 CPU 频率(以 GHz 为单位),并且不想像副本那样以百分比监视 CPU 使用率。

monitoring cpu cpufreq
  • 2 个回答
  • 4002 Views
Martin Hope
Jorengarenar
Asked: 2018-12-17 05:15:04 +0800 CST

即使使用“省电”调速器,CPU 频率也太高

  • 3

最近我注意到我的 CPU 大部分时间都处于高频状态,即使负载很小。

它是一个 i5-7300HQ 处理器,应该使用 800 MHz 和 2.5 GHz 之间的频率(3.5 GHz 与 Turbo Boost)。

现在即使负载约为 2-8%,我看到的频率通常在 2.6 到 3.2 GHz 之间,这意味着 CPU 几乎总是 Turbo Boosting。

之前它总是 900 - 1200 MHz。

缩放调节器设置为省电:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave

在/etc/default/grub我有一行:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable scsi_mod.scan=sync"

在/etc/default/cpufrequtils:

GOVERNOR="powersave"

没有/sys/devices/system/cpu/intel_pstate/目录

我的系统规格是:

  • 笔记本电脑:HP Pavilion - 15-bc203nw
  • 操作系统:Ubuntu (Xubuntu) 18.04.1 LTS
  • CPU:英特尔酷睿 i5-7300HQ

编辑

在@WinEunuuchs2Unix 提出建议后,我再次获得了/sys/devices/system/cpu/intel_pstate/目录。

键入以下内容:

cd /sys/devices/system/cpu/cpu0/cpufreq && paste <(ls *) <(cat *)

给出输出:

affected_cpus                             0
cpuinfo_max_freq                          3500000
cpuinfo_min_freq                          800000
cpuinfo_transition_latency                0
energy_performance_available_preferences  default performance balance_performance balance_power power
energy_performance_preference             balance_performance
related_cpus                              0
scaling_available_governors               performance powersave
scaling_cur_freq                          3236541
scaling_driver                            intel_pstate
scaling_governor                          performance
scaling_max_freq                          3500000
scaling_min_freq                          3500000
scaling_setspeed                          <unsupported>

我该如何设置它powersave(只是在scaling_governor文件中更改它不会做任何事情)。

cpu governor intel cpufreq 18.04
  • 1 个回答
  • 5222 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve