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 6, 2025 3:00 PM

luzggg wrote:

Currently trying this out to fix that bug myself, and I have absolutely no idea what I'm doing. So I just want to make extra sure I got what you're saying. Now when you said deleting the metadata out of Corespotlight and SpotlightKnowledgeEvents, can I just delete everything inside those folders? Not working with Terminal here. Or keep the folders inside intact and just delete the lists and whatever is in there? Thanks!

When I spoke to Apple Support last week, the advisor suggested I delete the contents of the two folders (the entire contents, files and any subfolders; you don't need to go through each subfolder and laboriously delete its contents individually), but not the folders themselves. You don't need to do this from Terminal; you can just trash the files/subfolders from the Finder the way you would normally do it (just make sure you're in the User library, not the System library, which you can make visible on the "Go" menu in the Finder by holding down the Option key).


Other users have said they've been successful deleting the entire folders, contents and all, without ill effects. But having removed the folder contents themselves without deleting the actual folders, I've obtained satisfactory results all three times I've done it, on two different systems (twice on one of them).


Also note that the folder structure in the ~/library/metadata/ folder differs from Intel systems compared to Apple Silicon systems. On Intel systems, the CoreSpotlight/ folder and the SpotlightKnowledgeEvents/ folder are both at the root of the Metadata/ folder. On Apple Silicon systems, the SpotlightKnowledgeEvents/ folder is inside the CoreSpotlight folder. I have yet to try this fix on an Apple Silicon system since it hasn't been necessary for me, but it sounds like you can delete the entire contents of the CoreSpotlight/ folder without any problems.

348 replies

Feb 9, 2025 4:19 PM in response to fronesis47

I don't think we know how large this folder is supposed to be, and I can attest to the fact that no process is taking over the CPU with the folder containing this much data. FWIW, I left the large Pages file open for several hours with no change in the amount of data being stored or any processes running amok, at least that I was able to witness. My issues with this process hogging the CPU seem ridiculously random. When I started this discussion, my Mac became essentially unusable within 5-10 minutes after one large Pages file was opened. Same file now, not nearly as much of a problem. All I have attempted as mitigation is trashing the spotlight plist.


fronesis47 wrote:


Mitch Stone wrote:


Earlier in this discussion it was established that iCloud is not the culprit. Files that will trigger the problem will do so whether they are stored locally or in iCloud. I meant corespotlightd because this the process I see as being hyperactive when the CPU is overloaded. Either way I have had this large Pages file open for over an hour now and the file has not grown at all. Unfortunately all of the theories we've come up with so far are incomplete or flawed. They only seem to work for some users some of the time.
I realize iCloud is not the cause per se (because the problem has been reproduced with Pages files that are not on iCloud Drive). I'm curious about exploring the possibility that the problem is worse without the optimize function on. It seems to me that with my two machines, there's just much slower growth of the folder on the machine with optimize on.

I'll also add: I'm not sure your case completely disproves the general thesis. 60Gb is a really large metadata file. It's already at the point that corespotlightd is taking over the CPU. So by this point it doesn't really matter that the folder has stopped (or significantly) slowed its growth; it's already a problem. And I guess I have to assume that the folder got that big for the same reasons as everyone else. If you could delete your folder, and then open a pages file and have the folder not grow – that would be a totally different data point.

Now that I've been deleting my metadata folder (as an experiment) I have absolutely zero issues with corespotlightd. If the corespotlight folder is smaller than 10Gb I find I never have any slowdowns at all.


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.

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.

Feb 26, 2025 4:22 PM in response to SBML

I am beginning to like this theory a lot. I am currently working with a Finder-duplicated version of the large Pages document that previously caused CoreSpotlightd process issues. I've left it open most of the day, editing it only lightly. During this time, I've seen the process ramp up a few times, but never go nuts and take over the CPU as it did before -- and before long, it always settles down. So rather than deleting the metadata, it seems the quicker and less disruptive solution is duplicating a Pages files that is causing CPU overloads and working with the copy. In my case I have not deleted the original, so this part of the exercise seems to be unnecessary.


SBML wrote:

That's enlightening. If you duplicate the Pages doc and delete the original then you lose the versioning options. Does that reduce the metadata?


Feb 28, 2025 9:29 AM in response to Mitch Stone

Mitch Stone wrote:


The inconsistency of this problem from day to day and Mac to Mac is crazy. I am presently not experiencing it on my M2 Ultra Studio. I never experienced it on my M1 MBA, even when opening the same Pages file on it as on the Studio. All this said, I am not convinced that preference files are not implicated, because the OS writes to some them, including the spotlight plist file. I suppose if this bug was a simple one Apple would have fixed it already.

The most bizarre thing that has happened to me so far in this whole misadventure was that before I determined that it was permissible to delete CoreSpotlight metadata without e.g. ending up with an un-bootable system, I was contending with multiple Time Machine issues, kernel panics, temporary system lockups (especially during video playback), and corespotlightd pinning the CPUs on my M1 Ultra Mac Studio (pinning the CPUs on a system like that is no easy task). Okay, that's what many people on this thread have reported. But here's where it gets weird:


I have never deleted Spotlight metadata on this system. That metadata has never exceeded about 40 GB, which in my months-long experience is not generally enough to precipitate these kinds of issues, at least, not on any of the Macs I own. But, after I deleted enormous quantities (> 500 GB) of Spotlight metadata on two other Macs (my iMac Pro and my 27-inch iMac), the problems I was experiencing on my Mac Studio literally disappeared, never (or at least not yet, a month later) to reappear.


I cannot account for why this would be, other than that all three systems (and my MBP) are all on the same iCloud account, and all four have iCloud sync turned on for, among other things, Pages.


Is this just a lucky coincidence? I'm leaning in that direction. But the timing is certainly suggestive of, well…something.

Apr 28, 2025 6:04 AM in response to ericmurphysf

ericmurphysf wrote:
If anything 15.4 seems to have worsened the problem of extremely rapid buildup of Spotlight metadata.

Me too. My metadata folder had stayed between 2 and 10 Gb for months. With 15.4.1 I'm over 30Gb.


The next experiment will be to quit Pages for a while and see if metadata comes down in size.

Also bad news here, for me. Prior to 15.4 the folder would shrink quickly after I closed all Pages files. Now it's stubbornly stuck about 30Gb.

May 13, 2025 2:43 PM in response to Mitch Stone

Mitch Stone wrote:

No evidence points to iCloud being implicated in this issue in any way whatsoever. Certain large Pages documents that have been extensively edited appear to be the most common trigger of this issue, and it is not dependent on them being stored locally or in the cloud.

From what I can tell, what triggers rapid accumulation of Spotlight data specifically with large Pages documents is the way macOS automatically does versioning of such documents. That versioning is not due to sync via iCloud; it's simply the design decision of allowing the user to revert to any prior version of the doc, or indeed copying data from earlier versions to the current version if e.g. you accidentally deleted a paragraph or section of a document.


My hypothesis (so far not confirmed by Apple) is that the rapid growth of Spotlight metadata is an artifact of the various daemons doing Spotlight indexing (md_worker, etc.) reindexing the entire document, rather than just newly-edited sections. This happens whether or not you have iCloud sync turned on.

Nov 19, 2025 1:24 PM in response to Mitch Stone

I am using an M4 iMac. I've been posting about these problems for some time in this and other threads. I wanted to update what I've already posted.


I am still seeing all the documented issues with corespotlight folder sizes increasing and regularly delete folders in ~/Library/Metadata/CoreSpotlight/ when they exceed 4 GB in Tahoe. This solves the issues.


Curiously, I left for a long appointment this morning with these folders as large as 14 GB but didn't have time to delete them as usual. When I returned several hours later, the folder sizes had dropped back to around 1 GB.


I primarily use Pages and first saw the issues in Pages. Lately I have been viewing large mp4 movie files with QuickTime from a webcam I leave on at night for security. I record with OBS Studio on an Intel 21.5 iMac I upgraded to an SSD from the Fusion Drive. I saw the corespotlight folders increase on the M4 iMac after watching the movies for just over an hour for night time movement, at a speed of 10X and occasionally stopping to make screenshot movie captures of nighttime activity.


I sometimes notice Safari running slowly and large folders are always the culprit. Again the issue is resolved by deleting large folders.


My M1 MBA is using Tahoe and has no problems.


I am hoping to add to the information already known about this problem.





Dec 29, 2024 12:02 PM in response to PolyRod

Very similar to my experience.


Timing-wise, it corresponds with the release of the Apple Intelligence software (that's when I started noticing some odd behaviour). I temporarily have disabled Apple Intelligence to see if it catches up and settles down with it disabled (I'm not overly optimistic about that). At the moment I'm watching corespotlightd running up to a peak of 152% CPU, and then going gradually to a low of 18%.


Like yourself, Apple Intelligence I have an M1 MBP that is behaving just fine (but Apple Intelligence is disabled on that machine because apparently it's not available with "English - Canada" selected as a language).


About 2 weeks ago, before I did a re-install of MacOS, I ran Disk Utility from within Recovery, and it spewed a ton of index count errors - don't remember the specific text, but they were all the same, and all clearly some kind of "off-by-one" counting error.


It is marginally possible that I have a failing SSD in the machine, but that seems unlikely.

Jan 28, 2025 3:37 AM in response to Mitch Stone

Firstly, thank you deeply to the person that made this thread and came to the realization about Pages. I was going crazy trying to research corespotlightd and having nothing work. Secondly, is this likely to be fixed with Sequoia 15.3? Finally, while I don't have much to add other than confirmations of what's already been said, I have noticed that corespotlightd will inevitably start to bug after a while no matter how small the document is. It simply takes longer. If I open my big document of hundreds of pages, it's immediately. But I've also had open files that are just 2 pages, and while everything remained calm for a while, after about 30 minutes it's back to acting up again, despite iCloud for Pages and Apple Intelligence being deactivated.


Also, before disabling any iCloud app sync I didn't need, I was also having major issues with several iCloud daemons (technically still am, just to a much lesser extent). This whole thing feels like an Apple Intelligence related screw up, where (for whatever reason) the system is wrongfully tasked with a process it cannot complete, or, it is unable to recognize the task has already been completed. I don't mean this as in Apple Intelligence the service itself, I mean regarding whatever software changes they made to the OS outside of Apple Intelligence in order to accommodate for it (if that makes sense).


I upgraded just a week ago from a base model M1 MacBook Air to an M4 Pro Macbook Pro and on that Air I didn't get to update to 15.2 because I was having issues getting the update to download properly, but I'm grateful, cause I never had any issues on that device related to Pages or iCloud. This M4 Pro came with 15.2 already installed, and I believe I had to update my iWork apps for the current version (which I regret). Whenever Pages is opened the fans will inevitably kick in (CPU increase), the battery drain is as severe as if I was using DaVinci Resolve, and the disk will write over 80mb every 10 or so seconds. Whenever I force quit corespotlightd it simply restarts extremely aggressively, writing over 100mb every second. At its absolute worst, before I found this thread and tried the remedies, I had lost over 60GB of storage space in just a couple hours (labeled as System Data). The disk write per 8-10 seconds was in the low hundreds.


Last thing worth noting, when I tried logging into my Apple ID during the initial setup for my M4 Pro (with Sequoia 15.2 already installed), I would get the rainbow wheel about 10 seconds after doing so. I would reach the screen for setting up the system and profile name, and then I'd get hit with the rainbow. This happened to me twice in a row before I decided to just skip logging into my Apple ID upon setup, and when I did that, the device setup went perfectly fine. Not sure if this is related, but considering all the iCloud issues I figured it's worth noting.

Feb 6, 2025 3:01 PM in response to fronesis47

In a word, yes. I have two Macs (an M2 Ultra Studio and an M1 MBA), and neither was migrated from a previous Mac. Of these only the Studio exhibits this problem. I'm not sure what you mean by without migrated data, though. My files and apps were manually migrated on the Studio.


Some of the theories for the origin of this issue are interesting but probably have to be treated as theories. As I've mentioned in previous posts, since the last time I deleted the spotlight plist, I have not been afflicted by this issue. It's been a couple of weeks now.



fronesis47 wrote:

But I really wonder if anyone out there can replicate this problem on a brand new Mac without any migrated data???


Feb 9, 2025 11:11 AM in response to fronesis47

As an experiment, I left Pages running over the weekend on my work computer which was otherwise idle all weekend. The only Pages file open was a single document that's all of 145 kB. Nevertheless, the Spotlight metadata folders on this system have exploded since Friday evening, going from 63 GB to 123 GB. Otherwise the system seems to be running normally, with the CPUs at about 85% idle and corespotlightd nowhere to be seen in Activity Monitor (it's using about 3% CPU).


Nevertheless, having learned my lesson, the first thing I'll be doing when I get in to work tomorrow is simply deleting the metadata folders. I've done this three times before with no ill effects, it's completely resolved the Spotlight and Time Machine issues I've been having, and until Apple resolves this issues (assuming they ever do), it's a quick, easy, and relatively painless solution. Having to delete a couple of folders every few weeks doesn't seem that onerous, even if I have to do it indefinitely.

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.

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.