What is photoanalysisd on Mac? Photos high CPU
Safe to quit? SometimesMade by Applephotoanalysisd
photoanalysisd analyses your Photos library for People, Memories and search. Why it uses CPU after imports or updates, and how long it lasts.
photoanalysisd is the macOS process that analyses your Photos library in the background, so you can search for "beach" or "dog", browse People and Pets, and get Memories. It is made by Apple, it is not a virus, and high CPU from it nearly always means it is working through new or unanalysed photos.
It tends to run when you are not using the Photos app, and it eases off once the library is done.
What photoanalysisd does
Its manual page describes it as the photo library analysis agent, which handles background processing of photo libraries for Memories, People, and scene or object based search. That covers:
- People and pets. Recognising faces and grouping them, so you can name someone once and find all their photos.
- Scenes and objects. Working out that a photo shows a mountain, a car or food, so search works without tags.
- Memories. Picking out trips, events and people to build the Memories collections.
The manual page lists two related processes, photolibraryd and cloudphotod, which manage the library itself and iCloud Photos syncing. You may also see mediaanalysisd, which does other on-device image and video analysis.
Is photoanalysisd a virus?
No. It runs under your user account from:
/System/Library/PrivateFrameworks/PhotoAnalysis.framework/Versions/A/Support/photoanalysisd
To check the path of a running copy, run this in Terminal. It only reads:
ps -Ao pid,comm | grep photoanalysisd
It may not be running at all if there is nothing to analyse. To check the file's signature:
codesign -dvv /System/Library/PrivateFrameworks/PhotoAnalysis.framework/Versions/A/Support/photoanalysisd 2>&1 | grep -E "Identifier|Authority"
A genuine file shows:
Identifier=com.apple.photoanalysisd
Authority=Software Signing
Authority=Apple Code Signing Certification Authority
Authority=Apple Root CA
Software Signing is the certificate Apple uses for parts of macOS. A process with this name outside /System is not Apple's; the guide to checking a Mac for malware explains what to do.
Why photoanalysisd uses high CPU, memory or energy
Analysing images is real work for the processor. It ramps up when there is a lot to do:
- A big import, such as a phone full of photos or a scanned album.
- Turning on iCloud Photos on a new Mac, which brings the whole library down to be analysed.
- A macOS update, after which Photos may re-analyse parts of the library.
- A new or restored library, such as after migrating to a new Mac.
On a MacBook it shows up in Activity Monitor's Energy tab while it runs, and fans may spin on Macs that have them.
What is normal
Apple's article on finding pets in People & Pets says Photos on a Mac does this detection as long as you are not using the app, and that depending on what is running and how big the library is, it can be quick or take up to a few days. While it works, the People & Pets album can show "Finding People...". So a few busy evenings after a large import are normal. Weeks of constant analysis on a library that has not changed are not. On a Mac without a fan, or one working hard, a long run can also make kernel_task climb as macOS manages the heat.
How to fix high photoanalysisd CPU
- Let it run overnight. Quit Photos, leave the Mac on power, and let it work while you are away.
- Restart. Apple menu > Restart clears a run that seems stuck.
- Check the library is healthy. If photoanalysisd starts again and again without progress, Apple's guide to repairing a Photos library explains the Library Repair tool. Back up the library first.
- Check sync status. In Photos, click Library, choose All Photos and scroll to the bottom to see iCloud status, as Apple describes in checking library status. You can pause syncing there if you need the Mac's full speed for a while.
- Install updates. System Settings > General > Software Update.
What not to do
- Do not delete photoanalysisd or files in /System. System Integrity Protection protects them, and People and search would stop working properly.
- Do not edit the inside of your Photos library package in Finder. That is a reliable way to damage it.
- Do not keep force quitting it. It starts again and the work takes longer overall.
How to see photoanalysisd in Activity Monitor
- Open Activity Monitor from Applications > Utilities.
- Choose View > All Processes.
- Type photo in the search field to see photoanalysisd, photolibraryd and cloudphotod together.
- Check % CPU on the CPU tab and Energy Impact on the Energy tab.
- Double-click it to see details; Open Files and Ports shows the program file and the library files it is reading.
How Headroom helps
Because photoanalysisd is part of macOS, Headroom's Speed screen leaves it out and lists the apps you installed instead. What you do see is whether the Mac as a whole is busy, its memory pressure and whether it is running cool, warm or hot, which tells you if a slowdown is this background work or something else. On a MacBook, the free Battery screen shows what is using energy. The Speed screen is free too.
Download Headroom, read about the Mac performance monitor, or see the $19 price.
Questions
What is photoanalysisd?
Apple's manual page calls it the photo library analysis agent. It works through your Photos library in the background to power Memories, People and searching for scenes or objects.
Why is photoanalysisd using so much CPU?
It is analysing photos, usually after you import a lot of pictures, turn on iCloud Photos, or update macOS. It mainly works while you are not using Photos.
How long does photoanalysisd take?
Apple says that, depending on background tasks and the size of the library, detecting people and pets can be quick or take up to a few days. Leaving the Mac on and Photos closed helps.
Can I stop photoanalysisd?
You can force quit it, but macOS starts it again and the analysis resumes later. It is better to let it finish, ideally overnight with the Mac plugged in.
Does photoanalysisd upload my photos?
Apple describes photoanalysisd as processing photo libraries for Memories, People and search. Its manual page does not describe uploading, and iCloud syncing is handled by separate processes.