Spotlight disabled - but mds still appearing

I've finally narrowed down my exceptionally poor battery life on my brand new Macbook Pro to spotlight. The MDS process goes into total overdrive using up 103% CPU, fans roaring and battery of less than 30mins on a full charge. I think I'm exacerbating the situation as my daily workflow as a photographer involves transferring files from 10 or 20 different SD cards to various different external hard drives which then get sent out to clients - so I'm rarely using the same hard drive each time


Blocking an SD card from working appears to put a file on the card that then stops the camera from reading it, so I can't use the privacy settings in spotlight for that.


I've used the commands

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

and

sudo mdutil -a -i off

and

mdutil -as | open -ef (which pops up a text file saying spotlight server is disabled)

I thought this meant spotlight was well and truly dead and for an hour or so it seemed to be working, battery life indicated it would last over 10 hours - perfect! I then switched SD cards out and lo and behold fans go wild again, spotlight is listed as an app using significant battery and mds is back at the top of the process list.


I can work around not having spotlight, but I can't work around the terrible performance with it on - is there any way at all to kill it permanently or a command that I can plug in that will stop it ever touching any external drive?

Posted on Mar 7, 2017 2:38 PM

Reply
6 replies

Mar 7, 2017 2:46 PM in response to evie0110

I think your particular problem has to do with each of the SD memory cards getting mounted causes the Spotlight index to start over. When you use the "mdutil -a -i off" that only applied to currently mounted volumes so when you mount a new one it still starts Spotlight.


You can try


sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist


Found this at https://recomhub.com/blog/how-to-turn-off-and-on-spotlight-in-mac-os-sierra


Good luck...

Mar 7, 2017 3:00 PM in response to dot.com

Also, noticed that what really happens when you disable Spotlight on a volume, is that a special file is created/modified in the folder that contains the Spotlight stuff, i.e. /Volume_name/.Spotlight-v100/VolumeConfiguration.plist - that might be what is causing problems when you try putting the memory card back in the camera, so maybe remove that entire .Spotlight-v100 tree from the SD card before unmounting it (assuming you have already disabled Spotlight from running on the volume)?


Good luck...

Mar 7, 2017 6:11 PM in response to U-96

NO idea what the difference is. I didn't know about the .noindex trick until doing a little research trying to figure out what might help the OP (did not come across your trick until you mentioned it). After looking around I'm guessing that your trick is possibly an older trick but not certain. Apparently all names that start with a "." or end with ".noindex" will not be indexed, as well as everything in /tmp as well as all the things that are in the Privacy pane of the Spotlight System Preferences plus your trick with the .metadata_never_index.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Spotlight disabled - but mds still appearing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.