macOS doing idling tasks when running Max.
This might be a Max or a Mac question, uncertain of which.
I am using Max for an installation, displaying two videos and processing one of them. Whenever the process has been running for a while, macOS starts to perform background tasks. In my case mediaanalysisd is the major culprit, eating around 50% of the cpu. Whenever i move the mouse or provide «user input» this process disappears which leads me to believe that when Max is running without user input, the os (Mojave) believes that it has room to run all the CPU heavy indexing and upkeep tasks that it would not normally run as it interrupts the user experience.
Has anyone experienced the same? Any advice to avoid this issue?
Could be “app nap”? Disable it here -
http://osxdaily.com/2014/05/13/disable-app-nap-mac-os-x/
@billyanok: thank you, but app nap is disabled for Max and standalones.
It's Mac, not Max (I suppose):
https://discussions.apple.com/thread/250074539 - take a look here.
Seems Photos app is the source of the problem. You can try to remove all the photos from Photos library (just copy them somewhere and delete them from inner Photos storage).
Here is a solution using cron to periodically disable mediaanalisysd
https://dev.to/gjbianco/controlling-photoanalysisd-3j2a
Since osx 10.4 - Tiger macOS "as is" is not really usable for any kind
of "installation" or Live usage.
Windows is even worse.
So one needs to get radical.
Here is simple approach :
Since introduction of SIP (system integrity protection)
one can easier disable services in OS if one disables SIP.
Means one can delete or remove items from System/Library/LaunchAgents
and LaunchDaemons without fear of privileges troubles.
So first disable SIP form recovery partition ( this has been described a lot of times)
and then trash all .plist loaders from mentioned LaunchAgents and LaunchDaemons
to operate free of unwanted junk.
That's it.
If You fear doing so, well then just keep suffering and whining about it.
The list of deletion candidates is terribly long,
One can move the .plist loaders out of the system folder
instead of deleting them, just make LA and LD folders somewhere.
drag them back into system folders to reactivate.
--------
P.S. with "all .plist loaders" I mean only the ones that have to be removed
not really all. for example :
to kill spotlight, one needs to remove all plists
that contain mdwrite, metadata and spotlight
I am on the road and my highest system is capitan,
so I can't peek into installations of higher systems to publish
the complete list of removed loaders.
But in general, i disable everything that has "i" at the beginning,
like iPhoto (now photos), iTunes, iChat etc., also all logging,
systemstats, analysis, apple seed and other spying stuff,
among many others.
This is a very relevant topic... Keep the suggestions coming!
Disable Spotlight indexing of the main (OS) drive:
System Preferences: Spotlight: Privacy tab, then add the Macintosh HD volume to the list.Turn off the relevant Energy Saver features (screen, CPU, HD sleeping)
Disable the screen saver automatic startup;
Turn on the "Do not disturb" in Notification Center;