Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

MDS and mdworker processes gone wild

Ever since I upgraded to Lion on my Macbook Pro I am getting intermittant periods where the MDS and MDWORKER processes completely take over the CPU and all apparent activity for minutes at a time. It's now been a week, so I'm quite sure Spotlight is done indexing the drive. What are my options?


User uploaded file

MacBook Pro 15" (early 2009)-OTHER, Mac OS X (10.7), 2.8GHz Core 2, 8GB RAM, 500GB HD

Posted on Jul 27, 2011 5:02 PM

Reply
43 replies

Jul 15, 2017 6:43 AM in response to adamhauck

HI All

I had the same problem ( constant indexing and battery life and overall cpu performance being compromised ) on a MBP late 2011 , and managed to solve it the following way:


go into system preferences and the to spotlight


in the privacy tab select "+" and then your main HDD or SSD

a warning will pop up and ask if you are sure .... click yes


restart your machine

go back to system settings and spotlight privacy

select your main drive from the list and click on the "-"


this will force a re-indexing of your whole drive and will take some time , but let it run the full time before switching off or restarting again

hope it helps


ER

Jul 27, 2011 7:55 PM in response to adamhauck

I'm having the same problem you are, and I'm exploring options.


First I noticed that Backblaze (backup service) was causing the problem, but I fixed that by including the /library/backblaze folder in Spotlight's privacy area. The complete lockup that was causing is now no longer a problem.


However, I'm noticing that most of the cycles are going to indexing my Time Machine backups, which Spotlight will not allow in the privacy area. It looks like it's indexing many of my old mailbox files from mail.app that are backed up on the Time Machine (Time Capsule) disk. I really don't see the logic to this. I've had the computer on and idling with full access to Time Machine for many days now and this is still going on, with MacBook Pro fans running at full gun and CPU not quite maxing out, but frolicking between 5% and 65% or so on a regular basis with no other apps present. Activity monitor doesn't show anything else hogging cycles -- it's all mds and mdworker.


Something isn't right with this. I hope that the next update from Apple will fix this, or someone on the intertubes will come up with a quick solution.


All the above is on a MacBook Pro (late 2008). I do note that I have a MacBook Air (late 2010) that backs up to the same Time Machine but does NOT have Backblaze installed. (I put everything important on the MacBook Pro.) This machine does not seem to have these problems. Both computers are running Lion and have much of the same software. Backups are doing fine on both machines.


My temporary solution is to turn OFF Time Machine on the MacBook Pro. This does seem to make things much better -- although even at 5% CPU use the fan runs somewhat higher revs than I was used to with Snow Leopard. I then run a manual Time Machine cycle just before I turn in for the night. When I'm back to using the machine again, I make sure the Time Capsule is not mounted. I'm backing up any working files continually to Backblaze still, as well as to Dropbox, so cutting the Time Machine frequency down to once or twice a day is not too bad for now. I do not want this to continue, however.


Also, I have done the following: Repaired disk permissions, reset the SMC and PRAM, and started the computer up in safe mode fully, and then restarted in regular mode.


If anyone has any possible fixes, I'm listening and thanks!

Aug 5, 2011 6:40 PM in response to adamhauck

I had never heard of 'mdworker' since last night, and i shouldn't have ever heard of it ! But what i hear is that it (the problem) started with "Lion" and that's true for me. It was slowing down 'Aperture' enormously.

I don't use 'SpotLight' that often, but if i did, it's 'supporting' programs shouldn't slow down my 'primary' programs !

The same goes for "TimeMachine" ! I'm copying or importing from an external (in this case USB) disc to my iMac and at the same time TimeMachine is making a backup. Can't that wait ? Can't the mdworker wait ?


Re

-><-

Aug 5, 2011 7:11 PM in response to Linda Custer

I agree with you.


Spotlight just isn't ready for primetime. I had to set the privacy setting to save my mind for exploding -- the cpu cycles that constantly were used plus the fan noise while it was doing it. Now I don't have any search capability and worst of all I can't find anything in my mail folders. With Snow Leopard I used that feature hourly. I have 20,000 messages in my inbox alone.


Now It tells me I have to create a new Time Machine backup. Gone is my backup option for files I have been using over the past week in Lion. Secruity is killed!!


Plus the other problems, sluggish applications, taking forever to load programs (the bouncing icon), the fan noise, the ****** battery life, the heat, applications not working as they should - today I had to cancel iChat conference because my mic would stop working after a few minutes and that's using snow Leopard Server as the host. Worst of all in that case all of the other attendees were running Snow Leopard and laughing at me. They are not going to upgrade to Lion any time soon.


The loss of Rosetta is a pain. The poor network reaction to "wake from sleep" is pathetic.


The number and serverity of problems just leaves me in a shocked state. If I could o back to Snow Leopared I would in a heartbeat. However, I can't do that easily - thanks again Apple - and Time Machine has not even begun to create a new backup although it's been running for over 30 minutes.


Bad update! Warn your firends, co-worker and all to stay away until (if) Apple makes this a releasable OS upgrade. It might come to me losing all of my recent work and emails just to make the move back to Snow Leopard.


I though Lion Server was many steps backward so luckily I didn't touch any of our Snow Leopard servers. That would have been catastrophic.

Aug 12, 2011 11:56 PM in response to adamhauck

I've been having the same problems with mdworker. The difference in my case is, I don't use Time Capsule. Lion's been on my MacBook Pro for a couple of weeks now and should be beyond done indexing the five external hard drives connected to the laptop. In fact, I leave my computer on all night, every night, so why should it continue whatever it's doing in the middle of the day while I'm in the middle of a bunch of tasks?

Aug 19, 2011 4:31 AM in response to Linda Custer

i was reading these forums and decided and noticed that some process starting with 'bz' was running. i recall reading somewhere that backblaze could be at fault and realized that, while i'd disabled backblaze i had not actually uninstalled it as i wasn't sure if i still wanted to use their service after the trial.


well all i did was use their uninstaller (from http://www.backblaze.com/how-to-uninstall-backblaze.html -> The uninstaller is found in /Library/Backblaze/UninstallBackblaze.zip) and with 2 seconds the CPU churn disappeared including mds and mdworker!


this was the quickest fix i've seen in a long time. thought it could help others.

Aug 19, 2011 4:56 AM in response to adamhauck

adamhauck wrote:


Ever since I upgraded to Lion on my Macbook Pro I am getting intermittant periods where the MDS and MDWORKER processes completely take over the CPU and all apparent activity for minutes at a time. It's now been a week, so I'm quite sure Spotlight is done indexing the drive. What are my options?


Open Console and see what mds says it's doing. mds was indexing Time Machine on my Mac for a long time, but then it finally finished

MDS and mdworker processes gone wild

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