# What is photoanalysisd, and why is it using CPU?

What is this process? · Updated 22 November 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **It’s Photos working in the background.** Its manual page calls `photoanalysisd` the photo library analysis agent: it does the background processing behind Memories, People and searching your photos for scenes or objects. Its sibling `mediaanalysisd` does image and video analysis for the system.
- **When it’s normal:** after you import a lot of photos, turn on iCloud Photos on a Mac, move to a new Mac or open a big library for the first time. It has a backlog to work through, and it quietens down once it’s done.
- **Disk:** the results belong to your Photos library. The working files outside it are small, and there’s nothing worth deleting by hand.

## 1. What photoanalysisd is

Two Apple processes do this work, both started for your account by launchd from `/System/Library/LaunchAgents`:

- **`photoanalysisd`**, at `/System/Library/PrivateFrameworks/PhotoAnalysis.framework/Versions/A/Support/photoanalysisd`. It goes through the photo library to build what Photos shows you without being asked: who’s in each picture for People & Pets, the collections in Memories, and the scene and object tags that let a search for “beach” or “dog” work.
- **`mediaanalysisd`**, at `/System/Library/PrivateFrameworks/MediaAnalysis.framework/Versions/A/mediaanalysisd`: Apple’s media analysis service, which looks at the content of images and video.

The analysis runs on your Mac. Apple says that with iCloud Photos on, People & Pets is kept up to date on all your devices.

## 2. Why it’s busy

Analysis means opening every new photo and video and running it through image recognition, which takes CPU, memory and disk reads. The busy spells follow whatever gives it a backlog:

- Importing a camera card, a phone or an old archive.
- Turning on iCloud Photos, which brings the whole library down to the Mac.
- Migrating to a new Mac, or opening a library copied from another one.
- Saving pictures into Photos from Messages, AirDrop or other apps: each one is new to it.

A Mac with tens of thousands of photos can spend a long time on a first pass. Once the backlog is gone, it only handles new items, and its CPU use drops to occasional bursts.

## 3. What to do about it

1. **Let it finish.** Leave the Mac plugged in and awake for a while. The analysis runs in its own processes, not inside the Photos app, and an otherwise idle Mac gives it room to catch up.
2. **Check it’s really Photos.** In Activity Monitor, type `analysis` in the search field to see both processes and their CPU.
3. **Import in batches** if you have a huge archive, so the Mac isn’t stuck behind one enormous backlog.
4. **Check for updates.** If it stays busy for days with no new photos, install the latest macOS in System Settings › General › Software Update.

On disk, the analysis results are kept with the library, and the two processes keep small working files in their own sandboxed containers. You can measure those:

```
du -sh ~/Library/Containers/com.apple.photoanalysisd ~/Library/Containers/com.apple.mediaanalysisd
```

Terminal may need Full Disk Access to read them. If the Photos library itself is what’s big, the space is in the photos and videos, not in the analysis. Turning on **Optimize Mac Storage** in Photos › Settings › iCloud keeps smaller versions on the Mac when space is limited and the originals in iCloud; [our guide](https://siftmac.com/guides/photos-library-taking-up-space) covers the other options.

## 4. Should you quit or disable it?

Force-quitting either process in Activity Monitor is harmless, but it only buys a few minutes: launchd starts it again the next time there’s work. Their launch files are part of macOS’s sealed system volume, so there’s no supported way to switch them off, and turning off System Integrity Protection to try is a bad trade.

If you managed to stop the analysis for good, Photos would still hold your pictures, but People & Pets would stop recognising new faces, Memories would stop appearing and searching for what’s in a photo would miss anything new.

Don’t delete the containers or anything inside the Photos library package to make it stop. Apple’s Photos tools are the only safe way into the library.

## Questions

### Why does photoanalysisd run when Photos is closed?

It’s a background agent, separate from the Photos app, so it can analyse new pictures without the app open.

### Can I pause photoanalysisd?

There’s no setting for it. Quitting it in Activity Monitor stops it only until launchd starts it again, so the practical answer is to let it finish while you’re away from the Mac.

### How long does photoanalysisd take?

It depends on the size of the backlog. A few new photos take moments; a first pass over a large library can take much longer.

### What’s the difference between photoanalysisd and mediaanalysisd?

`photoanalysisd` works on the Photos library for Memories, People and search. `mediaanalysisd` is the system’s media analysis service, which looks at the content of images and video.

## How SiftMac handles it

SiftMac never touches the Photos library; its space map shows the library and `~/Library/Containers` as private rather than reading them. Its duplicate and similar-photo scans look only at pictures in your own folders, outside the library.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is the first 2 GB of cleaning).

## Sources

- [photoanalysisd(8) manual page](https://keith.github.io/xcode-man-pages/photoanalysisd.8.html)
- [Apple: Find and name photos of people and pets on Mac](https://support.apple.com/guide/photos/phtad9d981ab/mac)
- [Apple: Optimize storage in Photos on Mac](https://support.apple.com/guide/photos/phta9b4673b4/mac)

## Related

- [Is it safe to delete the Photos Library.photoslibrary package?](https://siftmac.com/safe-to-delete/photos-library)
- [Photos library taking up too much space on your Mac? What to do](https://siftmac.com/guides/photos-library-taking-up-space)
- [What are cloudd and bird, and why are they so busy?](https://siftmac.com/process/cloudd)
- [Why is kernel_task using so much CPU on my Mac?](https://siftmac.com/process/kernel-task)
- [Can I delete ~/Library/Containers on a Mac?](https://siftmac.com/safe-to-delete/containers)

Canonical: https://siftmac.com/process/photoanalysisd
