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).


346 replies

May 19, 2025 6:13 AM in response to Mitch Stone

Yesterday, I again deleted the contents of the CoreSpotlight metadata - on both M1 MBP and M4 mini. (Both bang up to date on Sequoia 15.5)


Despite using Pages and Numbers (the two problem apps for me) - the contents have remained modest for about 24 hours so far. Currently well under 2GB on both machines and not obviously growing.


Can I afford to raise some optimism? Or will it suddenly revert to excess growth of CoreSpotlight and mixed beachball and non-beachball freezes? I've been somewhere like this before...

May 19, 2025 6:59 AM in response to KWiPod

And . . . after working in Numbers, Keynote, Safari, Notes, Mail and Messages … I dared to open a Pages document (that is excluded from Spotlight as I noted in my last post)  . . . and  . . .  I’m back to SBBoD with corespotlight at 168%. 


I’ve closed Pages, but the corespotlight spike-crisis has persisted for 15 mins with the kernal_task process also spiking just to provide extra spike-spice. 


So, my situation is, in order do Word Processing on my new M4 MacBook Air, I must:


  • export my Pages files to Microsoft Word, while battling with the SBBoD (and Command Tabbing between apps freezing the screen for several seconds each time);
  • Reinstall MacOS Sequoia (again) to kill this corespotlight spiky-crisis;
  • Work in Microsoft Word until I feel confident Pages is safe. (Assuming Apple choose to fix the issue. And it is, after all, an issue with an Apple - not a third-party - App!)


BTW (again): I have just remembered that the Pages team also reached out to me in 2019 when I had a document that caused many issues related to the AppleSpell process. (My Pages diary document includes pasted material from emails [from Mail] and rich texts [from Messages]. AppleSpell did not play nicely with this activity. Again, as in 2013, Apple reached out to me and I installed a profile, etc. … and  the issue was solved. 

May 19, 2025 1:39 PM in response to KWiPod

KWiPod wrote:

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.

Unfortunately, I think the situation is more complicated than that, and in my experience (with four different Macs, two Intel and two AS), results will change not just from one Mac to another but from the same Mac at different points in time.


Case in point: I had deleted Corespotlight metadata yesterday morning, with Pages not running. Normally I'd expect maybe a few GB of data to accumulate over the next few hours. But six hours later, the Corespotlight folder had grown to thirty-five gigabytes while the system was idling (I wasn't even in the house during that time). I once again deleted metadata yesterday evening, and with Pages again not running, I watched the Corespotlight folder grow to more than a gigabyte in less than five minutes. Fortunately that growth eventually slowed, but this morning, again with the computer seeing almost no use, metadata had once again increased to almost 30 GB.


That said, I have not seen either corespotlightd or the metadata processes (mdworker, mds_stores, etc.) using excessive CPU time (these days, at least for me, contactsd seems to me a major consumer of CPU time).


So while I remain pretty sure that Pages is implicated in the absurd growth of metadata, even not having it run at all is no guarantee of anything. The only thing I know for certain that works is that if I keep Spotlight metadata below 40 GB or so, my systems seem to run pretty smoothly.

May 19, 2025 11:38 PM in response to Mitch Stone

Hi I've been this problem huge time since March, when I did start editing a very large pages' file.

I discovered this bug report page just recently, I previously mitigated it by loop script killing corespotlight (lol) while using pages.

I updated to OS to 15.5 and will monitor the folder size with

while true; do clear; du -sh ~/Library/Metadata/CoreSpotlight; sleep 60; done

It seems strange to me that we do not have an official acknowledgment or statement from Apple about this issue, am I missing something?

May 20, 2025 12:22 AM in response to Mitch Stone

Does anyone with this issue not use Time Machine for backups?


While everything seems to be working well on my M1 MBP at the moment, the spotlight folder grew substantially after I had done a TM backup. From under 2 GB to almost 10 GB. Could spotlight indexing of TM backups be contributing to the size of the spotlight metadata?


I simply plug in a 1 TB external drive every so often and did that between checking the spotlight folder yesterday at 16:55 and this morning at 08:00.


In other words, if we clear the spotlight folder we see reasonable space usage until we run a TM backup. At which point it grows enormously. This might explain my observation that everything works OK for hours, even days, after clearing spotlight. Then suddenly the space usage rises enormously.

Jun 2, 2025 11:50 PM in response to KWiPod

Interesting, so a solution involving iCloud backup would be:


  • work on local copies of current Pages documents (example: in a Downloads folder, since this is usually not on iCloud)
  • manual daily (or automatic / scheduled ) rsync of these files to Documents folder


--> I understand rsync would not trigger corespotlightd frenzied rage since it is an instant commitment, even if Pages is running on local and open documents?

Jun 16, 2025 2:42 AM in response to Mitch Stone

Having had a period of relatively little impact, I've had terrible issues this morning. Using Numbers seems to be the biggest issue. A sheet of 448 kb and pretty simple except for being a pivot table.


M4 mini freezing repeatedly. And Spotlight folder bigger than ever.



I did have a Pages file opened - but even closing that - and idle Excel and Word instances - did not fix the issue. Only closing Numbers - and waiting - got me out of the mire.


This ridiculous size is making my drive look rather full.

Jul 5, 2025 9:11 AM in response to KWiPod

Discussion starter here, which I mention mainly because I have read every post made here for over six months, and have a lot of (unhappy) experience with this issue myself. Main conclusion: no one solution seems to work for everyone, suggesting a high likelihood that multiple factors interacting contribute to the problem.


For example, the suggestion that working with Pages files locally instead of in iCloud fixes it for everyone is demonstrably incorrect. This was one of my first attempts at a workaround, and I can say that it absolutely did not work for me. Not at all. It is certainly worth trying, but it is not by any means the universal solution. I found that making a Finder copy of the very large Pages files that triggered it in my case, and working with the copy, did. This is also not the universal solution because it does not seem to work for everyone. But it did for me, so this is also worth trying.


Deleting the Spotlight data files is the nuclear option. It at least mitigates the issue temporarily in cases where the other workarounds do not. Most who go this route seem to have to revisit it often. No idea why.


The other piece of advice I can give from observation is to not assume you have a system-debilitating problem from watching the Activity Monitor. If you spend any time with Activity Monitor, you will see many system processes spiking up to seemingly unsustainable levels, and then fall back. Interpreting what is happening in the innards of macOS is beyond most of us, so don't try. Judge whether you have this issue by overall system performance. If it occurs, you won't need Activity Monitor to tell you.


Bottom line, if this was a simple problem, Apple would have fixed it by now. They are certainly aware of it.

Aug 26, 2025 10:58 AM in response to PolyRod

PolyRod wrote:

A few days ago, Apple contacted me and asked for some diagnostics - which I sent and got a thanks.

I think that the issue is having less impact than at one point. But still get beachballs regularly. And just maybe I automatically close Pages and Numbers when I'm not actively using them - sort-of habituated into doing so! Thus avoiding things like having the same documents open on two machines.

This has been my experience for the most part. I have not seen serious performance issues with corespotlight processes interacting with Pages in quite some time (other than if I happen to leave Pages open on my M2 MBP, battery life suffers dramatically, even with the lid closed).


But it appears that if anything, the macOS 15.6.1 update has exacerbated the issue of rapidly-accumulating corespotlight metadata. I ran the update last week, and over the weekend, with both Pages and Numbers closed on my 2020 27-inch iMac, metadata piled up to well over 100 GB, the highest it's been in more than six months. I deleted it Monday morning, and by this morning (Tuesday), it was back up over 60 GB. Two and a half hours later, it was already up to almost 17 GB. That suggests I may have to delete metadata once more before I leave for the day.


That said, I'm not seeing much in the way of performance degradation. The CPU load is roughly 20%, and no spotlight processes appear to be in the top 10 for CPU use.

Sep 19, 2025 5:03 AM in response to KWiPod

So, 'xxxx' i.e. MacOS Tahoe 26 is now out, so we can finally discuss it and I have installed it on my M4 MacBook Air.


As noted in my earlier posts, due to the corespotlightd process massive spike issue (with MacOS Sequoia and Pages 14.4), I’ve been opening old (and saving new) Pages files from(to) my local SSD. This is because for me, it's working with Pages documents in iCloud Drive that triggers the corespotlightd beach-balling crisis on my Mac.


My current Pages-based projects are too important for me to risk retuning to iCloud Drive in Tahoe.


Are there any brave folk out there who can offer any feedback on Pages with iCloud Drive in Tahoe?

Dec 27, 2024 12:14 PM in response to Mitch Stone

Hmmm - okay - I'm seeing the same behaviour, but instead of with large documents (mine are sizeable, but not huge), but with _NUMBER_ of documents being accessed.


In my context, I have 8-10 documents open at any one moment (all on iCloud), and an additional 5-20 PDFs opened in Preview.


I did a reinstall of MacOS about 2 weeks ago after this problem cascaded into spontaneous crash-and-restarts even while the machine was otherwise idle (all documents closed), and I was in the midst of a lengthy video call when it decided to crash. (I also saw multiple spontaneous reboots happening overnight when the machine was otherwise idle).


Regarding re-install of MacOS, when I ran Disk Utility from Recovery Mode, it identified a ton of mismatch counts and other filesystem errors that it was unable to repair. At that point, I decided to do a nuke-and-pave, with the computer behaving itself until today when I see corespotlightd chewing CPU like candy again. (It wasn't even appearing in the list for top prior to today).


If the suspicions mentioned above are true, then this appears to be an indexing problem with the interaction between Spotlight and iCloud. (I'm reaching here, but iCloud indexing looks like a common denominator)


Dec 29, 2024 8:54 AM in response to PolyRod

Thanks, I will give this a try. Did you try deleting the Spotlight plist? This seems to help somewhat, at least until macOS writes a change to the plist, which seems to happen in the middle of the night. BTW, if you do remove the plist I've found a reboot isn't required to recreate it. Just log out of your account and back in.


Another peculiarity of this bug: I don't understand how it's possible for any process to exceed 100% of CPU capacity, but in any event, even when the corespotlightd process runs to 200% of CPU or higher, the total usage stats at the bottom of the Activity Monitor still shows no less than 80% of the CPU idle. The usage graph confirms that in fact CPU usage is far from saturated, but the Mac sure performs as if it is overloaded.


If someone with a technical understanding of how this works can ring in, I'd sure appreciate an explanation of what is going on.

Dec 29, 2024 12:22 PM in response to Mitch Stone

%CPU is a bit of an odd duck in today's world of multi-core processors. It made more sense when we were doing things on single-core architectures like the VAX (yes, I'm that old). Back then a process chewing large amounts of CPU was pretty obvious. In a multi-core architecture, a process can simply get allocated to a different core when it gets switched out, resulting in the appearance of using "more than 100%" of a CPU. (The core allocation logic is opaque to most human beings - and I'm not exactly sure what the kernel / hardware interaction looks like there - it's been a few moons since I did any amount of kernel work)


Top in its default form is a bit aggressive, resampling every second. I tend to use the command "top -o CPU -s 5" to make it a little less hungry.

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.