You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Kernel_task frequently spikes CPU load while using Safari

MacBook Pro

13-inch, 2017, Four Thunderbolt 3 Ports

Processor 3.1 GHz Dual-Core Intel Core i5

Graphics Intel Iris Plus Graphics 650 1536 MB

Memory 8 GB 2133 MHz LPDDR3

Startup disk Macintosh HD

macOS Ventura 13.6.9


I don't use my MacBook for much other than doing my work--no gaming or video editing--The main apps I use for work are Pages, Numbers, Safari, Discord, Messages, Finder, and occassionally I'll listen to music on Spotify (desktop app). Sometime ago I started having issues with kernel_task stealling all my CPU cylces. When it does the computer basically becomes inoperable. Mouse and keyboard input drag to a crawl and eventually grind to a halt. Webpages refuse to load. Pretty much anything that requires even a very modest amount of CPU power slow or stops functioning unless I restarted the computer.


That started 3 years ago. It was actually around the time Apple transitioned away from Intel, so 2021, and i have an armchair theory about that, but I'll save that for a minute.


As time went on I just dealt with the problem by restarting the MacBook and goign about my business. I tried to pay attention to when it usually happened but didn't, and stil don't frankly, have time to track down a cause. However, in the three years that followed, I'm 99.9% certain that it is related to Safari. The only time kenel_task kicks in is when I have Safari open. If I quit Safari (sometimes have to force quit if KT has been going for too long and can't even get enough cycles for apps to close on their own) kenel_task immediately starts dropping to normal levels. It usually takes about 30-45 seconds for CPU usage to return to normal.


As far as the what and why of KT ramping up with Safari, I can't say. It usually takes a while of usage before KT starts being a problem. The more tabs i have going the faster it reaches a problem point, but it seems more dependant on how lonf Safari has been running as opposed to tabs. That is to say, while I'm working with 7-8 tabs open, I'll have to shutdown Safari after about an hour or more. But if I have only one tab open and leave the computer in sleep mode over night, kernel-task is running full bore when I wake it up. Again, quitting Safari resolves the problem.


Now my armchair theory--and this is just based on the timing--is that after Apple switched silicon, it began optimizing macOS for the M-series because, hey, screw Intel machines. As time has gone on engineers stopped caring how macOS ran on Intel chips pretty much altogether so to heck with it. Not say this was intentional, just that hey you got brand new silicon that you want to A) work efficiently with your software for the sake of the customer, but B) doesn't that just look good from a marketing standpoint? We can brag about how much better our chips run over Intel AND legacy users heve even more of a reason to upgrade to the M-series because everything runns better on it. Just a lame-brain guess, so take it for what it's worth.


As to the reason for my post, I'm not really looking for answers to the problem. I mean I know what is causing the problem and I know how to work around it. It does cause some grief when doing certain work, but I'm well overdue from a new MacBook and will probably get one soon. That said, if anybody has a fix, I'm open. The main reason I posted this information was because in the early days of the problem I found little help here or anywhere else. Nobody had any solid answers, just wild guesses. I get it.Unless you are sitting right infront of the system this type of stuff is hard to nail down. But in more recent searches I have just found more of the same. Specically searching for a link between kernel_task and Safari reveals just more well-intentioned but unhelpful advice.


Now I can't offer any better to anyone else and I'm sure that everyone's situation is unique. But I hope that by posting this othewrs can see it and go, "Hey, I didn't think to look at and play with that idea to see if that's the problem." At the very least, it should provide a temporary workaround for others that have the same issue as me. As far as Apple fixing this, I say, don't hold your breath. Apple has fully moved on from Intel Macs so if your Intell machine doesn't play nice with the M-series optimizations, too bad for you--buy a new Mac.


If you think I'm totally off my ***. Feel free to tell me so. It's no skin off my nose, but I'd prefer some positive ideas and possible solutions.

MacBook Pro 13″, macOS 13.6

Posted on Nov 1, 2024 7:14 AM

Reply
4 replies

Nov 1, 2024 10:09 AM in response to STiBoy

I really can't address the Intel vs. silicon comment as, although I have Macs with both of these CPU types, none of them are having this issue.


Not sure how much you know about the kernel_task process, but one of its main functions is to control your Mac's CPU temperature. That is a "runaway" kernel_task is more of a symptom, and not an actually cause.


Based on your post, it looks like you narrowed that down to the Safari app. However, this condition can be caused by a number of other factors, including:

  • a failed or disconnected temperature sensor
  • cooling system inefficiency (an inoperative exhaust fan on Macs so equipped, possibly clogged with dust, including the heat sink)
  • a worn out, missing, or non-Apple (user-installed) battery on portable Macs
  • similar hardware-specific causes including internal hardware additions or modifications, external USB and other connected devices, or the driver software required to use them.


You may find the following links helpful:

Nov 1, 2024 10:57 AM in response to STiBoy

Have you installed and run any "cleaning", "optimizing", "speed-up", anti-virus or VPN apps on your Mac?


Please download and run Etrecheck.  The free version is sufficient.


Copy the report as shown in this animated screenshot



and use the Additional Text button to paste the report in your reply.



Then we can examine the report and see if we can get an idea of what might be causing causing the problem.




Reply

Nov 2, 2024 4:32 AM in response to STiBoy

In addition to the great answers that you have already: the problem occurring with Safari only leads me to think that you may have a bad Safari extension. Maybe the problem started after some OS update, or after you installed some Safari extension.


I'd have a look at your existing Safari extensions (Safari->Settings->Extensions), and maybe start by disabling them all. If the problem goes away, you might gradually add them back, and see if and when it reappears. Or maybe you installed some extension that you just don't need, so leave it off.


Of course, if it is the case that you don't use Safari extensions, disregard all of the above. FWIW, I don't have any myself.

Kernel_task frequently spikes CPU load while using Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.