0

After a sudden power cut, my Macbook Pro became so slow and laggy with high CPU load.

enter image description here

The CPU load is very high on startup and whenever I open an app. Even a small app like Notes also causes more than 100% CPU load.

I have checked the fan, repaired the disk, reset VRAM, reset SMC... but the issue still persists.

Any ideas? Before the sudden power cut accident, my Macbook Pro run pretty fast.

5
  • You can try a Safe Boot (push shift key at boot) then reboot normally.
    – user415185
    Commented Nov 20, 2021 at 6:05
  • Which Mac Pro is that? From what we can see in the image, you have about 200% CPU - or two cores - yet the overall figure at the bottom shows 71% overall usage. That would suggest it's only perhaps a 2-core Mac [+ HT]. I don't know of a 2-core Mac Pro, even the early ones were 4-core.
    – Tetsujin
    Commented Nov 20, 2021 at 9:15
  • @Tetsujin Yes, it's an old model from 2011 with 2 cores. But it's still fast before the accident
    – Minh Tri
    Commented Nov 20, 2021 at 11:12
  • Then I'd guess you mean a Macbook Pro, not a Mac Pro.
    – Tetsujin
    Commented Nov 20, 2021 at 12:17
  • @Tetsujin Yep, I don't know much about Apple's products. haha
    – Minh Tri
    Commented Nov 21, 2021 at 4:10

1 Answer 1

2

After trying everything you've tried above, and after checking whether a Safe Boot resolves the issue, as Jean_JD suggests, the next level of diagnosis when trying to narrow down the cause of performance issues is to capture a spindump during the slow period. This will allow us to get a sense of where CPU time is being spent. To do this:

  1. Run the following Terminal command to enable kernel symbolication:

     sudo nvram boot-args="keepsyms=1"
    

    Make sure to copy-paste this so that you're entering straight quotes rather than curly/“smart” quotes. (If you get a permission error, you will first need to disable System Integrity Protection. You can re-enable it after you're done with this investigation.)

  2. Reboot your machine and don’t open any apps except for Terminal.

  3. In Terminal, enter the following command, press Return, type in your password, but do not press Return again yet:

     sudo spindump -reveal -noProcessingWhileSampling
    
  4. Perform an operation that you know will be abnormally slow.

  5. As soon as you begin to feel the slowness, go to the Terminal window where you entered your password and press Return so that the command begins to execute. Do not do anything else on the computer while it's running, otherwise you will distort the data collection.

  6. After waiting for >10 seconds to collect a sample and another minute or two to symbolicate and format, you’ll get a file in /tmp/spindump.txt that contains a stackshot of every process.

  7. Upload the file to PasteBin or some equivalent place and add the link to it to your original question. We can take a look at it and come up with next steps for the investigation.

3
  • Thanks for your response! Safe Boot doesn't help. I got this error when running the command on the step 1: nvram: Error setting variable - 'boot-args': (iokit/common) general error
    – Minh Tri
    Commented Nov 20, 2021 at 11:19
  • @janevu As I mentioned, you will need to disable SIP.
    – pion
    Commented Nov 20, 2021 at 11:33
  • Somehow, right after I disabled SIP, everything run smoothly again. Just now, I enabled SIP again and all good. Thank you!
    – Minh Tri
    Commented Nov 21, 2021 at 4:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .