These processes (mediaanalysisd
, photoanalysisd
, and photolibraryd
) are related to Photos app analysis tasks, including facial recognition, object categorization, and organizing photos. They can consume a significant amount of CPU and memory. While disabling them may stop automatic photo analysis, it can also limit some features of the Photos app. Below is a unique and straightforward guide to managing and disabling these processes.
Page Contents
Step 1: Quit the Photos App & Background Syncing
Ensure the Photos app is closed. Many of these processes run in the background even after the app is closed to continue syncing and analyzing data.
- Force Quit:
- Open the Activity Monitor (Search “Activity Monitor” using Spotlight).
- Look for
mediaanalysisd
,photoanalysisd
, andphotolibraryd
. - Select each process and click the “X” button to force quit.
This only temporarily stops the processes. To disable them from restarting, follow the steps below.
Step 2: Disable Background Processes Using Terminal Commands
You can stop macOS from launching these services using Terminal commands.
- Open Terminal:
- Press Cmd + Space and type “Terminal”.
- Run the following commands:
- To disable
photoanalysisd
: - To disable
mediaanalysisd
: - To disable
photolibraryd
:
- To disable
- Verify the changes: After running the commands, check if the processes are still active:
If nothing shows up or the processes are not running, you’ve successfully disabled them.
Step 3: Disable Photos App Access to iCloud (Optional)
If you are syncing your photo library with iCloud, these processes will frequently re-trigger for synchronization. Disabling iCloud Photos can reduce background activity.
- Open System Preferences → Apple ID.
- Select iCloud from the sidebar.
- Uncheck Photos.
This will stop macOS from syncing your photos to iCloud.
Step 4: Re-enable the Processes (If Needed)
If you want to restore these processes:
- Open Terminal.
- Run the following commands:
launchctl enable gui/$(id -u)/com.apple.photoanalysisd
launchctl enable gui/$(id -u)/com.apple.mediaanalysisd
launchctl enable gui/$(id -u)/com.apple.photolibraryd
Additional Tips:
- Energy Saver Settings: Turn off “Wake for network access” to prevent background syncing.
- Use Optimized Storage: If your system is slow due to Photos syncing, you can enable Optimized Mac Storage to save space and reduce performance impact.
By following these steps, you can stop photo-related processes that consume system resources while keeping your Mac running smoothly.