Spotlight-induced performance problems

Discussion in 'OS X El Capitan (10.11)' started by Alrescha, Feb 20, 2016.

  1. Alrescha, Feb 20, 2016
    Last edited: Apr 17, 2016

    Alrescha macrumors 68020

    Joined:
    Jan 1, 2008
    #1
    This is a sort of 'to-whom-it-may-concern post, as I think I have identified the cause and solution to a problem that started with El Capitan on my machines (1).

    The symptoms are:

    UserEventAgent, cfprefsd, and mds_stores all use unusually high amounts of CPU time.
    There is a constant reading/writing to disk at about 1-2 MB/sec.
    This goes on for hours and hours, far longer than it would take for Spotlight to index the entire disk.
    The system log contains many messages of the form:
    com.apple.CDScheduler[pid]: *** LOG MESSAGE QUOTA EXCEEDED...

    This event gets triggered seemingly randomly, sometimes by Time Machine starting up. Turning off Time Machine reduces but does not eliminate the problem.

    Turning off Spotlight, either by command-line or excluding whole drives in System Preferences will make the problem go away. Unfortunately, Spotlight is a useful thing, so:

    The solution appears to be to identify and exclude those directories which contain files in oddball formats which get updated a lot. That sounds a bit vague, but in my case excluding directories like the following has eliminated the problem:

    Usually in Library/Application Support or Documents, directories belonging to:

    Parallels
    Steam
    VMWare
    also the download directories of things like bittorrent/usenet programs.

    I hope this information is useful to someone,

    A.

    (1) I think I have solved this problem. Creating this thread will surely cause my computer to start acting up if I have not actually fixed it.

    Messing with Spotlight improved this situation in that it dramatically reduced the frequency of the problem. It did not eliminate it. I threw in the towel and did a re-install over my existing El Capitan installation.

    The reinstall got rid of the problem for a while, but it eventually came back. I've given up trying to solve it - I have not found any useful logs. There is a utility called 'mddiagnose' which collects all kinds of data about what is going on with Spotlight, but it points to no smoking gun. Running it stops the runaway CPU use.

    I have given up trying to solve this for now. I have written a script that monitors UserEventAgent and shoots mds_stores whenever UEA CPU gets too high. Happens about once a day :-(

    A.
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Thanks, Alrescha! I have both VMware and Steam installed, but haven't noticed severe performance degradation. I will give this a try.
     
  3. steve23094 macrumors 68000

    steve23094

    Joined:
    Apr 23, 2013
    #3
    If you haven't got a problem then you don't need to make any changes.

    I have Steam, and the previous versions of Parallels and VMWare and have not encountered these problems. However I did notice that Time Machine would have to back up the entire virtual machines each time they were booted, but there is a Preference setting to switch TM backup off in Parallels (and I think VMWare too, can't remember ).
     
  4. Alrescha, Feb 20, 2016
    Last edited: Apr 17, 2016

    Alrescha thread starter macrumors 68020

    Joined:
    Jan 1, 2008
    #4
    I do not encounter any severe performance degradation as a result of this problem, but I have an SSD and plenty of CPU to spare. I just come back to my machine to find that it is needlessly beating up the drive and heating up the room.

    I have updated my original post, as this problem will not go away.

    A.
     

Share This Page