You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

com.apple.mediaanalysisd files filling drive in macOS 15.1

Since updating my mac Mini M1 to macOS 15.1 on 28th October, my computer has been creating a 67.9 MB file roughly every hour when the computer is not in use in the following location: ~/Library/Containers/com.apple.mediaanalysisd/Data/Library/Caches/com.apple.mediaanalysisd/com.apple.e5rt.e5bundlecache/24B83/9CBD0F43A800584A3C4CABAFAE15CF754A6CC75117BE0645B8F09A3EF4974D11.

The files are in the following format, e.g. the latest one is BF43FD565F5326E554005345F8EE2E2C0271B9C0A9695FACB868D079B6B64D88.tmp.1443.bundle. As these are cache files, I deleted the Caches folder on 5th. November, when it had grown to 17.1 GB: since then, the newly-created Caches folder has grown to 3.16 GB. I have rebuilt the Photos library, also run Disk Utility over the drive. Note that this issue did not occur in macOS 15.0.1. Has anyone else experienced a similar issue, and possibly found a resolution? I have submitted a bug report to Apple.

Mac mini, macOS 15.1

Posted on Nov 8, 2024 8:07 AM

Reply
7 replies

Nov 18, 2024 3:21 PM in response to paulmacsmurf

I am observing a similar anomalous problem with the mediaanalysisd process. I have an empty library of photos, but when I have a closed mac (I use aldente so it doesn't go to sleep) this process starts to load 1 core of the CPU completely for almost the whole period of the closed lid, in previous versions of OC this problem didn't happen at all, but support just said to erase SSD and reinstall macos =) (I don't think it will help)


I just want to know what process or event is causing this behavior, but support also couldn't tell me how to see it.


The problem spreads even in safe mode if you specify

sudo pmset -disablesleep 1

Below I attach a log file that was kept with a bash script (just recording the 5 most used processes every 10 seconds) all night long (only fit half)


Nov 12, 2024 10:33 PM in response to paulmacsmurf

mediaanalysisd and photoslibraryd are background processes which go through and analyze a new or updated Photos library when the Mac is otherwise idling. With large 500 GB libraries with 50 000 images and thousands of movies that might take a week or more. Set the Mac to never sleep (allow the screen to turn off, setting the library as system library might also help) and let the Mac be on day and night until those processes are done. Or move the library to an external APFS or MacOS extended disk.

Nov 19, 2024 3:02 AM in response to paulmacsmurf

Does mediaanalysisd cause that issue if you create a dummy new user and login to that account? If, that helps, you might try if moving the following preference file to the Desktop, and then rebooting helps (backup first, just in case):


~/Library/Preferences/com.apple.mediaanalysisd.plist


...there is another preference but handling it is more involved and I would not lightly fiddle that:


/System/Library/LaunchAgents/com.apple.mediaanalysisd.plist


com.apple.mediaanalysisd files filling drive in macOS 15.1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.