Continued corespotlightd process CPU overload issues

I am wondering if anyone has discovered any new ideas for stopping the corespotlightd process from hogging the CPU. According to Activity Monitor, the corespotlightd process often occupies more than 100% of the CPU load, sometimes spiking as high as 400% on my M2 Ultra Mac Studio. This problem has become so severe that it often pinwheels under normally non-intensive tasks. It can cause the video to flicker on my Studio Display. In one case it caused my Mac to kernel panic (crash).


I encountered this bug only after installing Sequoia 15.2, but having researched this issue extensively, I find that Mac users have identified it since at least macOS Ventura. So here are some solutions we don't need to hear again:


Reindexing Spotlight by adding and removing volumes in Spotlight Privacy. This provides relief only temporarily. Within hours the process is again grinding the Mac to a halt.


Killing the corespotlightd in Activity Monitor. Again, this is at best only a temporary solution as the process will reinstate itself.


A "clean" install of macOS. First of all, no such process really exists. The OS recovery process simply reinstalls a new copy of the System files. Nobody reports this as a fix. An internal drive wipe and reformat, and restore from Time Machine is also unlikely to help, as it simply returns your Mac to its previous state. If the corespotlightd problem results from a corrupted file, the problem will likely simply be recreated in your reinstall. "Nuke and pave" might solve the problem if it caused by a format or directory issue on your startup volume. This does not seem to be the case, but if anyone has permanently cured the problem by this method, please report it.


What we do need to hear is from anyone who has spent time with Apple Support on this issue and been provided with solutions that actually work, or has new ideas about what causes it. Feels like we're on our own here, since Apple seems to be stumped.



Posted on Dec 19, 2024 11:21 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Feb 9, 2025 10:26 AM

After the better part of another day thinking about and troubleshooting this issue, I am convinced that Eric Murphy's earlier hypothesis is correct. There's a bug in Sequoia, which anyone can replicate by following these 2 steps:

  1. Open a Pages file (and keep it open).
  2. Watch the size of this folder balloon: ~/Library/Metadata/Corespotlight


The larger that folder gets, the more likely it is that the corespotlightd process will start taking over the CPU and causing slowdowns for the Mac user. The corespotlightd process is what gets most people's attention, but it's only a symptom of the underlying problem whereby the spotlight processes (mdworker, etc.) write enormous amounts of data into the corespotlight subfolders.


The bigger the Pages file the quicker the folder grows in size; the more frequently one uses Pages, or leaves Pages files open, the worse the problem.


There is no fix until apple implements one, and the only viable workaround is to monitor the size of that folder and occasionally delete it.


One silver lining: it's not clear to me that there is any need to delete your spotlight index, to turn indexing off and on, etc. The problem stems from the size of that metadata folder, and you can alleviate the problem by deleting the folder. In my experience (having deleted the folder many dozen times), spotlight works just fine without rebooting, reindexing, or anything else.


I came up with my own way of dealing with this issue: I wrote a simple shell script that trashes the corespotlightfolder; then I added that as a service in launchd so that it can run regularly (maybe every 2 days).

195 replies
Sort By: 

Feb 10, 2025 9:10 AM in response to Mitch Stone

Alongside the spotlight issues, has anyone else been having problems with Pages itself falling over?


I have a few quite complex documents and have been finding two things have increased in parallel: all the beachballs/spotlight issues AND Pages falling over and reporting to Apple.


From my perspective, Pages seems to fail when, after making an edit which might itself be trivial, I scroll. Pages disappears, then I get the windows asking if I want the report to go to Apple (and I always do allow that), and if I want to let Pages restart.


Time after time, Pages only loses the tiniest bit of editing. (Hats off to Apple on that score.) But it takes an annoying time to be able to get back to editing the document again.


I'm adding in to this thread because my perception is that both issues have worsened which makes me wonder if they are intertwined?


Given the vast number of automatic reports from me alone, I'd have hoped Apple would notice and fix the Pages issue. And, if it is related, maybe fix the spotlight issue by so doing. Or vice versa.


I also want to appreciate the efforts put in to get the spotlight issue resolved.

Reply

Feb 10, 2025 11:43 AM in response to Mitch Stone

Has anyone else noticed that upon restarting the Mac, without ever opening Pages, the disk reads and writes are barely anything at all, but after opening and closing Pages, it will continue to read and write varying low amounts of data at very random and frequent intervals? And seemingly in a very unpredictable fashion compared to if Pages was open? My Mac has been restarted for hours and the disk had so little activity going on. The graph was quite flat. Now after opening Pages and closing it entirely after just a couple of seconds, it won't stop writing very low amounts and reading random amounts of data. I've noticed this for days but today really seals it for me that I'm not imagining it. Once the bug is triggered it cannot truly be eliminated unless you restart.

Reply

Feb 10, 2025 11:51 AM in response to sugarskyline

If there's anything we can say about different users' reports of their experiences with this bug, it's that it manifests very differently on different users' computers. But the one common thread appears to be the problem is most severe when you've got a Pages file open (and it doesn't seem to matter how large that file is or even if it's being edited).


That said, I have observed oddities like today, where I've had a 15 MB Pages file open for three hours that I've been actively editing, and have seen metadata increase from about 11 GB (after I'd deleted all Spotlight metadata last night) to 13 GB, but over the weekend had a single 145 kB Pages file open with no edits being made to it, which apparently took Spotlight metadata from 63 GB to over 120 GB.


I suspect that the larger these metadata files are, the faster they grow in absolute terms. It's almost like compound interest. 10 GB of metadata might increase by 20% a day, but 60 GB might increase by more like 50% or more a day.

Reply

Feb 10, 2025 12:24 PM in response to ericmurphysf

That's what worries me about this problem. With the manifestation of it being so diverse and unpredictable despite the commonalities, it could make diagnosing and solving the issue much more complicated for Apple compared to standard bugs. Ironically, when Apple Support was asking me to provide a screenshot, that was the very first time since I bought this Mac that Pages behaved. I had to wait several minutes to get it to trigger again. Very bizarre.


Is it accurate to say though that everyone here was having a good time before Sequoia 15.2?

Reply

Feb 10, 2025 12:41 PM in response to ericmurphysf

Have tried deleting part of metadata - the contents of NSFFileProtectionCompleteUntilFirstAuthentication and Priority.


Since then, used Pages without obvious problems. And I purposely did lots and lots of edits all over. The Metadata did grow a bit - but then shrank when I closed Pages.


On my MBP, same folders are also larger than I would have expected (a bit over 20GB each of the above). But I've had hardly any issues on the MBP - had loads on the M4 mini.


But when I looked inside I found a very large number of files named journalAttr.<number>_toc.


And that just might correspond to my Pages issues. The documents which have always seemed to be the most sensitive to issues have significant and dense Tables of Contents.


I will keep looking.


I know I was on this thread some time ago then dropped it. Afraid personal issues got in the way of trying to get it resolved.

Reply

Feb 10, 2025 12:44 PM in response to sugarskyline

I had been having problems before my upgrade to Sequoia. I am a heavy pages user with large docs. I began experiencing lag about a year before upgrading. As noted by another poster, the lag and freeze was most noticeable if I had made many edits, and was scrolling through the doc *without* hitting save. I was able to reduce the problems if I saved every minute or so while working.


Once I upgraded, the problems increased to pretty much any time I have a pages doc open - whether I've edited it recently or not, and no matter how little or big the file is. I've tried every solution listed here - most multiple times - they all work for a bit - sometimes for a longer, sometimes for shorter time period.


REALLY hoping they get this fixed soon - I use pages all the time, both while working with clients and as I'm preparing a manual for publication.

Reply

Feb 10, 2025 1:04 PM in response to PolyRod

PolyRod wrote:

And that just might correspond to my Pages issues. The documents which have always seemed to be the most sensitive to issues have significant and dense Tables of Contents.

Interesting about the Table of Contents in Pages files. I keep a daily journal which by the end of the year can run to well over a thousand pages (I'm long-winded to put it mildly). These journals have 13 ToCs: the main one with entries for each month, and then each month has a section ToC entry for each day in the month.


This issue became particularly severe towards the middle of December of last year when my Pages journal file was over a thousand pages long and had something like 350 ToC entries. The problem persisted even after I stopped editing, or even opening, this journal file and started a new one for the new year. But I think what happens is once the metadata gets to a certain size (maybe 100 GB or more), the problem starts to snowball, with increasingly large amounts of metadata being saved and corespotlightd spiking as it tries to trudge through hundreds of gigabytes of metadata.


I've had very good luck with just deleting all this metadata and letting Spotlight rebuild it. It doesn't cure the problem permanently, but so long as I don't let these folders get too large, my systems are gratifyingly free of the stalls, system crashes, and even Time Machine issues I'd been having previously.

Reply

Feb 10, 2025 1:09 PM in response to Bets

Bets wrote:

@sugarskyline. Yes, I'm pretty sure I didn't have this problem with Pages and spotlight before Sequoia. It's completely out of control on 15.3.

I think it's safe to say macOS 15.3.1 will not address this issue. According to one poster Apple's engineers have been aware of this issue since February 8 (two days ago), which is odd because I've been complaining about it since at least January 20.

Reply

Feb 10, 2025 11:17 PM in response to PolyRod

I also relocated the contents of the folders named “NSFFileProtectionCompleteUntilFirstAuthentication” and “Priority,” deleting files from the original folders.


After restarting I did not open Pages for a couple of hours, on checking the above folders, they had not changed in size since restarting.


I opened two documents within Pages and within 30 minutes the directories had doubled in size.  


I closed Pages and have just checked the directories again. After 12 hours, their sizes have not increased.


As somebody previously mentioned, the “store.db” file in both directories is exhibiting rapid growth but as to why, I don’t know

Reply

Feb 12, 2025 6:24 AM in response to AshkaTheMoltenFury

Thank you!! My Mac mini M1 16GB/512GB had started really lagging and I couldn't figure it out at all. A bit of googling and I found this post. The pesky corespotlight has gone from using 130%+ of my CPU, down to 0%. You are my hero. I'd never heard of that as a thing I should do, but will keep on top of it going forward. Mac now running like a dream again!

Reply

Feb 12, 2025 9:30 AM in response to AshkaTheMoltenFury

If this indeed works, I'd imagine deleting only the com.apple.Spotlight folder from the cache folder would be a more targeted approach. Has anyone tried this? Mine is only 9.5 MB, which would seem to not be large enough to cause issues. My entire cache folder is a much more modest 736 MB.


AshkaTheMoltenFury wrote:

Hi everyone. I also encountered this issue that corespotlightd was slugging down my M1 MBP 16GB (2021) so immensely that my system had a freeze for around 5-8 seconds every minute or so.

Reading that according to your findings it might be related to large Pages files it got my attention because I'm currently working on my Thesis and use Zotero with lots of indexing and caching. I assumed this might be the limit of this machine but that thought was strange because I worked on so much more taxing tasks and it just performed good enough that the operating system was still performant enough. My Thesis file currently only has half a MB (currently mainly text) so that can't be the issue I thought.

After working for days like this (it really gets frustrating) I decided to invest some time in troubleshooting again. Before that I tried to reindex Spotlight (through System Settings and Terminal) or cleared up some space but nothing did the trick. Also not even turning off Apple Intelligence which I thought could be the culprit made a difference. Until I stumbled upon some thread somewhere which just generally stated that deleting the Cache Folder in Library (Finder>Go>Go To Folder>~/Library/Caches) might help or not but it's generally not a bad idea to clean it out from time to time. Well I didn't do that for like 4 years! Which actually speaks for the rigidity of macOS.

I went to that folder and it had a size about 50GB and literally right after deleting it the freezes and the high CPU usage of corespotlightd went away. I now waited several hours to see if it was just something temporary but it seems like this was indeed the solution.

And I forgot to mention: I upgraded from 15.2 to 15.3 several days ago and it seems like something in the Cache became corrupted or faulty (be it system files or app files) and caused corespotlightd to go rampant.

So in short: give the cleanup of the ~/Library/Caches folder a try. It might help and solve this high CPU usage of corespotlightd. Hope this helps anyone.



Reply

Feb 12, 2025 9:57 AM in response to RThomas

This is an interesting observation. Shared Pages documents are always autosaved, so this might explain why we're experiencing greater issues with shared documents. I wonder if it might be helpful to turn off autosave. This requires flipping on the switch "ask to keep changes when closing documents" in Desktop & Dock Settings, which is off by default.


RThomas wrote:

I had been having problems before my upgrade to Sequoia. I am a heavy pages user with large docs. I began experiencing lag about a year before upgrading. As noted by another poster, the lag and freeze was most noticeable if I had made many edits, and was scrolling through the doc *without* hitting save. I was able to reduce the problems if I saved every minute or so while working.

Once I upgraded, the problems increased to pretty much any time I have a pages doc open - whether I've edited it recently or not, and no matter how little or big the file is. I've tried every solution listed here - most multiple times - they all work for a bit - sometimes for a longer, sometimes for shorter time period.

REALLY hoping they get this fixed soon - I use pages all the time, both while working with clients and as I'm preparing a manual for publication.


Reply

Feb 25, 2025 11:31 AM in response to Mitch Stone

Just to increment the anecdata.


I have this problem, new MBA (M3), 1TB drive, 16GB rams.


In frustration, I both rage quit pages and deleted metadata/corespotlight folder. Problem went away. I had half dozen pages files open, all <3MB, nothing but text. I launched pages with one file, 6000 word outline. Everything awesome for about 14 hours. Then corespotlight up and running nonstop for like 4-5 hours. Rage-quit pages again. A flurry of activity, then cpu died down, corespotlightd not in the top 20 in activity monitor.


Sent feedback via assistant to Apple, reported here. Problem does seem pages related, which is sad, because I was growing very familiar with and fond of pages over Word. Apple! Please Fix!


rage-quit means right clicking dock icon->quit while cursing loudly.

Reply

Feb 26, 2025 7:47 AM in response to Zenith

Zenith wrote:

Next stop on the troubleshooting train: exclude ~/Library/Metadata from spotlight. Why would we need spotlight to index that anyway for routine operation?

I think you're right about what is causing Spotlight metadata to balloon (and have been discussing the matter with Apple support for over a month; currently I'm waiting for a response from engineering).


That said, I tried your troubleshooting step noted above, with negative results: Spotlight metadata continued to grow, and much more quickly if Pages is running with a document open. The only "fix" for this issue I've found to work so far is to regularly delete Spotlight metadata out of the ~/library folder. I'm a pretty heavy user of Pages, so I have to do this about every ten days, by which time metadata has usually exceeded 60 GB.

Reply

Continued corespotlightd process CPU overload issues

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