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 Dec 31, 2024 11:01 PM

On my M4, tried

while true; do killall -9 corespotlightd 2>/dev/null && sleep 0.5; done &

this seemed to get rid of the process if run for a few seconds. But then opendirectoryd comes up and consistently uses about 20% of cpu.

305 replies

Mar 6, 2025 03:40 PM in response to LAWM0N

Just to be clear, everything we suggest here can be nothing more than a Band-Aid. Only Apple can provide the fix. We are told Apple engineering is monitoring this discussion, so any real-world experiences we can document, and anything that works even as a temporary solution, not only helps us manage the problem in the short term, but perhaps will also point Apple towards the permanent solution we all want.


All this said, based on the now 12(!) pages of discussion since I started this thread, I have become convinced that the problem is Spotlight trying to index documents with a large number of edits. This is exactly how it manifested for me, with an 80k word Pages document being edited by two people with Track Changes turned on. Between us, this resulted in probably more than a thousand edits. Towards the end of the editing, I was seeing beach balling every time I opened this document for more than a few minutes at a time, and had one kernel panic.


Once this editing process was completed, I Finder copied the document. I can now open and make additional edits to the copy without incident. If I watch Activity Monitor (I leave it open in Stage Manager with corespotlightd selected), I will see some spikes in the process, but they are not nearly as high or as prolonged as before, and I also don't see any beach balls. To me, this proves the theory pretty conclusively.


BTW, I have also sometimes seen beachballs in Contacts. I always attributed this to iCloud synching issues, but maybe this isn't the real cause.


LAWM0N wrote:

• I keep activity monitor open and handy all the time. Glad I have two large screens.
• Copying large page document to remove metadata has been helpful bandage, but no fix.
• I have not noticed spikes in Word (because I don't use it much and was not paying attention to Word). My Metadata accelerated its increase one day, and that might have been related to opening Word document. Not sure. I'll watch.
• I have noticed spikes, slow CPU when I make any changes in Apple Contacts, which is huge problem, because I use Apple Contacts often.


Mar 6, 2025 03:54 PM in response to Mitch Stone

Mitch Stone wrote:


Just to be clear, everything we suggest here can be nothing more than a Band-Aid. Only Apple can provide the fix. We are told Apple engineering is monitoring this discussion, so any real-world experiences we can document, and anything that works even as a temporary solution, not only helps us manage the problem in the short term, but perhaps will also point Apple towards the permanent solution we all want.

All this said, based on the now 12(!) pages of discussion since I started this thread, I have become convinced that the problem is Spotlight trying to index documents with a large number of edits. This is exactly how it manifested for me, with an 80k word Pages document being edited by two people with Track Changes turned on. Between us, this resulted in probably more than a thousand edits. Towards the end of the editing, I was seeing beach balling every time I opened this document for more than a few minutes at a time, and had one kernel panic.

Once this editing process was completed, I Finder copied the document. I can now open and make additional edits to the copy without incident. If I watch Activity Monitor (I leave it open in Stage Manager with corespotlightd selected), I will see some spikes in the process, but they are not nearly as high or as prolonged as before, and I also don't see any beach balls. To me, this proves the theory pretty conclusively.

Just to add to Mitch's experiences: I am an inveterate journal-keeper, writing in Pages on a daily basis. It needn't be emphasized that a daily journal grows over time, and by the last couple of months of the year, my Pages journal file is typically over a thousand pages, 750k words or more, which with dozens of embedded graphics will result in a file size between 200–300 MB. Moreover, after nearly a year, we're talking literally tens of thousands of edits. When I was first researching this issue at the beginning of this year, I discovered that my Spotlight metadata had increased on two Intel systems to over 500 GB each. On both machines, Time Machine had essentially ground to a halt, Spotlight search results were useless, both systems suffered multiple kernel panics, and corespotlightd would sometimes pin all CPU cores on both systems, using as much as 1400% of CPU time spread across all sixteen cores (eight of which are virtual hyperthreading cores).


For me, deleting Corespotlight metadata resolved all of these issues. Not permanently; I have to weed out the metadata folders every week to ten days. But so long as I keep that metadata below ~50 GB (on relatively high-performance systems with lots of storage space), my computer life remains pretty peaceful. So long as I remember to quit Pages when I'm not actually using it.


But that said, I was editing my journal file last night, and with that one file open in Pages, which is about 18.5 MB, I watched Spotlight metadata grow by literally a megabyte per second or more, for as long as the file was open. In a single day that would add thousands if not tens of thousands of MB of metadata. But as soon as I quit Pages, metadata growth stopped in its tracks, and was the same value this morning before I left for work, twelve hours later.


YMMV, obviously, but for me these kinds of results could not be more dispositive of the problem here: Spotlight coupled with Pages files with many edits.

Mar 16, 2025 08:27 AM in response to Daniel_145

Daniel_145 wrote:

What would you recommend, please? Reboots don't help, killing the spotlightd process in Activity Monitor helps only for a few minutes. Closing the Pages app helps but unfortunately I really need the document, it's the only reason why I didn't buy a pen and paper instead

Delete the contents of the ~/library/metadata/coresporlight/ folder. This has worked for multiple users including myself.


It's a temporary fix, in that eventually that folder will grow to the size you're seeing now. But I just see it as maintenance. Every couple of weeks I delete that data.

Apr 8, 2025 02:04 PM in response to ericmurphysf

I'd ask whether you are still seeing any performance hit along with the growing size of the metadata file. The real problem, practically speaking, is how the issue manifested itself as essentially unusable Mac systems. This is more critical than anything we see going on in Activity Monitor or in our metadata files. I can convince myself that this issue remains when I see occasional spikes in the corespotlightd and related processes, but these spikes are transitory. I no longer see any degradation of actual system performance, which was a huge and obvious problem before. So I would say, quit Activity Monitor, resist looking at that metadata directory, and just use the Mac for a while and see how it runs. I think that is how we determine whether Apple has slayed this issue in 15.4. My feeling is they probably have, at least for Apple silicon systems.



ericmurphysf wrote:

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 02: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 08: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 9, 2025 07:59 PM in response to Mitch Stone

I just recently updated to Sequoia, am now on 15.4.1, and am getting the spinning wheel constantly to the point of it lagging with anything I do. The Activity Monitor showed that "corespotlightd" hogging up CPU, and I found this thread, and thankfully deleting the Metadata/CoreSpotlight folder worked... For a few hours or so, until that folder got all the way up close to 1GB! (from around 35MB)


So it's now May 2025, is Apple planning on a fix? Or did they just give up on Sequoia?

May 10, 2025 05:57 AM in response to Mitch Stone

I've had a similar issue on my M1 Mac Mini, Sequoia 15.4.1 with freeze-ups every couple of minutes lasting 5-10 seconds. The Disk appeared to freeze for this period, unresponsive mouse (but the keyboard would work) followed by a massive surge in write outs and high activity on Kernel_Task and Corespotlightd.

I think I've fixed the issue thanks to several comments on this and other threads pointing towards problems with Pages.

I have recently produces a large document containing HEIC photos transferred to my Downloads folder which I have deleted and then emptied the Trash and the problem has completely gone away.

Thanks to everyone who has helped me and I hope my addition helps someone else.


May 13, 2025 01:52 PM in response to LAWM0N

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. Either way, the Spotlight data is stored locally, and it is the size and/or complexity of this data that seemingly causes the process to freak out.


LAWM0N wrote:

Are you saying 'do not use iCloudDrive for Pages or Numbers?' Ever? Or just do not use past contents (after downloading past contents onto your computer, but OK to use from now on?


May 16, 2025 04:18 PM in response to VimCedar

Not to be too much of a wet blanket, but this does not appear to me to be a solved problem, at least on Intel Macs (where the problem was always way more severe in my experience). I deleted Spotlight metadata yesterday on my Intel iMac and it's already 35 GB. I've had a large Pages document open all day which is presumably why, but if I have to close a word processing document in order to prevent the OS from filling my entire SSD up, it's not a solved problem.

May 18, 2025 04:35 AM in response to ericmurphysf

In my last post [April 3rd 2025], I noted that all the corespotlightd and kernal_task spiking had stopped after updating my M4 MacBook Air [10c/24GB/1TB] to Sequoia 15.4 (24E248).


I updated to Sequoia 15.5 (24F74) on May 12th and all remained well . . . until, unfortunately, today.


I am struggling to complete this post with frequent appearances of the SBBoD caused, AM confirms, by corespotlightd which is showing crazing spiking numbers like 375%! I paid a visit to System Settings/Spotlight and removed and re-added my MBA SSD to force a re-index. After re-indexing was complete, all seemed to be well but then, but once I opened Pages (and Keynote), corespotlightd spiked once again.


Unbelievably as I write this, all the spiking just stopped ... for quite 15 minutes . . . but it started up again and, after 15 minutes, it's still spiking [corespotlightd currently = 178%].


My Mac becomes effectively unusable when in spike city. I really hope that Apple is monitoring this thread.

May 18, 2025 09:18 AM in response to KWiPod

I can't find your earlier post, but you don't say here if the issue is connected to opening certain documents. I don't recall anyone reporting it with Keynote documents before. So this would be something new, if it is happening to you. Only some documents, or all?


It's already been established that reindexing Spotlight doesn't help. Sorry you had to go through that exercise.

May 19, 2025 09:02 AM in response to KWiPod

You are the first (to my recollection) to report that any file type other than Pages triggers an out-of-control process. When I was having this problem, it persisted for 10-15 minutes after opening the Pages file, and continued for that time period whether the file remained open or not. So this may be what you are seeing. This does seem to be a recursive error. The process peaking had a "beat" to it of around five seconds.


I'm interested in the results of your experiment keeping these working files in a separate folder excluded from Spotlight indexing. You might also try making a Finder copy of a document that causes the problem and working with it. One theory is the document version history saved by Pages is a culprit. It made a difference for me, anyway.


Sorry you went through the agony of a system reinstall. I'm surprised it helped even temporarily.


KWiPod wrote:

Hi Mitch. I always assumed the issue was related to Pages. But this latest spike persisted for hours even with all apps closed and my SSD and iCloud removed from indexing. [ChatGPT suggested that a corespotlightd spike of >200% (which is happening as I type this accompanied by the SBBoD!) is likely is an indexing loop or bad database, and advised deleting the index in Terminal with sudo mdutil -E /. 


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.