How To Slow Down Spotlight Indexer To Reduce For Mac
Dear WeatherCat Mac system tinkerers, Here is another result of my struggles to keep my new MacBook Pro more quiet. It turns out that this wasn't the worst offender, but Spotlight has a little system program running in the background to index all those files so you can find something based on what's inside those files. That indexing program is called mds. I found on the web instructions on how to change how mds runs so that it uses less CPU.

How To Slow Down Spotlight Indexer To Reduce For Machine Learning On Multicore
- The fans spooled down and all was back to normal. Spotlight was indeed the culprit. I briefly considered leaving Spotlight off until the next OS X update, but that proved too much of a pain.
- That in turn will slow down your Mac. That will stop Spotlight indexing the folder or volume and thus reduce the number of files it needs to index, meaning it spends less time indexing.
May 5, 2016 - -kill the actual spotlight process (it restarts automatically). Fix for spotlight but found a solution to disable spotlight and alleviate the CPU burn.
The instructions are quite involved, so I put it up on the Wiki: Now be aware!! This is by most standards hacking and things can go wrong.
Do not attempt to do this without all due caution! In particular, DO NOT attempt this on OS 10.9 (Mavericks)!! 'We' found out this doesn't work - da' hard way!! It should work fine and has been tested on OS 10.8 (Mountain Lion), OS 10.7 (Lion) and OS 10.6 (Snow Leopard). So if you are bold and adventurous - give it a try! Cheers, Edouard P.S.
Thanks to Stu for reviewing the instructions, and thanks to Blick for testing the procedure on OS 10.7 and providing some helpful editing suggestions. Special thanks to Steve for being da' victim who found out da' hard way this procedure doesn't work on OS 10.9 (Mavericks!!). I found that the best way to keep Spotlight in check is to not use it. I only have it searching for Applications, as that is needed for Launchpad and my MacUpdate app. The mds processes use much less CPU and RAM when they don't have to constantly look through every file.
I never got used to using Spotlight, so I don;t miss it. Also, under Mavericks, there's a constantly growing process called mdflagwriter that is associated with Spotlight. I use Activity monitor to kill it every few days. Only using Spotlight to search Applications it takes about a couple of days to consume 1 GB of RAM, but with the default Spotlight settings it was eating 3+ GB in a bit over a day! Force quitting mdflagwriter doesn't seem to have any deleterious effect on the System.
I assume this mdflagwriter process has some sort of 'keep alive' controller like the one that is build into the launchd system that Apple created to replace the clumsy UNIX apparatus to get background system utilities started. So when you kill it, you are doing something 'wrong,' but the system compensates for it. Hopefully Apple will get around to fixing this bug so you don't have to kill that process anymore. It is a bit disturbing to me that Apple felt the need to monitor these background processes to restart them. If the code was written correctly, they should crash very rarely indeed. That is how UNIX systems had worked for decades. It is a clear indication of what Stu has been telling us for a while: plenty of bugs in these 'modern' UNIX systems.
Cheers, Edouard.