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.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

spotlightknowledged | High CPU Use (15 times) - Is there a remedy?

Has anyone have a remedy for this recurrent High CPU?


Mac mini

Posted on Sep 18, 2024 3:34 AM

Reply
2 replies

Sep 18, 2024 8:47 AM in response to FabianoRoggio

Spotlight can take sometime to complete indexing after a software upgrade or update.


One option is to leave the Mac on and do not shutdown or sleep until Spotlight has finished indexing.

Another option is to rebuild spotlight indexing as per > Rebuild the Spotlight index on your Mac - Apple Support


One other thing to check for, is to see if spotlight is also indexing your external Samsung SSD.

If it is, then temporally add the Samsung SSD to the Prevent list and only allow the internal drive to index.

Then once the internal drive finishes indexing, remove the external drive from the list and allow it to index if desired.

Sep 18, 2024 9:15 AM in response to FabianoRoggio

In Disk Utility>View, select Show all Devices, highlight the top left entry.


Run Disk First Aid on all items in the left panel, from top down.


You can use Drive DX to possibly get a better view of Drive health…

https://binaryfruit.com/drivedx


Most complete fix for Spotlight...


How to rebuild the Spotlight index on your Mac

If searching your Mac doesn’t return expected results, rebuilding the Spotlight index might help.


  1. Choose Apple menu () > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the Add (+) button and select the folder or disk to add.
  4. To add an item to the Privacy tab, you must have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”
  5. From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the list.
  6. Quit System Preferences. Spotlight will reindex the contents of the folder or disk.


If still not working...


If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


If still need be…


Open Terminal and run each of these one at a time


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo will ask you for an Admin password that won't be echoed.

Carefully type your admin password when asked & hit enter.


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.

spotlightknowledged | High CPU Use (15 times) - Is there a remedy?

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