V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
dw2693734d
V2EX  ›  Linux

环境温度是否会影响 CPU 占用率?

  •  
  •   dw2693734d · 300 天前 · 1547 次点击
    这是一个创建于 300 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近天气炎热,我家里的 Linux 服务器 CPU 占用率似乎随着温度好像变高了很多,不知道是什么原因

    $ sensors
    coretemp-isa-0000
    Adapter: ISA adapter
    Package id 0:  +63.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 0:        +47.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 4:        +50.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 8:        +54.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 12:       +56.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 16:       +63.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 20:       +61.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 24:       +52.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 28:       +55.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 36:       +47.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 37:       +47.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 38:       +47.0 C  (high = +80.0 C, crit = +100.0 C)
    Core 39:       +47.0 C  (high = +80.0 C, crit = +100.0 C)
    
    10 条回复    2023-07-07 17:52:16 +08:00
    opengps
        1
    opengps  
       300 天前   ❤️ 1
    温度过高确实会降频,但我并不知道降频是否会提高占用率
    selca
        2
    selca  
       300 天前   ❤️ 1
    @opengps #1 猜想可能会吧,占用率好像是占用的时间比例,如果任务所需时间变长了,那就相当于占用率提升了
    flyqie
        3
    flyqie  
       300 天前
    @opengps #1

    降频等于限制了 cpu 的工作效率,从某种意义上来说也算变相地提高了 cpu 占用率。
    mineralsalt
        4
    mineralsalt  
       300 天前
    温度高到降频, 会极大影响速度
    renfei
        5
    renfei  
       300 天前   ❤️ 2
    我的观察,我的 macbook pro ,如果周围气温炎热,确实容易高温,一旦高温就会出现一个叫 kernel_task 的进程开始大量占用 CPU ,让 CPU 冷静下来
    dw2693734d
        6
    dw2693734d  
    OP
       300 天前
    @renfei 我的 macbook 也是,老是有个 kernel_task 来占用我的 cpu😂
    ysc3839
        7
    ysc3839  
       300 天前 via Android   ❤️ 3
    @opengps @selca 理论上不会,CPU 使用率/占用率是单位时间内 CPU 非空闲时间所占比例。性能下降,任务总时长变长,不会影响单位时间内的情况。
    不过在 Windows 8 及之后的任务管理器中,CPU 降频可能会让任务管理器里面的“CPU 使用率”降低,因为那个 CPU 使用率是会乘以睿频倍率的。假设 CPU 基础频率是 2GHz ,现在以 4GHz 运行,真正的 CPU 使用率是 50%,那显示出来的会是 100%。任务管理器中唯一正确的 CPU 使用率是在详细信息页面的那个。
    flyqie
        8
    flyqie  
       300 天前
    @ysc3839 #7

    感谢分享,涨知识了。
    veike
        9
    veike  
       300 天前
    10 年期前的笔记本,不开空调用一会就直接黑屏关机了。
    iugo
        10
    iugo  
       300 天前   ❤️ 1
    @renfei 你的观察在 https://support.apple.com/en-us/HT207359 知识库中得到了验证.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   739 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:42 · PVG 05:42 · LAX 14:42 · JFK 17:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.