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 Jan 31, 2025 8:44 AM

Okay, I have a new hypothesis as to what's going on here with corespotlightd. This process is one of at least four that are responsible for macOS's Spotlight functionality. The three others are mds, mdworker, and md_stores. I cribbed the following descriptions of these three processes from the HowToGeek website:


The two processes [mds and mdworker] are part of Spotlight, the macOS search tool. The first, mds, stands for metadata server. This process manages the index used to give you quick search results. The second, mdworker, stands for metadata server worker. This does the hard work of actually indexing your files to make that quick searching possible.


And for md_stores, from the TechNewsToday site:


Mds_stores is the core indexing process of the macOS. On normal days, it usually takes up a noticeable [sic, probably should be un-noticeable] amount of CPU. However, when you reinstall your OS or add new files/directories, your system will automatically start to reindex these new databases, which sees the mds_stores CPU usage skyrocket.


The macOS Spotlight feature makes use of two processes for indexing the system database; mds and mds_stores. The mds (Metadata Server) process is responsible for tracking and recording files and folders in your operating system. md_stores then compiles and manages these mds metadata, which Spotlight later uses for searching certain documents within your OS.


So it may be that corespotlightd is in fact an unwitting victim of other processes' having gone awry. On my two Intel systems, by three months after installing macOS 15.0, metadata associated with Spotlight located at ~/library/metadata had reached half a terabyte on both systems. It sounds like this data was actually written out by either mdworker, mds_stores, or both. And then, corespotlightd has to wade through these gigabytes upon gigabytes of metadata to actually produce search results, and as that task gets harder and harder with more and more metadata being produced, eventually Spotlight search results (which includes search and smart folders through Mail) degrade to the point of uselessness.


While I haven't managed to halt the rapid growth of metadata on these two Intel systems (Apple Silicon Macs still have the issue but to a much milder degree), simply deleting the metadata out of the ~/library/metadata/Corespotlight and ~/library/metadata/SpotlightKnowledgeEvents (while leaving the folders themselves intact) resulted in a near-immediate improvement in three areas: greatly reduced use of storage space; vastly improved search results; and much lower processor utilization by corespotlightd.


As noted, this metadata still continues to pile up (especially if I have a large (>5 MB) Pages file open). But if I have to empty out these two folders once every few weeks until Apple resolves the issue, that's not the end of the world).


328 replies

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.

Feb 22, 2025 2:41 PM in response to ericmurphysf

I have iMac 27" intel. I delete System Data related to Library>Metadata>"CoreSpotlight" and "Spotlight KnowledgeEvents" EVERY NIGHT (and delete from Trash, too), or I hit the 50GB threshold that affects pace of storage accumulation and performance significantly. Thanks to this Group for this bandage to keep operational.

My tech knowledge is maxed out at starting my lawnmower. Amazed that I found this group. Apple Support let me down badly. At year end, I began to get pop-ups about "Your system has run out of application memory." Apple support baffled. Ultimately they had me delete and refill MacOS and all data, which is still causing me grief. All for nothing. Sigh...

Feb 26, 2025 8:20 AM in response to ericmurphysf

Lots of interesting theories on the source of this problem have been proposed since I started this discussion. I hope they are helping Apple track it down. One idea I would really like to see someone pursue is creating a new user on their Mac and using it to open a Pages file that previously caused this issue to surface. I'd perform this experiment myself, but I am not currently experiencing the issue, so I'd make a poor test case for it. Anyone willing to try this?

Apr 3, 2025 10:55 AM in response to KWiPod

KWiPod wrote:

Since updating to MacOS Sequoia 15.4 (24E248) on Monday March 31st, all the spiking issues I described have stopped. Fingers crossed !

It's only been a few hours since I updated to 15.4, but so far the signs, at least on my Intel 27-inch iMac, are not encouraging. CoreSpotlightd isn't using much CPU time (7% on an 8-core system with hyperthreading turned on), but immediately after the update the (relocated) CoreSpotlight metadata was at around 2.6 GB (I'd deleted it all last night before the update to 15.4). It's now about two and a half hours later, and already metadata is up to 24.3 GB (with a large Pages file open). Before 15.4, after deleting metadata it would typically take closer to two days to get to 24 GB. If anything 15.4 seems to have worsened the problem of extremely rapid buildup of Spotlight metadata.


The next experiment will be to quit Pages for a while and see if metadata comes down in size. I've seen this many times on Apple Silicon systems, but the only way I've ever been able to reduce the size of Spotlight metadata on Intel systems is by manually deleting it.

Apr 28, 2025 2:53 PM in response to ahernk1

ahernk1 wrote:

I totally disagree. There is a strong inverse correlation between the size of the metadata file and performance of the computer. Whether it is a cause or effect is unknown, but there is definitely a relationship.

It's possible there are a variety of things going on here, which manifest differently on different systems.


But at least on the 3 Macs in my household, I can say confidently that the out-of-control corespotlightd process is definitely not the cause of the large metadata folder. The only causality is the other way around: the metadata folder grows in size, and that is the (or a) root cause of corespotlightd running amok. I can say this because the corspotlightd process NEVER runs out of control when the metadata folder is under 25Gb.


This is also a very plausible hypothesis to work with: the larger that metadata database, the more work the corespotlightd process has to do.


Mitch Stone wrote
So my completely practical advice for those who want to get on with their work is to not assume you have a problem unless you have the problem. If you have the problem, then try the variously suggested solutions. Attacking this the other way around is not doing yourself any favors. Or to put this in a familiar way, if it ain't broke, don't fix it.

Again, I totally agree that there's no reason for individual end users to waste time solving this problem; users should do what they need to do to keep the corespotlightd process from going crazy.


However, something is broken here, and Apple should fix it.


Apr 29, 2025 8:28 AM in response to juskajoetagg2

Yes, I would say this summarizes the situation well. When I started this thread many months ago, it was out of frustration for my Mac becoming unusably slow. My display was flickering, and the Mac even kernel panicked once. The system-sucking culprit was easily identified in Activity Monitor. I've since checked my metadata files several times and have never found them to be anywhere close to as large as others report. And yet, the problem persisted for me as well.


So the simple logic of the situation tells me that while the metadata file might be a part of the problem (possibly a symptom), and deleting it can help temporarily, it isn't the actual root cause. I also found relief at least temporarily in deleting the Spotlight plist, and even more so by making a Finder copy of the large Pages file that was triggering the berserk processes in my case.


If I stare at Activity Monitor, I still see occasional and transitory spikes in the offending process. If I had a mind to, I could convince myself from these observations that the problem remains. Then I return to my initial reason for starting the thread. For whatever reason, my Mac is no longer unusably slow. The display does not flicker. It does not kernel panic. I don't pretend to know why. I can only report what I've seen, tried, and the results.


juskajoetagg2 wrote:

I've been following this thread for months waiting for a solution to the same problem. The temporary fix of deleting the CoreSpotlight folder does help. After the 15.4 update, the problem went completely away for maybe a couple of weeks. Now it is back. One thing I can add is that, at least in my case, the CoreSpotlight folder is not very large: only 791MB. Yet the problem persists, particularly when pages is open, and especially when multiple pages documents are open at the same time.


May 19, 2025 12:46 PM in response to KWiPod

I’ve had a few comments about other apps: in my experience, it is only Pages that causes the corespotlightd spike crisis. And It’s persistent and repeatable


  • My Mac runs normally running all my other apps.


  • I open a Pages document (even one isolated from Spotlight and that has been duplicated in the Finder) and corespotlightd spikes immediately.


  • I quit Pages, and an after a time (seemingly dependent upon how long the Pages document was open), and corespotlightd calmes down . . . however, there is also a possibility (that's happened once since updating to 15.5) that quitting pages will not result in  corespotlightd calming down . . . and then the only way to calm down corespotlightd is to reinstall the OS.

May 30, 2025 1:52 PM in response to KWiPod

  1. We've seen no hard evidence that the issue is hardware-specific, though perhaps some anecdotal evidence that it is more of a problem with Intel-based systems. I have seen it on my M2 Ultra Studio but not on my M1 iMac and MBA.
  2. It was established quite a while ago that this is not an iCloud issue, at least not as such. When I first reported this issue, the most consistent "trigger" file was a large, heavily edited Pages document stored in iCloud. I tried moving it to a local drive. No improvement. I did get some relief by making a Finder copy of the document and working with it instead. Others find that deleting the metadata files for Spotlight periodically helps, at least temporarily. The instructions for this can be found in the thread somewhere (sorry it's gotten so long!).


All this said, I no longer have this issue. I cannot explain precisely why, but the document that caused it so reliably before can now be left open all day long without any noticeable system performance degradation. Maybe it was because I made the Finder copy, maybe not. I can't recall if anyone else said this helped in their situation. It is based on the theory that Pages keeps track of every version of your edited document, which Spotlight then attempts to index, and making a Finder copy starts the versioning process from scratch. Worth a try, I think.


My feeling after hearing so many varying experiences with this issue (and having them come and go myself) is that it is not so much app-specific or system-specific, as it is document-specific. But I can't prove that either.

Jul 4, 2025 10:57 AM in response to revpilot

I understand your frustration; this situation goes back at least to the earliest days of Sequoia, and there's anecdotal evidence that it might go all the way back to Ventura or earlier. But given the complexity of the issue, and the seemingly random nature of its symptoms and proposed fixes, I'm honestly not surprised Apple has been unable to resolve the issue. As my posts have noted, I have four Macs: two with Intel processors and two with Apple Silicon processors. In my experience the problem is much more pervasive and severe in the former.


I'm assuming you've read the posts on this thread, and have come across the proposed fix that seems to be reasonably successful: deleting CoreSpotlight metadata from the folder ~/library/metadata. I started removing this data on a regular basis more than six months ago, and almost immediately saw substantial performance gains on the various systems. Has that not been your experience?


Since I've kept Spotlight metadata below ~50 GB/system, I have not seen excessive CPU use by any of the various Spotlight-related processes: corespotlightd, mdworker, mds, etc. Nor I have I seen system freezes, unresponsiveness, or any similar symptoms. I've also seen improved performance in Spotlight search and even Time Machine.

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.