Dear Blick, Steve, and WeatherCat system tinkerers,
Oops! Blick spotted a particularly embarrassing typo in the title of the article. I just corrected it and updated the link in my initial post. For completeness the correct link is:
http://wiki.trixology.com/index.php/How_to_Run_the_Spotlight_indexer_at_a_lower_priority_to_reduce_CPU_load_on_your_MacI 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.
I've been trying to avoid that extreme, but I might be forced into it. So far getting the
mds daemon to run more slowly has made my MacBook Pro behave much better. However, when I'm forced to upgrade to Mavericks, perhaps there will be no alternative.
Also, under Mavericks, there's a constantly growing process called mdflagwriter that is associated with Spotlight.
That's a bug - can't be anything else. No system software should have a memory leak like that. Apple sure has been sloppy in this latest OS release.
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.
Oh well!!
Cheers, Edouard