Skip to content

Guide

What is photolibraryd on a Mac?

photolibraryd looks after your Photos library: it records every import and edit, and keeps the library in step with iCloud Photos. When it's busy, your library is changing or syncing.

By the iKnowMyMac team · Updated · 4 min read

The short answer

photolibraryd is part of macOS. It manages the Photos library on your Mac and syncs it with iCloud Photos, for Photos and for any other app that reads your photos. It gets busy when you import a lot of photos, turn on iCloud Photos, open a library for the first time after a macOS update, or restore a library from a backup. Apple says the time an iCloud Photos upload takes depends on the size of your collection and your internet speed. Let it finish with the Mac plugged in and online. Quitting it only pauses the work, because macOS starts it again.

On this page

What photolibraryd does

photolibraryd is a system process. It runs from /System/Library/PrivateFrameworks/PhotoLibraryServices.framework and starts by itself whenever something needs your photo library, whether that's Photos or another app showing the photo picker.

  • photolibraryd

    What it does
    Manages the library itself: imports, edits, albums, and syncing with iCloud Photos.
  • cloudphotod

    What it does
    Moves photos and videos to and from iCloud for photolibraryd.
  • photoanalysisd

    What it does
    Recognises people and pets and builds Memories. See photoanalysisd.
  • mediaanalysisd

    What it does
    Reads photos and videos for text, objects and scenes. See mediaanalysisd.
The Photos background processes

Why photolibraryd is using CPU or memory

It works when the library changes. The long busy spells usually follow one of these:

  • Turning on iCloud Photos. The whole library is compared with iCloud, then uploaded or downloaded.
  • A large import, from a camera, an iPhone or a folder.
  • A macOS update. Photos updates the library the first time you open it afterwards.
  • A new Mac or a restored library. Everything is checked against iCloud again.
  • Lots of edits or deletions at once, which have to be saved and synced to your other devices.

During a sync you'll often see network activity as well as CPU, because photos and videos are being uploaded or downloaded. Once the library and iCloud match, photolibraryd goes back to using almost nothing.

How to check what it's doing

  1. Open Photos, select Library in the sidebar and look at the status line under your photos. It says whether Photos is updating, uploading or downloading, and how many items are left.
  2. In Activity Monitor, type “photo” in the search field to see the Photos processes together. The Network tab shows whether one of them is sending or receiving data.
The Photos processes, by CPU
top -l 2 -o cpu -n 40 -stats pid,command,cpu,mem | grep -E "photolibraryd|cloudphotod|photoanalysisd|mediaanalysisd"

Is it safe to quit photolibraryd?

It quits and restarts itself. Quitting it in Activity Monitor doesn't damage the library, but macOS starts it again as soon as something needs your photos, and the sync continues from where it stopped. Don't force quit it while Photos is importing: let the import finish first.

What to do about it

  1. Leave the Mac awake, plugged in and connected to the internet, and let the sync finish. A big library can take a long time on a slow connection.
  2. If you need the Mac to be quiet now, pause the upload. Apple says you can pause iCloud Photos uploads for one day from the Library view in Photos, and that Pause isn't available in every library state.
  3. If the status line hasn't changed for a day, quit Photos, restart the Mac and open Photos again.
  4. If it still never settles, run Apple's Repair Library tool. Back up the library first, then hold Command and Option while you open Photos. With iCloud Photos on, the library syncs again afterwards, so expect another busy spell.

The faster way: “What is this?” in iKnowMyMac

iKnowMyMac groups the Photos background processes under Photos, adds up their CPU and memory, and explains in one line what they're doing, whether they're safe to quit, and what helps.

FAQ

Questions

Something else? support@iknowmymac.com

Is photolibraryd a virus?

No. It's part of macOS and lives in /System/Library/PrivateFrameworks. Apple signs it, and System Integrity Protection stops other software from changing it.

Why is photolibraryd running when Photos is closed?

iCloud Photos syncs in the background, and other apps can read your library through the system photo picker. Both go through photolibraryd, so it runs without Photos being open.

Can I stop photolibraryd for good?

Not while you use Photos. Turning off iCloud Photos in System Settings stops the syncing, which is most of its work, but your photos then stop updating across your devices.

Know why your Mac is slow.

macOS 15 Sequoia or later · Apple silicon. A 23.3 MB native app, notarized by Apple. No account, no analytics, no telemetry.

One-time purchase · every feature · 14-day refund