Photos · macOS process

photolibraryd on Mac: why Photos is busy in the background and what to do

photolibraryd is the background service behind the Photos app. It keeps your library database up to date, handles imports, works with iCloud Photos, and feeds the analysis processes that find faces and scenes. It is busy for a while after you import photos, turn on iCloud Photos, or update macOS, and then it settles, usually within an hour and overnight for a library of tens of thousands of pictures. Quitting it is harmless but pointless: it relaunches. If it stays high for days or its memory climbs past a few gigabytes, the library itself needs repairing.

Let it finishIt is doing a job and stops on its own. Quitting it only makes it start over.

Updated 8 November 2026 · macOS 12 Monterey to macOS 26 Tahoe · 5 min read

What it is
The Photos library agent. Every request to read or change your library, from Photos or any other app, goes through it.
Normal
Near zero when idle. 30 to 100 percent CPU for minutes to hours after an import, an iCloud sync or a macOS update.
Not normal
High CPU for days with no new photos, or memory in the tens of gigabytes.
Safe to quit?
Yes, nothing is lost, but it restarts within seconds and resumes.
The one safe fix
Leave the Mac on power with the lid open overnight so it finishes. If it never does, repair the library.

What photolibraryd does

Apple's own manual page describes it in one line: photolibraryd is the photo library agent, and it handles all photo library requests. In practice that means it owns the database inside your Photos Library package. When you import from a camera, delete a picture, edit one, create an album or let iCloud Photos bring down a new shot from your iPhone, Photos does not touch the files directly. It asks photolibraryd, which updates the database, writes thumbnails, and tells everyone else what changed.

It also coordinates the other Photos helpers. photoanalysisd finds faces, scenes and Memories. mediaanalysisd does the same for video and for text in images. cloudphotod moves originals to and from iCloud. All of them read and write through photolibraryd, which is why it is often busy at the same time as one of them and why people tend to see two or three Photos processes near the top of Activity Monitor together.

The service starts when you log in and stays resident, even if you never open Photos. That is by design, so that iCloud sync and background analysis can run while the app is closed.

What normal looks like

The pattern depends almost entirely on what the library was asked to do recently:

Library idle, nothing new0 to 2 percentA brief wake when a new iPhone photo arrives, then back to sleep.
After a camera import30 to 80 percentThumbnails and database writes. Minutes for a few hundred shots.
iCloud Photos just turned on60 to 100 percent, hoursThe whole library is cataloged and matched with iCloud. Overnight for a large one.
Days later, same CPU, nothing addedPinned, or memory in the tens of GBA looping library. Repair it rather than waiting.
Typical photolibraryd load by trigger. Durations from Apple Community and MacRumors reports and the Safe to Quit knowledge base.

One detail trips people up: the heavy analysis work only runs when the Mac is on power and mostly when it is idle or asleep with the lid open. A laptop used on battery all day will keep deferring the job, so photolibraryd looks busy every evening for weeks. Plugging in and leaving it for one night usually clears the backlog in one go.

Why photolibraryd is using CPU right now

Work through these in order; the first match is almost always the answer.

  1. You just imported or deleted a lot. A card of 2,000 RAW files, or emptying Recently Deleted, means thousands of database rows and thumbnails. This ends within an hour on an Apple silicon Mac.
  2. iCloud Photos was turned on, or you signed in on a new Mac. The library has to be matched against what is in iCloud. This is the biggest job photolibraryd ever does and it scales with library size. Tens of thousands of photos means overnight, not an hour.
  3. A macOS update changed the library format. Major updates migrate the Photos database and often re-run analysis. Expect a busy day after the update.
  4. Analysis is catching up. If the Mac has been on battery or asleep with the lid closed, face and scene analysis has been waiting. photolibraryd serves those reads. A MacRumors regular's advice is simply to disable sleep, lock the Mac overnight, and let it finish.
  5. A damaged library. If none of the above applies and the CPU never falls, or memory grows into the tens of gigabytes, the database is looping on something. One Apple Community thread has users on a 16 GB M1 reporting photolibraryd above 40 GB of memory. That is a library problem, not a Mac problem.
  6. A second library on an external drive. Switching libraries or keeping one on a slow USB drive makes every operation take longer and photolibraryd look busier for longer.

Is it safe to quit photolibraryd?

Yes, in the sense that you will not lose photos. The library database is written transactionally, so a quit in the middle of an import rolls back cleanly and the import resumes. But the service is relaunched by macOS almost immediately, and whatever it was doing starts again. One user in the memory thread put it exactly: quitting from Activity Monitor solves the problem, but only for an hour or so.

So quitting buys a short pause and nothing more. If the goal is a quiet Mac tonight, quitting Photos and closing the lid will pause the work until morning. If the goal is for the work to be finished, the opposite is what you want: power, lid open, left alone.

What are you about to quit?

The checker above gives the same verdict for every Photos process: safe, not useful, let it settle.

What to do, in order

  1. Ask what the library did today

    An import, a big delete, turning on iCloud Photos, a new Mac, a macOS update. Any of these explains hours of activity. If one applies, skip to the overnight step.

  2. Open Photos and check the bottom of the Library view

    Scroll to the bottom. Photos shows a status line there: Uploading, Downloading, Updating, or Analyzing with a count. That line tells you what photolibraryd is doing and roughly how far along it is.

  3. Plug in, lid open, overnight

    Analysis and iCloud matching run on power and mostly while idle. Connect the charger, leave the lid open, lock the screen, and let it work. For a library of 50,000 or more photos, allow two nights. This is the step that fixes most cases.

  4. Pause iCloud Photos if you need the Mac quiet now

    In Photos settings, under iCloud, there is a Pause button under the sync status. Pausing is safe and reversible. The work resumes when you unpause, so this is for tonight, not forever.

  5. Repair the library

    If the CPU never falls with nothing new, or memory keeps growing: quit Photos, then hold ⌥ and ⌘ while opening Photos again. Choose Repair. It checks and rebuilds the database without touching your originals. This can take a while on a big library, and photolibraryd will be busy during it.

  6. Check free space

    A nearly full disk makes every database write slow and can keep the repair from finishing. Keep at least 10 to 20 GB free. See free up space on Mac if you are close to the edge.

  7. Try a fresh user account as a test

    If the library repairs fine but photolibraryd still runs hot in your account, a user in the memory thread found the problem disappeared in a new account. Creating a test user in System Settings costs nothing and tells you whether the trouble is the library or the account.

When to worry

The worry threshold is about time and memory, not CPU. CPU at 100 percent for an evening after an import is Photos doing its job. The signs that something is wrong:

  • Still high after two full nights on power with no new photos.
  • Memory above a few gigabytes and climbing, especially on an 8 or 16 GB Mac, where it will push everything else into swap. The Apple Community thread above has reports well past 40 GB.
  • Photos shows the same Updating or Analyzing count for days.
  • The library repair fails or hangs.

Any of those means the library needs attention, and the repair step above is where to start. A damaged library is not a data-loss emergency; your originals are files inside the package and remain intact. It is a database that needs rebuilding.

  1. 1Something changed in the library
  2. 2photolibraryd updates the database
  3. 3photoanalysisd and cloudphotod do their part through it
  4. 4Photos shows a status line at the bottom of Library
  5. 5CPU falls to near zero when the status line disappears
The normal cycle. A worry is any step that does not end.

Because this is a process that is supposed to be high for hours and then stop, the useful thing to know is the trend over a day, not the number right now. Safe to Quit records each process over hours and flags the ones that never come down, which is exactly the signal that separates a long import from a broken library.

What people hit, in their words

“These two processes consume hours of CPU-time on my machine.”

“Once the libraries are analyzed, there should not be a reason for a lot of CPU usage until more photos are added.”

“I can delete the photolibraryd process in activity monitor, which solves the problem but only for an hour or so.”

“Try disabling sleep, and locking your Mac overnight. It should eventually finish if it's behind on your library.”

Questions people ask

What is photolibraryd on a MacBook?

It is the background service that manages your Photos library. Apple's manual page calls it the photo library agent and says it handles all photo library requests. The Photos app, iCloud Photos, and the face and scene analysis helpers all read and write the library through it, so it is busy whenever any of them is, and it stays running even when Photos is closed.

Can I quit photolibraryd on Mac?

Yes, and you will not lose photos, because the library database rolls back any half-finished change. But macOS relaunches it within seconds and it resumes the same work, so quitting only buys a short pause. If you want a quiet evening, pause iCloud Photos in Photos settings instead. If you want the work done, leave the Mac on power overnight.

Why is photolibraryd using so much memory?

A healthy photolibraryd uses a few hundred megabytes. Reports of tens of gigabytes, including users on 16 GB Macs seeing more than 40 GB, point to a library database stuck in a loop. Quitting helps for an hour and the growth returns. The fix is to repair the library: quit Photos, hold Option and Command while reopening it, and choose Repair.

How long does photolibraryd take to finish?

Minutes after a normal import. An hour or so after a large one. Overnight, sometimes two nights, after turning on iCloud Photos or moving to a new Mac with a library of tens of thousands of photos. The heavy work only runs on power and mostly while the Mac is idle, so a laptop on battery can keep deferring it for weeks. Plug in and leave it.

Does turning off iCloud Photos stop photolibraryd?

It removes the biggest job, the matching of your library with iCloud, but photolibraryd still runs for imports, edits and local analysis. Turning iCloud Photos off also starts a download of any originals that were only in iCloud, which is itself a long, busy job. Pausing sync in Photos settings is the gentler option if you just need the Mac quiet for a while.

Is photolibraryd a virus?

No. It is part of macOS, lives on the sealed system volume, and runs under your own user account. Its path in the Activity Monitor info panel starts with /System/Library/PrivateFrameworks/PhotoLibraryServices. A process with the same name running from anywhere else, especially from your home folder or Downloads, would be worth a closer look, but that is not what people see in these threads.

Sources and further reading