如何快速给 MacBook 加热
Warm up your MacBook (2019)

原始链接: https://z3ugma.github.io/2019/11/18/warm-up-your-macbook/

若要在冬季迅速为冰冷的笔记本电脑预热,您可以强制 CPU 以 100% 的能力运行,从而产生大量热量。 对于 macOS 或 Linux,一个简单的内置解决方案是在终端(Terminal)中运行 `yes > /dev/null` 命令。这将使 CPU 满负荷运转,直到您手动停止。 若要使用更稳健的方法,请使用 `stress` 工具。通过 Homebrew 安装后,您可以执行带有特定时间限制的定向测试。运行 `stress -c 6 -m 2 -t 300` 将使 6 个 CPU 线程和 2 个内存线程满载运行 5 分钟,在不产生长期过热风险的情况下安全地温暖机身。您甚至可以在 bash 配置文件中添加别名(例如 `alias warm='stress -c 6 -m 2 -t 300'`),以便随时一键开启此“加热模式”。 请务必使用超时命令,以防止在您离开时电脑无限期地满负荷运行。

近期一篇关于“如何快速加热 MacBook”的 Hacker News 讨论帖,凸显了老款英特尔芯片 Mac 与现代 Apple Silicon 机型在散热表现上的巨大差异。 用户们调侃说,可以使用 Cinebench、本地大语言模型或编译大型代码库等高强度软件来产生热量。然而,大家普遍认为这一前提早已过时:英特尔芯片 MacBook 以发热严重著称,而较新的 M 系列芯片则非常高效。许多评论者提到,即使在高负载下,他们也很少听到风扇转动的声音。还有人开玩笑说,现代 MacBook 实在“太凉快”了,已经无法充当暖手宝。关于如何制造热量的技术建议五花八门,从软件压力测试到运行 `yes > /dev/null` 这种幽默的命令行方式应有尽有。总的来说,这篇讨论帖轻松地反映了自英特尔时代以来,设备能效比所取得的巨大进步。
相关文章

原文

You’ve been there - after putting your backpack in a frigid car, walking against the Wisconsin wind, or biking across the frozen lake, you arrive at work. You rest your palms on the keyboard to begin typing your password, and recoil in pain from the sudden cold of the metal sucking the heat from your skin.

How do you quickly warm up a laptop? Make it do a lot of work.

Here’s a one-line, built-in command that will peg your CPU to 100%:

Run that from a Terminal, and don’t forget about it heh. What the command does is repeatedly send the word yes over and over to the null device, using 100% CPU.

If you want to stress your Mac more quickly and get your CPU hotter, try the stress utility:

brew install stress
stress -c 6 -m 2 -t 300

This will start 6 threads that each peg your CPU to 100% and 2 thread that do memory malloc/free. It has a 300-second timeout (5 mins) in case you walk away from your computer so it doesn’t overheat.

Bonus points, you can add an alias to your ~/.bash-profile to automate these options:

alias warm='stress -c 6 -m 2 -t 300'
fred: bash$ warm
stress: info: [65121] dispatching hogs: 6 cpu, 0 io, 2 vm, 0 hdd

Happy winter!

联系我们 contact @ memedata.com