Blog

15 Nov
2020

kernel_task is throttling the CPU

Disable macOS 11 (Big Sur) 'kernel_task' which is throttling the CPU


WARNING ALERT: This ONLY relates to someone who has deleted the IOPlatformPluginFamily.kext in previous versions of macOS to sort the kernel_task overloading the CPU but now after installing macOS 11 (Big Sur) the problem has started again. You will be deleting a system extension and taking a risk... so you have been WARNED! + also best to use version 11.1 upwards, since when testing with 11.0.1 I found it very buggy!

So here is the problem...

After booting up the MacBook Pro the macOS would be running unbelievably slow. When opening the Activity Monitor to see what was happening with the CPU the thing at the top of the list was the kernel_task using around 500%!

'kernal_task_macOS_fix'

In any of the previous versions - macOS 10.14 (Mojave) or below it was a fairly easy fix by first running recovery mode CMD + R and in the terminal.

csrutil disable

Then running single user mode CMD + S.

fsck -fy

mount -uw /

sudo mkdir /IOPlatformPluginFamily-backup-kexts/

sudo mv /System/Library/Extensions/IOPlatformPluginFamily.kext /IOPlatformPluginFamily-backup-kexts/

sudo rm -rf /System/Library/Extensions/IOPlatformPluginFamily.kext

But from macOS 10.15 (Catalina) onwards this has stopped working. The reason being that Apple introduced the read-only system volume which is a dedicated partition for only storing system content which prevents any tampering with system files which one of them is the troublesome IOPlatformPluginFamily.kext.

Now before finding the solution below which relates to macOS 11 (Big Sur) I had tried making a bootable USB running macOS 10.14 (Mojave) but this couldn't read the read-only system volume.

Step 1 - Disable FileVault

Go to System Preferences -> Security & Privacy and choose the FileVault tab. Then select Turn Off FileVault.

Step 2 - Bypassing the Signed System Volume (SSV*)

SSV helps prevent tampering with any Apple software that is part of the operating system. Additionally, it makes macOS Software Update more reliable and much safer. SSV utilizes APFS snapshots, so if an update cannot be performed, the old system version can be restored without reinstallation.

So this means that macOS Big Sur actually no longer boots from the live system volume but now boots from a snapshot/copy of the same system folder. Normally it's impossible to mount a snapshot as writable, only readable so here is the solution I have found.

So at first bootup in Recovery Mode using CMD + R. On the screen that loads go to the navigation and choose Utilities -> Terminal. Input the following.

NOTE: Without this being done first you won't have permissions to carry out the next csrutil authenticated-root disable command.

csrutil disable

Then.

reboot

Straight away bootup in Recovery Mode again using CMD + R and choose Utilities -> Terminal. Input the following.

csrutil authenticated-root disable

Then.

reboot

Step 3 - Mount the Live Volume and backup the IOPlatformPluginFamily.kext file

Now reboot back into the normal macOS boot mode and let us mount the live volume - the disk1s5 could be different.

diskutil mount disk1s5

Next make it writable which will require you to enter your password - the /Volumes/Macintosh\ HD\ 1 could be different.

sudo mount -uw /Volumes/Macintosh\ HD\ 1

Password:

Now let's first see that the offending IOPlatformPluginFamily.kext file exists by entering.

ls -a /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/

Rather than deleting the file we will do a backup - so use the below and move it to a newly created folder.

sudo mkdir /Volumes/Macintosh\ HD\ 1/IOPlatformPluginFamily-backup-kexts/

sudo mv /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/IOPlatformPluginFamily.kext /Volumes/Macintosh\ HD\ 1/IOPlatformPluginFamily-backup-kexts/

Again see if it has disappeared from the directory.

ls -a /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/

Step 4 - Create snapshot and tag it for the next default reboot.

Now we have deleted the file we need to add this new version of the system folder as a snapshot so enter the following.

sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -s "SnapshotName" -v /Volumes/Macintosh\ HD\ 1

Then tag this as a our default for the next reboot.

sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -r "SnapshotName" -v /Volumes/Macintosh\ HD\ 1

Now fingers crossed you should be able to reboot and the kernel_task should no longer be hogging the CPU as before and in return slowing your machine down.

Posted in: < Mac OS X >
me@grafxflow avatar

me@grafxflow


I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!

Visitors also viewed these posts

28 Thoughts

  1. 16 Nov
    2020

    avatar

    John

    You shouldn't do the `csrutil authenticated-root enable` again as it will re-enable the verification/tampering on the SSV. This will result it not booting from your new snapshot but using the old one.

    Correct me if I'm wrong though :)
  2. 16 Nov
    2020

    avatar

    me@grafxflow

    Thanks for the update John.

    I was unaware of this, but yes it seems to be the case.

    I have updated the content :)
  3. 16 Nov
    2020

    avatar

    Florian

    Thank you for the nice description. Unfortunately its not working for me. The Operation is not permitted.

    sudo mv /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/IOPlatformPluginFamily.kext /Volumes/Macintosh\ HD\ 1/IOPlatformPluginFamily-backup-kexts/
    mv: rename /Volumes/Macintosh HD 1/System/Library/Extensions/IOPlatformPluginFamily.kext to /Volumes/Macintosh HD 1/IOPlatformPluginFamily-backup-kexts/IOPlatformPluginFamily.kext: Operation not permitted

    What have I done wrong?
  4. 17 Nov
    2020

    avatar

    me@grafxflow

    Hi Florian,

    Have you tried the?

    sudo mount -uw /Volumes/Macintosh\ HD\ 1

    If not try the Recovery Mode using CMD + R and input.

    csrutil disable
  5. 18 Nov
    2020

    avatar

    John

    There's one downside I'm experiencing, after disabling authenticated-root boot times of my macbook have increased with 5 minuntes.
    The loading bar crawls to the center as usual, stops for 4-5 minutes and then continues as usual. Once in macOS everything is fast and well, shutdown takes ages too.

    Anyone with similar problems?
  6. 19 Nov
    2020

    avatar

    me@grafxflow

    Hi John,

    Yes I am noticing this to. It seems to hold 50% on the loading bar for a few minutes when starting up. Plus the fans are on full blast. Maybe see what happens with the next macOS update.

    I also might need to look inside the laptop and see if cleaning it with some compressed air spray will sort the problem.

    regards
    Paul
  7. 19 Nov
    2020

    avatar

    Vi

    Hi! I updated my macbook air and the kernel task is just taking up all the cpu. I tried to do this but filevault is preventing it. I tried disabling it but it just isnt decrypting. Any idea what I could do?
  8. 19 Nov
    2020

    avatar

    me@grafxflow.co.uk

    Hi Vi,

    Try the following:

    Go to System Preferences -> Security & Privacy.

    Then select the FileVault tab and Turn Off FileVault.

    Then one thing that is missing from the tutorial (Need to update it)

    Bootup in Recovery Mode using CMD + R then enter

    'csrutil disable'

    'reboot'

    Then start from 'Step 1 - Bypassing the Signed System Volume (SSV*)'
  9. 20 Nov
    2020

    avatar

    John

    Hi Paul, I have reinstalled Big Sur and redit my patch (new snapshot and all) and now the boottimes are back to normal.
    So if you're stuck at that, try recovery console - reinstall big sur et voilla :D
  10. 20 Nov
    2020

    avatar

    me@grafxflow

    Hi John,

    So just to confirm you suggest installing the macOS from Recovery Mode rather than the desktop?

    And do you mean a reinstall or fresh install wiping the hard drive?
  11. 01 Dec
    2020

    avatar

    TheMalfunctioningSMC

    Have you figured out how to fix the boot time?
  12. 01 Dec
    2020

    avatar

    me@grafxflow

    Hi TheMalfunctioningSMC,

    Sadly not. I am beginning to think it maybe the actual macOS so will wait until there is an update.
  13. 02 Dec
    2020

    avatar

    TheMalfunctioningSMC

    Hi grafxflow,

    I followed all of your steps and it went through perfectly fine. Thanks for saving the day! Btw did you try John's suggestion of reinstalling Big Sur and "patching" the kexts again? What if macOS 15.2 releases, is it advisable to upgrade or will it break our patch? Does Activity Monitor itself take a high CPU % when open? Do you suggest any fan RPM app? I want to set it at 3500RPM

    Sorry to bother you with so many questions. Thanks again!!
  14. 02 Dec
    2020

    avatar

    me@grafxflow

    Hi TheMalfunctioningSMC,

    1. I did try what John suggested but it still gave me the slow startup.

    2. From my experience it mainly relates to new versions of macOS where this needs to be done again.

    3. Activity Monitor itself should not cause any problems with the CPU usage.

    4. You can use a fan app but still keep an eye on the temperatures.
  15. 08 Dec
    2020

    avatar

    TEO

    Hi, congrats for your impirtant guide. I'm experiencing throttling eating all of my CPU and fans spinning at max rpm due to faulty flat cable from MoBo to trackpad. I want to temporarily disable it because i have to use the MBP for work. Cannot even mount "sudo mount -uw /Volumes/MBPTeo 1 cause after typing password is outputting: unknown special file or file system. I did all of the previous steps, i'm with big sur 11.0.1 mbp 15" mid 2015
    Thanks
  16. 08 Dec
    2020

    avatar

    TEO

    EDIT:
    I solved by simply spacing .../MBPteo\ 1/... In this way. Now after having done as described in the guide (csrutil disable and csrutil root disable) still says "operation not permitted" trying now to perform those cmds again. I'll keep you up to date.
  17. 08 Dec
    2020

    avatar

    me@grafxflow

    Great TEO,

    I will update the tutorial if required :)
  18. 08 Dec
    2020

    avatar

    TEO

    Well. After struggling about three hours in the vane attempt of removing the damn IOPlatformPlugin....kext, it finally seem no longer to be in the Extensions folder. I list all of the Extensions folder content and no IOPlatform....kext is listed. As soon as the OS reboots after reboot (turn off, then tur on by pressing the button) the damn kext file is listed as no cancelings were made. What the?! I'm going to call it Bug Sur from now on.
  19. 20 Dec
    2020

    avatar

    Anie

    Hi, Thanks for your detailed solution. I currently run a 2013 MBP and have overheating issues. I recently upgrade to Big Sur. But I haven't deleted the IOPlatformPluginFamily.kext in previous versions of macOS. Do you have a solution/link where I cant start working from before I get to this part?
  20. 20 Dec
    2020

    avatar

    me@grafxflow

    Hi Anie,

    It maybe an option to look at some youtube videos on cleaning the inside of your laptop. Using something like compressed air to clean the filters might help.
  21. 22 Dec
    2020

    avatar

    TEO

    Well, I found the solution for disabling thermal throttling related cpu underclock.
    There is an IC near the SMC chip, which is responsabile of PROCHOT and THRMTRIP security temperature management. This is dangerous so make sure to properly manage the temperatures via Istats and mac fan control.
  22. 24 Dec
    2020

    avatar

    Alex

    Hello grafxflow,
    (Sorry, that's the only name I could find on the website :) )
    Just wanted to say a HUGE thank you for this article!
    I was struggling with lags ond freezes for the last several months, and despite of many trials and exhausting searches on the web. I'm so glad that you published this article, thank you so much!

    Merry Christmas, and the best wishes to you and your family!
    Happy Holidays!
  23. 15 Jan
    2021

    avatar

    Blake

    hi i am trying to do this task and every time i do the sudo mount part it tells me "unkown special file or file systems" and idk what that means? you said that the /Volumes/Macintosh\ HD\ 1 may be different? what does that mean?
  24. 15 Jan
    2021

    avatar

    Blake

    hi just recently posted, i got past the sudo mount part, but when i type in 1s -a......... it tells me that 1s isnt a found command? is it not 1s? need help.
  25. 15 Jan
    2021

    avatar

    Asrael

    Hi I can't do it new systemsnapshot, Is writing

    open: Resource busy
    open failed on /dev/disk1s5

    please tell me more about the command for apfs_systemsnapshot
  26. 17 Jan
    2021

    avatar

    Blake

    Hey again, so a little update. I got it all to work, and i went to reset nvram and it all went to hell. I had to reset back to yosemite and spent a full day trying to reinstall big sur. But i finally got. It all loaded back up and am now trying this guide again, and it keeps telling me during the sudo mkdir part that the backup-kexts file is read only, and then the snapshot fails to create operation denied. I alrady did all the csrutil disable. Need help lol
  27. 23 Jan
    2021

    avatar

    Ipunchcorndogs

    When I try to do step 4 it says
    sudo: /system/library/filesystems/apfs.fs/contents/resources/apfs_systemsnapshot: command not found
  28. 23 Jan
    2021

    avatar

    me@grafxflow

    Hi Ipunchcorndogs,

    I think there is a typo. Try the following instead.

    sudo /system/library/filesystems/apfs.fs/contents/resources/apfs_systemsnapshot

Add comment

Add comment