photolibraryd and photoanalysisd
These two processes consume hours of CPU-time on my machine.
I have three photo libraries that are 250GB combined and I do add a couple dozen photos every other week.
That partly explains why these processes are busy. I understand.
But I don't care about "Memories", "Faces" and other searchable features in Photos and I don't use iCloud either.
I disabled all these features but CPU consumption remains very high.
So, I wrote a looping script to kill these processes every 200 seconds:
launchctl disable user/$UID/com.apple.photoanalysisd
launchctl kill TERM gui/$UID/com.apple.photoanalysisd
launchctl disable user/$UID/com.apple.photolibraryd
launchctl kill TERM gui/$UID/com.apple.photolibraryd
Still, I don't like this solution: The processes still start up every now and then and manage to update a bunch of large Photos database files. This in turn increases my backup time and size since Time Machine considers them changed and forces Spotlight processes (mds and corespotlightd) to stay busy.
I then tried to rename these two files (below) to prevent these processes to ever start up.
./System/Library/LaunchAgents/com.apple.photoanalysisd.plist
./System/Library/LaunchAgents/com.apple.photolibraryd.plist
Turns out this has to be done in Revovery mode because of Ventura's enhanced security settings.
When I started Terminal in Recovery mode and went to the above directory location as root these files were not there!
I guess they are being copied or build during normal startup ?
Question: How to stop this whole photo analysis business?
How to prevent the creation of these files?
I found these related files during my search but I don't know their function.
The first 3 files in the list below are identical! Why?
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.job.plist
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.presentation.plist
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.graph.plist
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.plist
./System/Library/PrivateFrameworks/PhotoAnalysis.framework/Versions/A/Resources/CPAnalyticsConfig-photoanalysisd.json
Would renaming those stop the analysis? Too risky?
I am on Ventura 13.1 using a 2019 iMac 3Ghz 6-core i5 and 8 GB
These two processes consume hours of CPU-time on my machine.
I have three photo libraries that are 250GB combined and I do add a couple dozen photos every other week.
That partly explains why these processes are busy. I understand.
But I don't care about "Memories", "Faces" and other searchable features in Photos and I don't use iCloud either.
I disabled all these features but CPU consumption remains very high.
So, I wrote a looping script to kill these processes every 200 seconds:
launchctl disable user/$UID/com.apple.photoanalysisd
launchctl kill TERM gui/$UID/com.apple.photoanalysisd
launchctl disable user/$UID/com.apple.photolibraryd
launchctl kill TERM gui/$UID/com.apple.photolibraryd
Still, I don't like this solution: The processes still start up every now and then and manage to update a bunch of large Photos database files. This in turn increases my backup time and size since Time Machine considers them changed and forces Spotlight processes (mds and corespotlightd) to stay busy.
I then tried to rename these two files (below) to prevent these processes to ever start up.
./System/Library/LaunchAgents/com.apple.photoanalysisd.plist
./System/Library/LaunchAgents/com.apple.photolibraryd.plist
Turns out this has to be done in Revovery mode because of Ventura's enhanced security settings.
When I started Terminal in Recovery mode and went to the above directory location as root these files were not there!
I guess they are being copied or build during normal startup ?
Question: How to stop this whole photo analysis business?
How to prevent the creation of these files?
I found these related files during my search but I don't know their function.
The first 3 files in the list below are identical! Why?
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.job.plist
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.presentation.plist
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.graph.plist
./System/Library/Preferences/Logging/Subsystems/com.apple.photoanalysisd.plist
./System/Library/PrivateFrameworks/PhotoAnalysis.framework/Versions/A/Resources/CPAnalyticsConfig-photoanalysisd.json
Would renaming those stop the analysis? Too risky?
I am on Ventura 13.1 using a 2019 iMac 3Ghz 6-core i5 and 8 GB