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.

What is 'mds' and 'mdworker'?

My computer seems to be going reaaaally slow lately, and whenever I check activity monitor there is this program at root level called 'mds' that appears to be hogging my cpu and ram.

What are they, and do I really need them!?

I am also using HP software for my digital camera so the slowness is probably related to that.

MacBook, Mac OS X (10.5.7)

Posted on May 31, 2009 1:42 PM

Reply
Question marked as Best reply

Posted on May 31, 2009 1:45 PM

http://discussions.apple.com/thread.jspa?messageID=6579920
12 replies

May 31, 2009 2:34 PM in response to hpr3

Yeah I read a bit about it, but you know I am kind of getting a bit fed up of spending too much time preforming maintenance on this machine rather than using it for something more useful or interesting. I feel sometime that I might as well have just bought a windows system.

I have something I need to do, that spotlight thing is just for quick searching and nothing else right?

ps I am typing this with my wireless keyboard disconnected, waste of time buying that thing, it just causing my MM to malfunction all the time.

May 31, 2009 3:44 PM in response to STU9000

Spotlight is indeed a main user of mds and mdworker, but it's not the only one.

OSX uses them for various things, as does Time Machine.

If you're using Time Machine, exclude your backup drive/partition from Spotlight indexing.

If you're running any anti-virus scanning, some of them use these processes, too. So also exclude your TM drive and anything else you can (such as a photo library) from scanning.

If these are still a problem, you might be able to figure out what they're working on by selecting Inspect on them via Activity Monitor (in your Applications/Utilities folder), then click the +Open files and ports+ tab (if it appears).

May 31, 2009 5:01 PM in response to V.K.

V.K. wrote:
Pondini wrote:
Spotlight is indeed a main user of mds and mdworker, but it's not the only one.


that's wrong AFAIK. I believe both processes are for spotlight only which includes indexing TM backups. I don't believe any AV programs use them directly.


from http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/mds.8.ht ml

"It serves all clients of the metadata APIs, including Spotlight"

If there were only two (Spotlight and TM), I suspect it would say that.

It's my understanding that it's available to any process, including 3rd-party apps, that want to use it to extract metadata from a file, especially since it can determine and use the proper "mdimporter" routine for the file type in question.

There were a couple of posts a few months ago (which of course I can't find now), reporting mds/mdworker using lots of CPU, even with all disks excluded from Spotlight. Cancelling the anti-virus scanning seems to have fixed it.

Jun 1, 2009 6:48 AM in response to Pondini

I'm not really sure I understand what indexing is, but I'd guess this spotlight is building up a temporary database of files on my computer whenever I turn my computer on for quick keyword searches. I don't normally search for photos using spotlight so I turn that onto privacy mode. I would also hazard a guess that the problem here stems from the fact that I am using third party software digital camera software and it is not communicating with Spotlight as to the whereabouts of the files? No, that is probably not quite right.

I don't understand why it needs to run every time I start up, should it not already have this information from the previous time it was being used.

Jun 1, 2009 7:47 AM in response to STU9000

STU9000 wrote:
I'm not really sure I understand what indexing is, but I'd guess this spotlight is building up a temporary database of files on my computer whenever I turn my computer on for quick keyword searches. I don't normally search for photos using spotlight so I turn that onto privacy mode.


Spotlight is rather quirky, to put it politely. I've never quite understood the big spike after booting, either, as it does put a hidden index on each drive, and does index files as they're added or changed. It also examines any (non-excluded) disk/partition as soon as it's attached, so perhaps that's at least part of what's going on.

I would also hazard a guess that the problem here stems from the fact that I am using third party software digital camera software and it is not communicating with Spotlight as to the whereabouts of the files? No, that is probably not quite right.


It is quite possible for 3rd-party software to be involved, somehow or other, directly or indirectly. The only way to tell for sure would be to turn it off. Even that might not do it, as there could be a separate autostart process doing something, too.

I don't understand why it needs to run every time I start up, should it not already have this information from the previous time it was being used.


Ditto.

One thing you might try is, set up a different user. Do a shutdown and start-up and log in as that other user and see if the problem persists.

What is 'mds' and 'mdworker'?

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