Photoanalysisd mac os ��� ���

Что такое «фотоанализ» и почему он использует 77% моего процессора?

Мы получили новый iMac на Рождество, и последние пару дней он казался очень медленным. В отчаянии я проверил Activity Monitor, и он показывает photoanalysisd как виновный процесс, который загружает мой процессор. Я предполагаю, что это связано с приложением «Фотографии», но оно даже не запущено!

Что такое «фотоанализ», почему он использует 77% моего процессора, и могу ли я безопасно остановить процесс?

В настоящее время ваш iMac обрабатывает фотографии в вашей библиотеке фотографий, возможно потому, что вы только что импортировали / конвертировали существующую библиотеку фотографий из более ранней версии macOS.

Если вы подозреваете, что это стало причиной вашей медлительности в течение нескольких дней, то, скорее всего, у вас очень большая библиотека фотографий, и она впервые обрабатывается на вашем новом iMac.

Тот факт, что Photos не работает, в действительности соответствует вашему сценарию, так как запуск приложения Photos приостановит работу photoanalysisd демона.

Хотя это и занимает много времени, после того, как приложение Photos будет выполнено, оно сможет выполнять множество расширенных функций благодаря обработке всех метаданных и т. Д., Поэтому я позволю ему завершить то, что он делает.

НОТА:

Если вам нужно приостановить процесс, чтобы освободить часть вашего процессора, я бы порекомендовал просто открыть приложение «Фотографии» на некоторое время, а затем закрыть его, когда вы не используете компьютер. Тем не менее, обратите внимание, что сворачивание приложения Photos приведет к перезапуску photoanalysisd демона, поэтому просто оставьте его работать в фоновом режиме, пока вы хотите, чтобы демон был приостановлен.

Источник

Controlling photoanalysisd

Background

I recently bought a new MacBook. This article gets better, I promise.

I decided to set it up fresh instead of restoring from a backup. I like to take the time to try and simplify what I’ve got on my machine.

Naturally, I expect most applications to take a little bit to sync down settings, files, etc. All of Apple’s stuff in particular has a lot to do and I’m fine with that. However, the one I am not so fine with is Photos.

Specifically, a process called photoanalysisd .

This is a background service that, as the name implies, is responsible for analyzing your photos. For the most part, it seems like it is trying to recognize people. This service is directly tied to the «People» tab in Photos (more on this in a moment).

The fact that this happens on your machine and each of your machines is a good thing! There may be some things that get sent off to Apple, but the majority of the work seems to be happening on your hardware.

What is not so good is the level of control you have around if/when/how this service is controlled. Or, in this case, how it seems to control your machine.

If you go into the People tab of Photos before it is done analyzing, you will see its progress. Even if you have a fairly beefy machine, this process takes a long time. Weeks kind of long time. The only exception seems to be if you have a photo library barely into or lower than quadruple digits.

On the surface, this shouldn’t be an issue. The sorts of analysis its doing is probably computationally intense. It uses a good amount of resources, but doesn’t try to fully harness the machine since it is meant to be a background process that occurs over the course of days.

Читайте также:  Что такое пароль активации windows

The main issue seems to be that you have no control over this process. I never plan to use the People tab, yet my machine still has to painstakingly go through my entire library. I have a medium size photo library (

10k) and after a few hours on the 12″ i5 MacBook, it has managed to go through almost 300 of them. Many people complain about their way more powerful iMacs taking weeks to go through libraries of similar size.

During this process, the machine is still usable, but it doesn’t go unnoticed. It does use about 25% of the CPUs constantly. This causes the fanless machine to constantly stay pretty warm and chug on some things. Usually not enough to notice, but seems like it might cause someone to be less than impressed with their brand new device if they didn’t know this was going on.

On top of that, it is almost impossible for a normal user to learn this is going on. The only mention of «photoanalysisd» is in Activity Monitor. This should not be the only location to learn about something that is using days of CPU time. For a feature I imagine a lot of people either don’t want or don’t care about having on every device with Photos.

Yet it gets worse.

There are seemingly very few ways to actually get it to stop or even pause. Supposedly, it only runs when a) the machine is plugged in and b) Photos isn’t running. This means that people that want it to pause so they can get CPU cycles back resort to running off battery unnecessarily or leaving Photos open for no reason. Even leaving Photos minimized makes it start up again. However, mine still runs even with Photos focused, so I guess it doesn’t really matter.

You can also just let it finish, but this takes quite a long time (well after their 14 day return policy is up). It also seems like it gets stuck for some people, never finishing.

You can use launchctl to disable and kill the service. However, you have to make sure to disable all the appropriate services, otherwise this is only a temporary reprieve.

Exit fullscreen mode

You also should be able to (re)move the service file, but that may or may not affect system stability. Not something I really want to try, personally. YMMV.

How to actually do it

To do this, you’ll need to open up Terminal and run a couple of commands. Any time you’re asked to copy and paste commands into your terminal, it’s a good idea to at least have at least a basic understanding of what the commands are actually doing to your system.

The following commands are really 4 command. The && basically means «run the first one (on the left) and if that’s successful, run the second one (on the right). launchctl is the command that is used to control system services in macOS.

First, you’ll disable and kill the GUI instance:

launchctl disable gui/$UID/com.apple.photoanalysisd && launchctl kill -TERM gui/$UID/com.apple.photoanalysisd

As well as the actual service:

launchctl disable user/$UID/com.apple.photoanalysisd && launchctl kill -TERM user/$UID/com.apple.photoanalysisd

Closing Thoughts

First off, if anybody from the Photos team somehow ends up reading this, I’m begging you to give us an off switch for the People tab. I don’t use it, I don’t plan to use it, and it is a huge waste of resources.

Источник

Question: Q: kill photoanalysisd

It is obvious that the function of Photo photoanalysisd is killing CPU with my 2009 Mac at 50-80% CPU and grinding through my life-time with of photos. I require a kill feature in terminal to stop this process or as a minimum moderate CPU allocation to this application to 10-20%. I also note that in the latest IOS agreements the wording did not say that all my photos would be micro analysed for details so slowing up my CPU by a factor of 10 fold.

Читайте также:  Adding drivers to windows image

Mac Pro, iOS 11.1, 2009

Posted on Nov 10, 2017 11:48 PM

Helpful answers

I tried all of the proposed solutions, in the end the only thing that worked was temporarily moving my photos library to another folder so the daemon couldn’t find it. I only have a couple dozen photos in my library, and this task was KILLING my machine — very unresponsive. 100% CPU on both cores with fan at max RPMs. As soon as I moved the photos library the CPU usage dropped from 100% on both cores to around 5%. Now my machine is usable again (13″ Mid-2010). It is curious that my two newer MacBooks do not have this issue.

Mar 22, 2018 11:50 AM

photoanalysisd should not be running, while you are working with Photos. Are sou seeing it using CPU time, while you are browsing or editing photos?

The safest way to prevent photoanalysisd from running is using Photos — while you are browsing or editing Photos, the process should not be running. And if you are not using Photos unplug the drive with your Photos Library. The process cannot run, if there is no Photos Library on any mounted drive.

You can kill or stop a process from the Terminal using the command launchctl, but killing alone will not suffice, because Photos will just restart the process again. You would have to disable photoanalysisd from ever running again.

into a Terminal window to see the documentation for this command.

This command will disable photoanalysisd:

launchctl disable gui/$UID/com.apple.photoanalysisd

And this will kill the currently running process, after you disabled it.

launchctl kill -TERM gui/$UID/com.apple.photoanalysisd

To enable it again, use

launchctl enable gui/$UID/com.apple.photoanalysisd

But Photos 3.0 is not of much use, if you prevent it from collecting the categories, places, faces. I#d let the process run during the night, to get the task done.

Источник

Что такое «фотоанализ» и почему он использует 77% моего процессора?

Мы получили новый iMac для Рождества, и за последние пару дней он казался очень медленным. В отчаянии я проверил Activity Monitor и показал photoanalysisd как виновный процесс, который забивает мой процессор. Я предполагаю, что это связано с приложением «Фотографии», но это даже не работает!

Что такое «фотоанализ», почему он использует 77% моего процессора и могу ли я безопасно остановить процесс?

4 ответа

В настоящее время iMac обрабатывает фотографии в вашей библиотеке фотографий, по-видимому, потому, что вы только что импортировали /преобразовали существующую фотографию из более ранней версии macOS.

Если вы подозреваете, что это была причина вашей медлительности на пару дней, то, скорее всего, у вас очень большая библиотека фотографий и что она обрабатывается в первый раз на вашем новом iMac.

Тот факт, что Фотографии не работает, действительно соответствует вашему сценарию, поскольку запуск приложения «Фото» приостанавливает демон photoanalysisd .

Хотя это займет много времени, как только оно будет завершено, ваше приложение Photos сможет выполнить множество расширенных функций из-за всех метаданных и т. д., которые будут обработаны, поэтому я позволил бы ему закончить то, что он делает.

Примечание:

Если вам нужно приостановить процесс, чтобы освободить часть вашего процессора, я бы рекомендовал просто открыть приложение «Фото» некоторое время, а затем выйти из него, когда вы не используете компьютер , Обратите внимание, однако, что сведение к минимуму приложение Photos будет действовать для перезапуска демона photoanalysisd , поэтому просто оставьте его в фоновом режиме, пока вы хотите, чтобы демон приостановился.

Читайте также:  Как подключиться через vpn linux

Открытие фотографий не приостанавливает фотоанализ, будь то на заднем плане или переднем плане.

Это просто приводит к как фотоанализу, так и photolibraryd, потребляющему процессор.

Могу ли я предложить использовать App Tamer ?

Он позволяет приостановить /остановить процесс, когда он достигнет% от времени процессора.

Поскольку я использую его, моя температура компьютера всегда довольно низкая.

Надеюсь, что это поможет!

P.S .: Я не являюсь аффилированным лицом с App Tamer. Я просто счастливый клиент!

У меня есть только дюжина фотографий в моей библиотеке (это мой запасной компьютер, мои фотографии находятся на моем основном компьютере), и я разрешил процесс работать в течение недели, и он все еще питается 100% оба ядра. Моя машина не реагирует на процессорный вентилятор на 100% (13-дюймовый MacBook Pro Mid-2010). Ни одно из решений, которые я нашел в Интернете, не было, я, наконец, временно переименовал свою библиотеку фотографий, чтобы скрыть ее от деамона, и мгновенно Процессоры идут от 100% до 5%.

Источник

Question: Q: Photolibraryd,photoanalysisd, and com.apple.photos.ImageConversionService constantly using high CPU

Pretty much since I updated to catalina 4 months ago these three processes have been CONSTANTLY using upwards of 90% CPU all the time.

It is rendering Photos almost useless; I’ll click on a photo and then on Edit and nothing will show up. If I try dragging a photo off to the desktop I get an endless pinwheel. When I click on photos (and this is the most worrying part!) they’re blurry and pixelated, which I KNOW the originals aren’t.

I suspect the two things are related. My photos library has over 35K photos in it, going back over 20 years. (before iPhoto, even, but all my existing ones were inported into iPhoto when I started using that. ) This was not an issue prior to updating to Catalina.

Is there a way to fix this issue?

Mac mini, macOS 10.12

Posted on Jun 29, 2020 3:53 PM

All replies

Loading page content

Page content loaded

Can’t help but would be interested in a response. I have been having these issues and more since updating to Catalina 10.15.5 recently.

Jun 30, 2020 12:42 AM

Maybe you could re-create the old library? I recently re-created Mojave Photos library from scratch by importing 35 000 and several hundred movies to it (350 GB total). (Somehow there were numerous image duplicates in iTunes synced iPad (not in Photos), and I had also fixed the original movies’ various date metadata elsewhere with exiftool and, so I decided to re-create the old library).

Normally I have the library on an external HDD but I created the new library to the internal Mac mini 2018 SSD knowing that it takes a while to scan faces etc especially on the slow HDD. It took «only» a week until it was ready and I then copied the library back to the external HDD.

During that week I tried to peek the Activity Monitor when the Photos daemons did their work. It seems that it didn’t matter if Photos was open in the background or off (only when I was actively using it, those processes halted). And it seemed that the processes stopped their work at some point and only continued sometime the next day so I did not leave the Mac on during the night.

Has anyone tried to give those Photos processes more CPU time via the Terminal so they could do their job any faster?

Источник

Оцените статью