Maybe not exactly that but similar: mds_stores was going crazy
mds_stores was, under macOs 15.0.1, writing about 500GB per day. But seems to have calmed down with 15.1. The writing was all to indexes for Spotlight and Core Spotlight (in Photos libraries).
I am trying to work through issues with Spotlight indexing. In my case all related to the
mediaanalysisd
process which seems to be out of control.
So far:
When I am not actively using my Intel Mac, mediaanalysisd wakes up, consumes CPU (1 core) for an hour, goes into the background for an hour - and repeats.
One issue"
~/Library/Metadata/CoreSpotlight
mediaanalysisd is repeatedly looking for Photos libraries that I deleted long ago. (seen in Console log)
But it not just Core Spotlight. Every hour mediaanalysisd wakes and, presumably, does work (for an hour) on the files (in the file system, not Photos libraries) which it fails to analyse. And wakes again 1 hour later. Reasons I have found are:
1) Images with one dimension is 1 or 2 pixels - mostly lines drawn using PNG files, but also some GIFs and TIF. Mostly ones I can get rid of. All the files shown with
mdfind "kMDItemPixelHeight < 3" OR "kMDItemPixelWidth < 3"
2) A few JPEGs which are corrupt (I am investigating further).
3) Four files with colour space Lab.
mdfind "kMDItemColorSpace == 'Lab'"
finds all four. Is this a general issue with all Lab colour space files or just mine?
I am going to clean out all these images and see if mediananalysisd settles down. But why a) does it repeatedly keep on trying them, and b) why does it need so much CPU for about 50 images?
Very much work in progress for me.
Useful tools:
A) ObjectiveSee FileMonitor with
sudo /Applications/Objective-See/FileMonitor.app/Contents/MacOS/FileMonitor -filter mediaanalysisd | grep '"name":"mediaanalysisd"'
and saving to a text file. Leave that running when I am away from the Mac - finds all the files that are opened by mediaanalysisd.
B) Console app filtering with by subsystem com.apple.mediaanalysisd. Again go away and let mediaanalysisd do its thing.
C) mdfind commands like those above.