{"title":"Finding Out Why Your Mac Is Hot While It's Idle","html_url":"https://deallocatedobjects.com/posts/finding-out-why-your-mac-is-hot-while-its-idle","source_url":"","markdown_content":"A Mac that's warm with nothing open is running something you can't see. Apple's advice in [Keep your Mac laptop within acceptable operating temperatures](https://support.apple.com/en-us/102336) is where I start:\n\n> If your Mac laptop gets warm even when it isn't doing tasks that require intensive calculations, or if it has fans that run for a long time, use Activity Monitor to check CPU activity.\n\nThis is the order I check things in, from the app everyone has to the tools in Terminal. If `kernel_task` is the one at the top of the list, that's its own story, and I wrote it up in [What kernel_task Is Doing When It's Using Your CPU](/posts/what-kernel-task-is-doing-when-its-using-your-cpu).\n\n### Activity Monitor's CPU And Energy Tabs\n\nThe CPU tab, sorted by % CPU, is the quickest answer. The bottom of the window splits the total into System (processes that belong to macOS), User (apps you opened and the processes they started) and Idle, per [Apple's guide](https://support.apple.com/guide/activity-monitor/view-cpu-activity-actmntr43452/mac). On an idle Mac, a big System number points at one of the daemons further down this post.\n\nThe Energy tab has two columns I use for heat. [Apple describes](https://support.apple.com/guide/activity-monitor/view-energy-consumption-actmntr43697/mac) Energy Impact as \"a relative measure of the current energy consumption of the app (lower is better)\", and on laptops there's also 12 hr Power, the average over the last 12 hours. Preventing Sleep says whether an app is keeping the Mac from sleeping, which matters because a Mac that should be asleep and isn't has the whole night to warm up.\n\n### top And ps\n\nIn Terminal, `top -o cpu` is the live version of the CPU tab. For a snapshot I can paste somewhere, I use logging mode with two samples, because the man page warns that \"the first sample displayed will have an invalid %CPU\":\n\n```bash\n$ top -l 2 -s 2 -o cpu -n 8 -stats pid,command,cpu,user\n...\nPID    COMMAND       %CPU USER\n784    WindowServer  58.1 _windowserver\n1164   iTerm2        53.6 jakemarsh\n0      kernel_task   24.7 root\n1636   superwhisper  12.9 jakemarsh\n2668   2.1.330       10.0 jakemarsh\n98106  2.1.330       9.8  jakemarsh\n71258  node          9.5  jakemarsh\n1283   WeatherWidget 8.1  jakemarsh\n```\n\nMy Mac wasn't idle when I ran this. Several agent sessions were working in the terminal, which is why iTerm2 and those `2.1.330` processes are up there.\n\n`ps` is quicker and doesn't need a sample window:\n\n```bash\n$ ps -Ao pid,pcpu,comm -r | head -6\n  PID  %CPU COMM\n  784  53.3 /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer\n 1164  51.0 /Applications/iTerm.app/Contents/MacOS/iTerm2\n 1636  14.2 /Applications/superwhisper.app/Contents/MacOS/superwhisper\n18304  12.2 (python3.11)\n98106  11.4 claude\n```\n\n`-A` includes other users' processes, which you want, since most of the background daemons run as system users. `-r` sorts by current CPU usage. Two things to know about it. The `%cpu` column is \"a decaying average over up to a minute of previous (real) time\", so a process that just stopped can still show up. And `ps` never lists `kernel_task`: it starts at PID 1, so `top` is the one to use when you suspect the kernel.\n\n### Who's Keeping It Awake\n\nThe quickest answer is one line of plain `pmset -g`. When something is holding the Mac awake, the `sleep` line names it:\n\n```bash\n$ pmset -g | grep '^ sleep'\n sleep                0 (sleep prevented by coreaudiod, caffeinate, xcodebuild, caffeinate, caffeinate, caffeinate, sharingd, caffeinate, caffeinate, caffeinate, caffeinate, caffeinate, backupd-helper, caffeinate, powerd)\n```\n\nThe `0` is my own setting. The man page says 0 disables the system sleep timer, and `pmset -g custom` shows I have it that way on AC power. The list in parentheses is what would keep the Mac awake anyway: audio, a build, a Time Machine helper and a lot of `caffeinate`.\n\n`pmset -g assertions` is the Terminal version of the Preventing Sleep column, with more detail. The man page says it \"displays a summary of power assertions. Assertions may prevent system sleep or display sleep.\" The top half is a count per assertion type, and the bottom half lists them by owning process. Here's part of mine:\n\n```bash\n$ pmset -g assertions\nAssertion status system-wide:\n   BackgroundTask                 0\n   ...\n   PreventUserIdleSystemSleep     1\n   NetworkClientActive            0\nListed by owning process:\n   pid 1376(mds_stores): [0x00007aa4000ba5d6] 00:13:51 BackgroundTask named: \"com.apple.metadata.mds_stores.power\"\n   pid 85690(caffeinate): [0x00007d3e0001a6de] 00:02:44 PreventUserIdleSystemSleep named: \"caffeinate command-line tool\"\n\tDetails: caffeinate asserting for 300 secs\n\tLocalized=THE CAFFEINATE TOOL IS PREVENTING SLEEP.\n\tTimeout will fire in 135 secs Action=TimeoutActionRelease\n   pid 741(mds): [0x00001468000b8b7f] 07:30:02 BackgroundTask named: \"com.apple.metadata.mds.power\"\n   pid 727(powerd): [0x0000063c0001800a] 08:30:29 PreventUserIdleSystemSleep named: \"Powerd - Prevent sleep while display is on\"\n```\n\nThe time after each address is how long the assertion has been held. Spotlight's `mds` had held one for seven and a half hours. There were ten `caffeinate` processes in the full list, and every one I checked had a `claude` process as its parent: my agent sessions run `caffeinate -i -t 300`, which per its man page creates \"an assertion to prevent the system from idle sleeping\" that's dropped after 300 seconds. That's what I want while they work, and it also means this Mac can't idle sleep while they're running.\n\nTo see assertions come and go over time, `pmset -g assertionslog` \"shows a log of assertion creations and releases.\"\n\nTwo more `pmset` commands answer \"did something wake it up?\" `pmset -g sched` \"displays scheduled startup/wake and shutdown/sleep events,\" and on my Mac it prints nothing, which is what you want to see. `pmset -g custom` shows `womp`, which the man page calls \"Same as 'Wake for network access' in System Settings.\" Mine is 1 on AC power and 0 on battery.\n\n### Catching It While You're Away\n\nThe hard version of this problem is a Mac that's warm when you come back to it, with nothing busy by the time you look. For that I leave a loop running that logs the three busiest processes every minute:\n\n```bash title=\"cpu-log.sh\"\n#!/usr/bin/env bash\n# Every minute, log the three busiest processes with a timestamp.\nwhile true; do\n  ps -Ao pcpu,comm -r | sed -n '2,4p' | while read -r cpu cmd; do\n    echo \"$(date '+%H:%M') $cpu ${cmd##*/}\"\n  done\n  sleep \"${INTERVAL:-60}\"\ndone\n```\n\nRun it with `./cpu-log.sh >> ~/cpu.log` before you walk away. `${cmd##*/}` trims the path so each line is just the name. Two samples from my Mac, 5 seconds apart:\n\n```text\n23:52 60.2 java\n23:52 45.7 iTerm2\n23:52 42.6 git\n23:53 96.0 next-server (v16.4.6)\n23:53 52.1 WindowServer\n23:53 49.4 node\n```\n\nIn the morning, this counts how often each process made the top three, which points at the culprit even if it ran for twenty minutes at 3am:\n\n```bash\ncut -d' ' -f3- ~/cpu.log | sort | uniq -c | sort -rn | head\n```\n\nRemember the `%cpu` column is a decaying average, so a short spike shows up smaller and lasts longer than it really did. For counting who keeps showing up, that's fine.\n\n### powermetrics\n\n`powermetrics` is the most detailed of these, and it needs root. Without `sudo` it stops right away with \"powermetrics must be invoked as the superuser\". The man page describes it as gathering CPU usage, timer and interrupt wakeups, C-state statistics and CPU frequency, and on supported platforms estimated power for the CPU, GPU and Neural Engine. It also warns that those power numbers \"are estimated and may be inaccurate\", so use them to compare one moment on your Mac with another, never one Mac with another.\n\nYou pick what it reports with `-s`. `powermetrics -h` lists the samplers on this Mac:\n\n```text\n    tasks             per task cpu usage and wakeup stats\n    battery           battery and backlight info\n    network           network usage info\n    disk              disk usage info\n    interrupts        interrupt distribution\n    cpu_power         cpu power and frequency info\n    thermal           thermal pressure notifications\n    sfi               selective forced idle information\n    gpu_power         gpu power and frequency info\n    ane_power         dedicated rail ane power and frequency info\n```\n\nThe default set is everything except `thermal` and `sfi`. For an idle-heat hunt, the useful flags are `-n` (number of samples), `-i` (sample interval in ms, default 5000) and `--show-process-energy`, which adds a per-process energy impact number that the man page calls \"a rough proxy for the total energy the process uses, including CPU, GPU, disk io and networking.\" Put together:\n\n```bash\nsudo powermetrics -n 1 -i 5000 -s tasks,thermal --show-process-energy\n```\n\nI haven't run that one here, since it needs `sudo`. The `thermal` sampler's value is instantaneous, taken at the end of the sample window, so a long interval won't average it.\n\n### The Usual Idle Culprits\n\nThese are the background processes I see most often at the top of the list on a Mac nobody's touching. Every description is from the process's own man page.\n\n- **`mds`, `mds_stores` and `mdworker`**: Spotlight. `mds` is \"the metadata server\", and `mdworker` is \"used by mds to scan and index files as a volume is mounted or a file changes.\" Apple's [Spotlight article](https://support.apple.com/en-us/102321) says indexing runs after a software update or upgrade and \"can take hours or even days,\" and finishes faster when the Mac isn't in use and is plugged in. On my Mac `mds_stores` runs as `_mds_stores` and one `mdworker` as `_spotlight`.\n- **`photoanalysisd`**: \"background processing of photo libraries for Memories, People and scene or object based search.\"\n- **`backupd`**: \"the Time Machine backup daemon\", running as root.\n- **`cloudd` and `bird`**: iCloud. `cloudd` backs CloudKit and `bird` is \"one of the system daemons backing the Documents in the Cloud feature.\" When my disk kept filling up, `cloudd` was writing about 1.1 GB a minute putting evicted files back, which I tracked down in [Finding Which Process Is Filling Your Mac's Disk](/posts/finding-which-process-is-filling-your-macs-disk).\n- **`softwareupdated`**: \"the main daemon responsible for running software updates.\" It runs as `_softwareupdate`.\n\nAll of these finish on their own. If it's Spotlight or Photos after an update, I leave the Mac awake and plugged in overnight and check again in the morning. If it's an app that keeps coming back at login, Apple's [Login Items & Extensions settings](https://support.apple.com/guide/mac-help/change-login-items-extensions-settings-mtusr003/mac) is where you turn it off.\n\n### Keeping An Eye On It\n\nI keep [Multimeter](https://multimeterapp.com/?ref=deallocated-post) in my menu bar with CPU and thermal pressure meters, so I see the jump when a background job starts instead of finding out from the fan. It shows the totals. To get the process name, I still open Activity Monitor or run the `top` command above.\n\nIf none of these show anything and the Mac still runs warm with the fans going, Apple's next step is to close and open the lid or restart, and on an Intel Mac to reset the SMC.","html_content":"<p>A Mac that’s warm with nothing open is running something you can’t see. Apple’s advice in <a href=\"https://support.apple.com/en-us/102336\">Keep your Mac laptop within acceptable operating temperatures</a> is where I start:</p>\n<blockquote>\n<p>If your Mac laptop gets warm even when it isn’t doing tasks that require intensive calculations, or if it has fans that run for a long time, use Activity Monitor to check CPU activity.</p>\n</blockquote>\n<p>This is the order I check things in, from the app everyone has to the tools in Terminal. If <code>kernel_task</code> is the one at the top of the list, that’s its own story, and I wrote it up in <a href=\"https://deallocatedobjects.com/posts/what-kernel-task-is-doing-when-its-using-your-cpu\">What kernel_task Is Doing When It’s Using Your CPU</a>.</p>\n<h2 id=\"activity-monitors-cpu-and-energy-tabs\" data-level=\"3\">Activity Monitor’s CPU And Energy Tabs</h2>\n<p>The CPU tab, sorted by % CPU, is the quickest answer. The bottom of the window splits the total into System (processes that belong to macOS), User (apps you opened and the processes they started) and Idle, per <a href=\"https://support.apple.com/guide/activity-monitor/view-cpu-activity-actmntr43452/mac\">Apple’s guide</a>. On an idle Mac, a big System number points at one of the daemons further down this post.</p>\n<p>The Energy tab has two columns I use for heat. <a href=\"https://support.apple.com/guide/activity-monitor/view-energy-consumption-actmntr43697/mac\">Apple describes</a> Energy Impact as “a relative measure of the current energy consumption of the app (lower is better)”, and on laptops there’s also 12 hr Power, the average over the last 12 hours. Preventing Sleep says whether an app is keeping the Mac from sleeping, which matters because a Mac that should be asleep and isn’t has the whole night to warm up.</p>\n<h2 id=\"top-and-ps\" data-level=\"3\">top And ps</h2>\n<p>In Terminal, <code>top -o cpu</code> is the live version of the CPU tab. For a snapshot I can paste somewhere, I use logging mode with two samples, because the man page warns that “the first sample displayed will have an invalid %CPU”:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">$</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> top</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -l</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 2</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -s</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 2</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -o</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> cpu</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -n</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 8</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -stats</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> pid,command,cpu,user</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">...</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">PID</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">    COMMAND</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">       %CPU</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> USER</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">784</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">    WindowServer</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  58.1</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> _windowserver</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">1164</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">   iTerm2</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">        53.6</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> jakemarsh</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">0</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">      kernel_task</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">   24.7</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> root</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">1636</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">   superwhisper</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  12.9</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> jakemarsh</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">2668</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">   2.1.330</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">       10.0</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> jakemarsh</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">98106</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  2.1.330</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">       9.8</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">  jakemarsh</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">71258</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">  node</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">          9.5</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">  jakemarsh</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">1283</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">   WeatherWidget</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 8.1</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">  jakemarsh</span></span></code></pre></figure><p>My Mac wasn’t idle when I ran this. Several agent sessions were working in the terminal, which is why iTerm2 and those <code>2.1.330</code> processes are up there.</p>\n<p><code>ps</code> is quicker and doesn’t need a sample window:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">$</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> ps</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -Ao</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> pid,pcpu,comm</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -r</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> head</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -6</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">  PID</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">  %CPU</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> COMM</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">  784</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  53.3</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> 1164</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  51.0</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> /Applications/iTerm.app/Contents/MacOS/iTerm2</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> 1636</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  14.2</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> /Applications/superwhisper.app/Contents/MacOS/superwhisper</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">18304</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  12.2</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (python3.11)</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">98106</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  11.4</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> claude</span></span></code></pre></figure><p><code>-A</code> includes other users’ processes, which you want, since most of the background daemons run as system users. <code>-r</code> sorts by current CPU usage. Two things to know about it. The <code>%cpu</code> column is “a decaying average over up to a minute of previous (real) time”, so a process that just stopped can still show up. And <code>ps</code> never lists <code>kernel_task</code>: it starts at PID 1, so <code>top</code> is the one to use when you suspect the kernel.</p>\n<h2 id=\"whos-keeping-it-awake\" data-level=\"3\">Who’s Keeping It Awake</h2>\n<p>The quickest answer is one line of plain <code>pmset -g</code>. When something is holding the Mac awake, the <code>sleep</code> line names it:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">$</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> pmset</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -g</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> grep</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> '^ sleep'</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> sleep</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">                0</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (sleep </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">prevented</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> by</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> coreaudiod,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> xcodebuild,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> sharingd,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> backupd-helper,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate,</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> powerd</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)</span></span></code></pre></figure><p>The <code>0</code> is my own setting. The man page says 0 disables the system sleep timer, and <code>pmset -g custom</code> shows I have it that way on AC power. The list in parentheses is what would keep the Mac awake anyway: audio, a build, a Time Machine helper and a lot of <code>caffeinate</code>.</p>\n<p><code>pmset -g assertions</code> is the Terminal version of the Preventing Sleep column, with more detail. The man page says it “displays a summary of power assertions. Assertions may prevent system sleep or display sleep.” The top half is a count per assertion type, and the bottom half lists them by owning process. Here’s part of mine:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">$</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> pmset</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -g</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> assertions</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">Assertion</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> status</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> system-wide:</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   BackgroundTask</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">                 0</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">   ...</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   PreventUserIdleSystemSleep</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">     1</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   NetworkClientActive</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">            0</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">Listed</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> by</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> owning</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> process:</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   pid</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 1376</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mds_stores</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">:</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> [0x00007aa4000ba5d6] 00:13:51 BackgroundTask named: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"com.apple.metadata.mds_stores.power\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   pid</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 85690</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">caffeinate</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">:</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> [0x00007d3e0001a6de] 00:02:44 PreventUserIdleSystemSleep named: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"caffeinate command-line tool\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">\tDetails:</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> caffeinate</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> asserting</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> for</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 300</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> secs</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">\tLocalized</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">THE</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> CAFFEINATE</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> TOOL</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> IS</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> PREVENTING</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> SLEEP.</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">\tTimeout</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> will</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> fire</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> in</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 135</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> secs</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> Action=TimeoutActionRelease</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   pid</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 741</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mds</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">:</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> [0x00001468000b8b7f] 07:30:02 BackgroundTask named: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"com.apple.metadata.mds.power\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">   pid</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 727</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">powerd</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">:</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> [0x0000063c0001800a] 08:30:29 PreventUserIdleSystemSleep named: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"Powerd - Prevent sleep while display is on\"</span></span></code></pre></figure><p>The time after each address is how long the assertion has been held. Spotlight’s <code>mds</code> had held one for seven and a half hours. There were ten <code>caffeinate</code> processes in the full list, and every one I checked had a <code>claude</code> process as its parent: my agent sessions run <code>caffeinate -i -t 300</code>, which per its man page creates “an assertion to prevent the system from idle sleeping” that’s dropped after 300 seconds. That’s what I want while they work, and it also means this Mac can’t idle sleep while they’re running.</p>\n<p>To see assertions come and go over time, <code>pmset -g assertionslog</code> “shows a log of assertion creations and releases.”</p>\n<p>Two more <code>pmset</code> commands answer “did something wake it up?” <code>pmset -g sched</code> “displays scheduled startup/wake and shutdown/sleep events,” and on my Mac it prints nothing, which is what you want to see. <code>pmset -g custom</code> shows <code>womp</code>, which the man page calls “Same as ‘Wake for network access’ in System Settings.” Mine is 1 on AC power and 0 on battery.</p>\n<h2 id=\"catching-it-while-youre-away\" data-level=\"3\">Catching It While You’re Away</h2>\n<p>The hard version of this problem is a Mac that’s warm when you come back to it, with nothing busy by the time you look. For that I leave a loop running that logs the three busiest processes every minute:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"file\">cpu-log.sh</span><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6A737D;--shiki-dark:#6A737D\">#!/usr/bin/env bash</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6A737D;--shiki-dark:#6A737D\"># Every minute, log the three busiest processes with a timestamp.</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">while</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> true</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">; </span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">do</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">  ps</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -Ao</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> pcpu,comm</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -r</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> sed</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -n</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> '2,4p'</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> while</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> read</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -r</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> cpu</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> cmd</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">; </span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">do</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">    echo</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"$(</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">date</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> '+%H:%M') </span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">$cpu</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> ${</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">cmd</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">##*/</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">}\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  done</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">  sleep</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"${</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">INTERVAL</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:-</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">60</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">}\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">done</span></span></code></pre></figure><p>Run it with <code>./cpu-log.sh &gt;&gt; ~/cpu.log</code> before you walk away. <code>${cmd##*/}</code> trims the path so each line is just the name. Two samples from my Mac, 5 seconds apart:</p>\n<figure class=\"code\" data-lang=\"text\"><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>23:52 60.2 java</span></span>\n<span class=\"line\"><span>23:52 45.7 iTerm2</span></span>\n<span class=\"line\"><span>23:52 42.6 git</span></span>\n<span class=\"line\"><span>23:53 96.0 next-server (v16.4.6)</span></span>\n<span class=\"line\"><span>23:53 52.1 WindowServer</span></span>\n<span class=\"line\"><span>23:53 49.4 node</span></span></code></pre></figure><p>In the morning, this counts how often each process made the top three, which points at the culprit even if it ran for twenty minutes at 3am:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">cut</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -d</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">' '</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -f3-</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> ~/cpu.log</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> sort</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> uniq</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -c</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> sort</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -rn</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> |</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> head</span></span></code></pre></figure><p>Remember the <code>%cpu</code> column is a decaying average, so a short spike shows up smaller and lasts longer than it really did. For counting who keeps showing up, that’s fine.</p>\n<h2 id=\"powermetrics\" data-level=\"3\">powermetrics</h2>\n<p><code>powermetrics</code> is the most detailed of these, and it needs root. Without <code>sudo</code> it stops right away with “powermetrics must be invoked as the superuser”. The man page describes it as gathering CPU usage, timer and interrupt wakeups, C-state statistics and CPU frequency, and on supported platforms estimated power for the CPU, GPU and Neural Engine. It also warns that those power numbers “are estimated and may be inaccurate”, so use them to compare one moment on your Mac with another, never one Mac with another.</p>\n<p>You pick what it reports with <code>-s</code>. <code>powermetrics -h</code> lists the samplers on this Mac:</p>\n<figure class=\"code\" data-lang=\"text\"><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>    tasks             per task cpu usage and wakeup stats</span></span>\n<span class=\"line\"><span>    battery           battery and backlight info</span></span>\n<span class=\"line\"><span>    network           network usage info</span></span>\n<span class=\"line\"><span>    disk              disk usage info</span></span>\n<span class=\"line\"><span>    interrupts        interrupt distribution</span></span>\n<span class=\"line\"><span>    cpu_power         cpu power and frequency info</span></span>\n<span class=\"line\"><span>    thermal           thermal pressure notifications</span></span>\n<span class=\"line\"><span>    sfi               selective forced idle information</span></span>\n<span class=\"line\"><span>    gpu_power         gpu power and frequency info</span></span>\n<span class=\"line\"><span>    ane_power         dedicated rail ane power and frequency info</span></span></code></pre></figure><p>The default set is everything except <code>thermal</code> and <code>sfi</code>. For an idle-heat hunt, the useful flags are <code>-n</code> (number of samples), <code>-i</code> (sample interval in ms, default 5000) and <code>--show-process-energy</code>, which adds a per-process energy impact number that the man page calls “a rough proxy for the total energy the process uses, including CPU, GPU, disk io and networking.” Put together:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> powermetrics</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -n</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 1</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -i</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 5000</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> -s</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> tasks,thermal</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> --show-process-energy</span></span></code></pre></figure><p>I haven’t run that one here, since it needs <code>sudo</code>. The <code>thermal</code> sampler’s value is instantaneous, taken at the end of the sample window, so a long interval won’t average it.</p>\n<h2 id=\"the-usual-idle-culprits\" data-level=\"3\">The Usual Idle Culprits</h2>\n<p>These are the background processes I see most often at the top of the list on a Mac nobody’s touching. Every description is from the process’s own man page.</p>\n<ul>\n<li><strong><code>mds</code>, <code>mds_stores</code> and <code>mdworker</code></strong>: Spotlight. <code>mds</code> is “the metadata server”, and <code>mdworker</code> is “used by mds to scan and index files as a volume is mounted or a file changes.” Apple’s <a href=\"https://support.apple.com/en-us/102321\">Spotlight article</a> says indexing runs after a software update or upgrade and “can take hours or even days,” and finishes faster when the Mac isn’t in use and is plugged in. On my Mac <code>mds_stores</code> runs as <code>_mds_stores</code> and one <code>mdworker</code> as <code>_spotlight</code>.</li>\n<li><strong><code>photoanalysisd</code></strong>: “background processing of photo libraries for Memories, People and scene or object based search.”</li>\n<li><strong><code>backupd</code></strong>: “the Time Machine backup daemon”, running as root.</li>\n<li><strong><code>cloudd</code> and <code>bird</code></strong>: iCloud. <code>cloudd</code> backs CloudKit and <code>bird</code> is “one of the system daemons backing the Documents in the Cloud feature.” When my disk kept filling up, <code>cloudd</code> was writing about 1.1 GB a minute putting evicted files back, which I tracked down in <a href=\"https://deallocatedobjects.com/posts/finding-which-process-is-filling-your-macs-disk\">Finding Which Process Is Filling Your Mac’s Disk</a>.</li>\n<li><strong><code>softwareupdated</code></strong>: “the main daemon responsible for running software updates.” It runs as <code>_softwareupdate</code>.</li>\n</ul>\n<p>All of these finish on their own. If it’s Spotlight or Photos after an update, I leave the Mac awake and plugged in overnight and check again in the morning. If it’s an app that keeps coming back at login, Apple’s <a href=\"https://support.apple.com/guide/mac-help/change-login-items-extensions-settings-mtusr003/mac\">Login Items &amp; Extensions settings</a> is where you turn it off.</p>\n<h2 id=\"keeping-an-eye-on-it\" data-level=\"3\">Keeping An Eye On It</h2>\n<p>I keep <a href=\"https://multimeterapp.com/?ref=deallocated-post\">Multimeter</a> in my menu bar with CPU and thermal pressure meters, so I see the jump when a background job starts instead of finding out from the fan. It shows the totals. To get the process name, I still open Activity Monitor or run the <code>top</code> command above.</p>\n<p>If none of these show anything and the Mac still runs warm with the fans going, Apple’s next step is to close and open the lid or restart, and on an Intel Mac to reset the SMC.</p>","created_at":"2026-12-02T14:00:00.000Z","updated_at":"2026-12-02T14:00:00.000Z"}