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

Feb 9, 2025 7:16 PM in response to ericmurphysf

ericmurphysf wrote:

I definitely don't know, but I think it's safe to assume that this folder (or these folders) definitely should not be more than a hundred GB.

Agreed. All of MacOS only takes up around 23Gb of space. This metadata folder simply shouldn't grow to more than a few Gbs.


I also think it's relevant that there seems to be, on my system, NO DOWNSIDE to deleting the metadata folder. Spotlight works just as well, maybe better than before. (And note that I am NOT reindexing, toggling the indexing status, or doing anything at all with spotlight – just deleting this folder.)


Mitch wrote:

My issues with this process hogging the CPU seem ridiculously random.


But have you ever had the corespotlightd CPU problem when the metadata folder was fewer than 10Gbs in size?


I can attest that I have not. Corespotlightd processes only become a problem for me when the metadata folder grows to around 30Gb or so. Before that, it's fine.


Feb 12, 2025 10:13 AM in response to CaptainJoy

CaptainJoy wrote:

Feb 11 6:28 PM — trashed the contents• of ~/Library/Metadata/CoreSpotlight and ~/Library/Metadata/CoreSpotlight/SpotlightKnowledgeEvents which immediately resulted in:
corespotlightd down to <25%
• Disk writing no longer happening constantly
• Every indication this has "fixed" my problems.

This was the 2nd time I've had to "fix" my sluggish, cursor freezing, beach-ball generating 2024 M4 Mac Mini running Sequoia 15.3. I put "fix" in quotes because this is only a temporary solution. The last time I had to implement this "fix" was 3 February, so it seems to last about a week for me. I was no longer keeping Pages documents open unless actively using them ; I think I'll go back to leaving my planner Pages document open like I used to and see how much it cuts down the time before my next "fix".

PS AshkaTheMoltenFury is an hilarious handle.

I'm not certain how significant this is, but I have yet to need to remove the above-referenced folders on either of the two Apple Silicon systems I own: a M1 Ultra Mac Studio or an M2 Max MBP. Neither system's Spotlight metadata folders have ever exceeded 50 GB, and I have not seen serious performance degradations* on either one.


But I've had to remove Spotlight metadata twice each from my two Intel systems, a 27-inch iMac and an iMac Pro. I deleted this data once on each system when it had more than 500 GB of metadata in these folders, and then once again on both systems when metadata exceeded 100 GB a week or so later.


In all four cases, I saw immediate performance improvements, especially in Spotlight searches (which had been essentially inoperative once metadata exceeded about 250 GB), and Time Machine backups never starting let alone completing. And so far literally no downsides whatsoever to removing this data.

_______________________________

  • I did for a short time see issues on the Mac Studio with 10-30-second freezes, especially during video playback, one or two of what looked like kernel panics (the system simply shut down entirely the first time, and then shut down and restarted the second time), along with some oddities with Time Machine. Either coincidentally or not, once I removed the excess metadata from the two Intel machines, these problems seemed to resolve on the Mac Studio via unknown and unguessable mechanisms. I should probably note that all four of these systems are under the same iCloud account.

Feb 28, 2025 4:45 PM in response to drjz

I believe most of us are seeing this in Pages files larger than 10MB. But I from what we are hearing it seems that the size of the file (which can depend heavily on whether it includes graphics) is less the trigger than on how much it has been edited, as Pages attempts to keep track of every version. This is probably why the metadata files grow so large.


So, what I last suggested is Finder duplicating a Pages file that seems to trigger this issue. The duplicated file should not have the versioning legacy of the original. Since I started working with a copy of large (20MB+, 80k words) Pages file that caused me much grief, the problem has ceased. So now we'll see if anyone pays attention to this suggestion and tells us whether it does or doesn't work for them, too.



drjz wrote:

Could you please define large in "large Pages document"?

I had trouble with Pages files 3-6 MB. Since then, I deleted the metadata several time, narrowed Spotlight's scope, eventually to zero, turned off AI, and even switched to Word for a while. Obviously rebooted. Finally the CPU settled down. Now, I have turned Spotlight back on, turned on AI, and gone back to using Pages with the same 3+ MB files, so far no CPU problems. Magic!? (The System data is ridiculously large at 100 GB, but that is not a problem compared with the lag from an over-busy CPU.)


Mar 6, 2025 1:57 PM in response to Mitch Stone

Absolutely happening to me-- corespotlightd spilking CPU and system glitching

on brand-new MacBook Pro Apple M4 Pro running 15.3.1

started about 4 weeks after I migrated over. all problem solving failed. reset to factory settings- and no migration. same issue presented. brought back to apple- they did firmware reinstall and set back to factory settings. can now confirm this continues to happen when and only when I am running pages- generally my pages docs are re-edit of forms with numerous past editions. I quit pages and glitching and CPU spikes go away

Mar 9, 2025 9:48 PM in response to ScottRichardson

ScottRichardson wrote:

I just experienced this issue and my ~/Library/Metadata/Corespotlight was 50GB when I first looked, and within an hour it was 60GB in size! I just deleted that, and my caches folder and it appears to have fixed the issue. Thanks for the wonderful folk in here who identified a way to fix it for now.

One thing I've noticed (and the actual figure may differ depending on your system architecture, memory, storage space, etc.) is that once Spotlight metadata gets to a certain size, its growth begins to snowball. On my system, and seemingly on yours, that size is ~50 GB. It might take one of my Intel systems eight or nine days from when I delete all the metadata until it gets to 50 GB, but from there it's rarely more than a few hours before it gets to 60.

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

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


I did this and nothing changed!


So, it’s now 4 hours later . . .  during that time, I reinstalled Sequoia and after logging back in, corespotlightd did its spiky thing for around 15 mins and now, finally, all is back to normal. Activity Monitor is reporting that 97% of CPU is free and just a few Efficiency Cores are ticking over as I write this in the Notes app. Such bliss: this M4 MacBook Air is such a spectacular machine . . . when it functions normally.


I have not yet opened Pages: before I dare to do that (and risk turning my Mac’s performance back into the MacPlus I owned in 1986), I have placed all the Pages documents upon which I am currently working in a folder called ‘In Progress’ on the Desktop. Using the System Settings Search Privacy tool, I have excluded this folder from Spotlight’s purview (I hope!)


If I need to open any other Pages documents as I work, I will add them to this In Progress folder before I risk opening them!


I will update this post and let folk know if it’s a strategy that works … when I open Pages and start work in the next hour.


BYW, I have reported this corespotlightd problem via Apple’s Feedback web pages for Mac OS and for Pages. Back in 2013, I did the same thing for a process called mdworker (which was also Pages related, in fact it was caused by ONE single Pages document that was full of graphics, originally created in ClarisWorks, whose documents could be imported into Pages.) I was contacted by Apple (by email) and the Pages team asked me to send the Pages file and install a profile on my Mac. I did both, sent Apple the profile file . . . and the next OS update [or it may have been Pages update, I don’t recall] solved the issue. 


That was a pretty niche issue, and yet the Pages Team reached out to me. The current issue is far less niche as it seems to affect anyone who uses Pages. Wouldn’t it be superb, if Apple reached out to one of us for this latest Pages/corespotlightd crisis!

Sep 23, 2025 11:49 AM in response to Mitch Stone

I may have some good news regarding the corespotlightd issue. In Sequoia I had pretty much the same overload issue with corespotlightd that most of you have reported. To resolve it I moved the long Pages document that seemed to be causing the problem from iCloud to my home folder. That cleared up the problem for me.


I recently updated to Tahoe 26. Apple has made a number of important changes to the Spotlight.app. I was curious to see if the overload problem had been addressed. I moved the long pages document back to iCloud. The CoreSpotlight folder increased from about 1.5 GB to about 3.0 GB over a period of 8 hours or so and the Activity Monitor showed corespotlightd working under 10%. My Mac mini M4 remains cool to the touch. I'll report again in a day a two if anything changes, but for the moment I'm much encouraged.

Jan 1, 2025 6:06 AM in response to Mitch Stone

So … a couple of updates:


1). Talked to Apple Support yesterday. They took lots of notes, and have passed the issue on to MacOS engineering.


2). It’s been 3 days since I turned off Apple Intelligence on my iMac, and it has returned to normal operation - it took about 24 hours for things to settle down (I was seeing spikes in corespotlightd, but it would come down off them). Since then it’s been behaving itself.


3). Regarding the system CPU usage spikes, I was seeing some spikes of processes like kernel_task when things got into a really hairy state. I suspect this is related to resource allocation issues where corespotlightd may have been demanding exclusive access to particular resources and then getting into the weeds. (This would also explain the escalating stuck process count in top, now that I think about it).

Jan 1, 2025 8:59 AM in response to MgS_2012

The variety of ways this bug can be triggered is a curiosity, and I'd think for Apple's troubleshooters, provides clues. I can reliably trigger it on my Mac by opening a large Pages file, but it crops up randomly too. I've read elsewhere that Spotlight indexing is triggered after each Time Machine backup session. My Mac had to be restarted this morning due to an overnight power failure, and right off the bat the corespotlightd process ran amok. A Time Machine backup was also initiated on restart. A few minutes after Time Machine was done, the process dropped into the background. So, perhaps something to this.


And those of us who now watch Activity Monitor like others watch Netflix have noticed from the graph that when this process goes nuts it can get into a beat, spiking about every five seconds. This can go on for quite a while before it gives up on whatever it is trying to do and settles down. Another clue, perhaps?

MgS_2012 wrote:

So … a couple of updates:

1). Talked to Apple Support yesterday. They took lots of notes, and have passed the issue on to MacOS engineering.

2). It’s been 3 days since I turned off Apple Intelligence on my iMac, and it has returned to normal operation - it took about 24 hours for things to settle down (I was seeing spikes in corespotlightd, but it would come down off them). Since then it’s been behaving itself.

3). Regarding the system CPU usage spikes, I was seeing some spikes of processes like kernel_task when things got into a really hairy state. I suspect this is related to resource allocation issues where corespotlightd may have been demanding exclusive access to particular resources and then getting into the weeds. (This would also explain the escalating stuck process count in top, now that I think about it).


Feb 8, 2025 6:22 PM in response to Mitch Stone

I'm chiming in to document very similar issues and use-case scenarios. Lots of Pages docs open through iCloud storage (grad school student). I started noticing the slow down occurrences in the fast 2 weeks, with growing regularity. I've been running 15.3 for most of that time I believe. The effects show up across every app. The most drastic occurrences seem to be in my Notes app. I've got tons of notes, a few collaborative, some small, some large. I often get a slow down while typing in notes, and regularly have the app freeze on me and require a forced quit of the Notes. Pages has had those slow blips, but never a full freeze and force quit.

I've disabled Apple Intelligence, and switched off the option of sharing Spotlight data with Apple. It seems that has kept the identical "corespotlightd" process from overloading my system constantly, although I am watching Activity Monitor spike with "corespotlightd" over 100% once in a while.

Feb 10, 2025 7:00 AM in response to Mitch Stone

Just got off a 30 minute phone call with Apple Support. Their engineer team is aware of the issue and have been since February 8th, 2025. The person I spoke to added my case to the engineer team's file on the issue. They are also now aware of this thread. The person I spoke to read everything posted here. The thread itself is also now attached to their file.


I think everyone reading this with the same issue should contact Apple Support so they can have as much information as possible to fix this, in addition to making sure this gets resolved soon enough. They asked me to provide screenshots during the online chat portion, and over the phone they requested me to turn off my VPN (it didn't do anything), turn off and back on iCloud optimization (it didn't do anything), and boot into safe mode (it didn't do anything). They also wanted me to reinstall macOS but I made it clear that wasn't going to happen, and also that in another thread people already tried that in relation to corespotlightd to mixed results.


To do exactly what I did, go to Apple's website. Click Support on the right side of the screen. Scroll down to the section that says "Get Support" (it's quite large with a black button stating "Start Now" and a Memoji underneath). Under "View your products" click "Choose a product". Select your Mac. Click More. Scroll down and click Storage. Click continue. It should give you an option for a call or a chat. I originally opened a chat and clarified immediately what my actual issue was. When she eventually asked me reinstall the OS, I made it clear that I didn't actually expect a fix for this over Support, I simply wanted to get this issue to reach the attention of the people at Apple that could actually get this patched. So she scheduled a phone call for me with her seniors for several hours later at my convenience. (I contacted Support at like 3AM, if you chat with them during normal waking hours you'll likely get a scheduled call much sooner I'm assuming.)


The person I spoke to wouldn't add my case to their file unless I tried booting in Safe Mode to see if the issue was still present, so be prepared for that, or potentially anything else disruptive for them to give your case validity. If you start with a chat that moves to the phone then also have your case number ready because the person on the phone won't have access to your chat log otherwise. The person I spoke to was fantastic so I wouldn't worry about dealing with typical poor customer service like you would from other companies. The call happened 5 minutes after the scheduled time and the chat representative showed up almost immediately.

May 8, 2025 11:59 AM in response to lcjhnsn

tl;dr — trash your ~/Library/Metadata/CoreSpotlight folder


I haven't had a problem since 11 February, when I was running macOS Sequoia 15.3. Then today, I noticed a lag when typing into a Pages document and then a spinning beachball when poking around in a Finder window. I fired up the Activity Monitor; corespotlightd was back to it's old tricks.


macOS Sequoia 15.4.1


Folder/File Sizes:

  • /System/Volumes/Data/.Spotlight-V100 does NOT exist
  • ~/Library/Metadata/CoreSpotlight at 62.45 GB
  • ~/Library/Metadata/CoreSpotlight/SpotlightKnowledgeEvents at 7.4 GB
  • ~/Library/Metadata/CoreSpotlight/NSFileProtectionCompleteUntilFirstUserAuthentication folder at 27.92 GB
  • ~/Library/Metadata/CoreSpotlight/Priority folder at 26.79 GB
  • ~/Library/Caches at 1.85 GB


I do not believe “Optimize Storage” is turned on


Disk Writing:

  • kernel_task had written 4.96 TB
  • mds_stores had written 3.10 GB
  • launchd had written 440.20 GB
  • backupd had written 25.19 GB
  • corespotlightd had written 47.46 GB


Steps to Fix (which is only temporary but not onerous)

12:59 PM —

  • corespotlightd using >300% CPU
  • Pages using 23.1% CPU with two small files open
  • “Data written/sec” was typically sitting at around 180 MB

1:02 PM — trashed the ~/Library/Metadata/CoreSpotlight folder

1:04 PM — 

  • corespotlightd down to 2.5%
  • Pages down to <10%
  • “Data written/sec” is typically staying <1 MB

1:22 PM — com.apple.podcast.SpotlightIndexExtension at 99.6% CPU

1:44 PM — at some point before this time, com.apple.podcast.SpotlightIndexExtension at 0% CPU

May 13, 2025 10:16 AM in response to Mitch Stone

I would like to thank everyone who contributed to this listing, as it would have been impossible to resolve my sequoia/spotlight issue without all of your help. There appear to be two simple actions to eliminate the runaway spotlightd process.

    • Empty the contents of the ~/Library/Metadata/Corespotlight folder
    • Download the contents of the "pages" and "numbers" folders on iCloudDrive onto your computer

NOTE: It has only been two hours since the problem was resolved, but I am confident that it is gone.


I hope you find this useful.

Jun 3, 2025 3:57 PM in response to Mitch Stone

Mitch Stone wrote:

The wide variation of experience with this bug is vexing.

To put it mildly. In my case (which seems to be similar to some people's experiences and wildly dissimilar to others'), I can avoid issues with CPU overload and a host of other problems, including Spotlight search, smart folders in Apple Mail, Time Machine, just to list a few, by the simple expedient of emptying the ~/library/metadata/CoreSpotlight folder on a regular basis (at least on Intel systems; the two Apple Silicon systems I own seem to do their own trash collection, as it were).


But "regular" has seemed to become a shorter and shorter period of late. Example: I emptied the above folder around eight o'clock this morning on my iMac Pro, before going to work. It had been just short of 40 GB before I emptied it. I happened to stop home about two and a half hours later, and the folder had already grown to nearly 30 GB. That's with no iWork apps open at all: not Pages, not Numbers, not Keynote. Which you would think would falsify my own hypothesis about how heavily-edited Pages files, at least, contribute to exacerbating if not actually causing the problem.


And across the room, I've had a large (>55 MB), heavily-edited Pages file open for two days straight on my Mac Studio (while it was also being edited on other systems). At the beginning of that period, CoreSpotlight was at about 27 GB. But after a day, it was down to 9.7 GB (apparently some process is doing what it is likely supposed to do, which is to delete out-of-date metadata). In the day since then, it's grown all the way to 9.72 GB.


If nothing else, these observations support the contention that this issue is much more severe on Intel systems than on Apple Silicon systems. But others with M-series Macs have problems as or more severe than what I experience on my Intel systems, so…who knows?


It would be nice if Apple could ultimately resolve this issue, but given how exasperatingly difficult it has been to even diagnose what reliably causes the problem, I'm not optimistic.

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.