Contribute
Register

Idling for 10 minutes causes Sierra to lag/freeze for a couple of minutes

Joined
Sep 19, 2010
Messages
604
Motherboard
Asus Z87 Maximus Gene VI
CPU
i7-4790K
Graphics
Vega 64
Mac
  1. iMac
Mobile Phone
  1. iOS
I am starting to think this issue may be related to the SSD. When I'm running Sierra on a Samsung EVO 256GB SSD drive, lag occurs after few minutes of idling. As soon as I went back to my Crucial SSD drive, my system has not lagged even once. I have clean installed Mac OS on both drives using identical settings.
 
Joined
May 11, 2013
Messages
199
Motherboard
GA-Z170x-UD5-TH
CPU
i7-6700k
Graphics
MSI GeForce GTX 1080Ti Gaming X
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I am starting to think this issue may be related to the SSD. When I'm running Sierra on a Samsung EVO 256GB SSD drive, lag occurs after few minutes of idling. As soon as I went back to my Crucial SSD drive, my system has not lagged even once. I have clean installed Mac OS on both drives using identical settings.
For me, removing videos from iPhoto library helped :) It may be that in your particular case the issue is the ssd of course.
 
Joined
Nov 18, 2015
Messages
176
Motherboard
GIGABYTE Z390 Designare
CPU
i7-8700K
Graphics
RX Vega 64
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I to have been suffering from this bug now for a few weeks. I'm eager to try anything that you guys think may solve it. I've deleted any suspicious looking videos from my "photos" app and I'm sure the few that are in there are from my iphone. I'm running 10.12.4 from a Samsung 960 EVO Nvme, NVIDIA GeForce GTX 1070 8191 MB. Any other specs please let me know how I might help solve this for me and anyone who comes along...
 
Joined
Apr 20, 2017
Messages
13
Motherboard
ASUS Z170-PRO
CPU
i7-6700
Graphics
GTX 980 Ti
Mac
  1. Mac Pro
Mobile Phone
  1. iOS
Guys, thank you sooooo much! I tried to fix this problem for a week without success and finally deleting com.apple.mediaanalysisd.plist fixed it! So happy now :)
 
Joined
Mar 2, 2017
Messages
31
Motherboard
Asus Maximus Hero X Z370
CPU
i7 8700K
Graphics
RX 580
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
I get this when i try to do that:
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.mediaanalysisd.plist
/System/Library/LaunchAgents/com.apple.mediaanalysisd.plist: Could not find specified service

What should I do?

I think if you just remove the sudo it should work. i.e.:
Code:
launchctl unload -w /System/Library/LaunchAgents/com.apple.mediaanalysisd.plist
 
Joined
May 30, 2017
Messages
6
Motherboard
Apple
CPU
Xeon E5645 x 2
Graphics
EVGA GTX 980 Ti Classified
Mac
  1. MacBook Pro
  2. Mac Pro
Ditto on the thank you. Using a cMP here, and I've been stuck with similar problems after being idle anywhere 5 minutes to 5 hours in length (though it happens intermittently). It's been driving me nuts; I think the problem started with the 10.12.3 update. Anyway, killing that mediaanalysis daemon has provided 24 hours of lag/stutter free use.
 
Joined
Jul 17, 2015
Messages
50
Motherboard
P6T Deluxe V2
CPU
Core i7 920 @3,6GHz
Graphics
Palit GeForce GTX 980 Ti Jetstream
Mobile Phone
  1. iOS
Same here too. Works lagfree now. And there is no real impact on deactivating this thing?
 
Joined
May 30, 2017
Messages
6
Motherboard
Apple
CPU
Xeon E5645 x 2
Graphics
EVGA GTX 980 Ti Classified
Mac
  1. MacBook Pro
  2. Mac Pro
@swiftoholic I'm not sure about that.

Anyway, I spoke too soon; the lag returned after about 48 hours. I ran with the console open during that period of time, and what always precedes the issue is some sort of volatile graphics driver error. I probably should have reinstalled Nvidia drivers, but I clean installed the entire OS instead, as this has been lingering on and I was at a point where I could afford to have a little downtime.
 
Joined
Mar 13, 2015
Messages
54
Motherboard
Gigabyte GA-Z170MX-Gaming 5
CPU
i7-6700K
Graphics
GTX 970
Mobile Phone
  1. iOS
There is a simple fix to the lags/hangs after 5 minutes of idle. Simply disable the offending mediaanalysisd which is part of Apple's video processing framework. Photos will just work fine, you'll only miss some metadata on videos, but it's not a big deal.

Enter the following command in Terminal:

sudo rm /System/Library/LaunchAgents/com.apple.mediaanalysisd.plist

and then log out/in. Problem solved. :)

If you prefer more elegant solutions, you can use the launchctl unload command instead of the simple delete. For a comlete peace of mind, you can also disable photoanalysisd.


Thank you! This has been plaguing me for months now! And now it's completely solved.
 
Top