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

What is the program "mds"?

MacOS 10.10


A program has been running for a couple of hours now. It consuming vast amount of CPU time (average 25 - 40%) and thrashing the disk drive. Looking at the CPU Activity monitor shows a program named "mds" that is running as root; it is the culprit that is so slowing down this system.


Does anyone know what "mds" is, what it does? And can I kill it with impunity?

Posted on May 19, 2015 3:28 PM

Reply
16 replies

May 19, 2015 4:43 PM in response to Amir Delirious

Since your response to the Original Poster was both uninformed, neglectful, and, generally, unadvised and unknowledgeable about how OS X works

I will answer your general query that no one else seems to want to bring to your attention.


Here's is some information that you need to put to memory for your future reference and knowledge base of OS X.


Antivirus software is NOT needed if the Mac you are running is only running OS X. Antivirus apps interfere with normal performance and operation of a Mac because they program too many controls (program extensions) into the main OS X system software impacting/impeding general performance of a Mac.

Here are some of my tidbits of advice on how to avoid viruses in the future, if you encounter a virus, again.

Some anti-virus solutions can slow down your Mac, but to be honest, the best anit-virus app is you, the user and your brain.

Don't visit questionable websites or website you are unsure about.

Don't use Torrents or engage in "Torrenting"

Don't install pirated software or software downloaded from a questionable or unknown websites or untrutsted sources.

Java is still a vulnerability concern, if you do not need it, don't use it.

Use a browser filter and pop-up blocker

Don't open email attachments from email addresses that you do not recognize.

Install security updates when they become available

Educate yourself as to what threats are common and active.

In effect, use your own brain as the antivirus filter.

Follow that advise and in MOST cases, you will be fine and won't risk your Mac to potential Trojans, malware or viruses.

The only virus protection app, that is, generally recommended that is minimally invasive on the Mac OS X system, install


ClamXAV


http://www.clamxav.com/

Here's some more info to commit to memory.

DO NOT USE ANY SO CALLED APPS CLAIMING TO "CLEAN", "OPTIMIZE" OR "SPEED UP" A MAC!!!! EVER!!!!


Apps like MacKeeper, MacSweeper or any other maintenance apps like CleanMyMac 1 or 2, TuneUpMyMac, SpeedUpMyMac, MacCleanse or anything like these apps, installed on your Mac, while they appear to be helpful, can do too good a job of data "cleanup" causing the potential to do serious data corruption or data deletion and render a perfectly running OS completely dead and useless leaving you with a frozen, non-functional Mac.

Plus, these type of apps aren't really necessary OR needed. They really aren't.

There are manual methods to clear off unnecessary data off of a Mac that are safer and you have complete control over your Mac and not just leave a piece of auto cleaning software in charge of clearing off data off of a Mac. Their potential of causing OS X issues outweighs the implied good and benefits these types of hard drive or memory "cleaning" apps are written to do.

These types of system 'cleaning" apps are very poorly written and are really a scam to rob newbieand novice Mac users of their hard earned cash for a poorly written maintenance program that will do much more harm to a perfectly normal running OS X system than the good that the app developers purport these types of apps will do.

Plus, the software companies that write these apps make it hard to easily uninstall these apps if something DOES go wrong and these apps work in a way where you have no recovery or revert function to return a Mac back to its former, working state in the event something does go wrong.

It is best to never, EVER download and install these types of apps.

The risks to a normal performing Mac system and stored important data is too great a risk!

May 19, 2015 4:28 PM in response to jimoe

mds, I believe, stands for either mass device storage or mass device services. If you just, recently, upgraded your OS X system, the mds process is part of OS X Spotlight search process in which mds worker is indexing your Mac's hard drive to make it easier for Spotlight to do searches of your Mac's hard drive.

The mds process/activity/indexing takes some time to process depending on how much data is on your hard drive.

If you do not want to wait all of the time that is necessary for Spotlight/mds worker to entirely index your Mac's hard drive, you can go into OS X System Preferences Pane and under the Spotlight icon, disable this data indexing routine.

May 19, 2015 4:06 PM in response to jimoe

It's a component of Spotlight.

Step 1

These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.

Triple-click anywhere in the line below on this page to select it:

syslog -F '$Time $Message' -k Sender mdworker -o -k Message Rne Norm -k Sender mds | tail | pbcopy

Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad and start typing the name.

Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign ($) to appear.

The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.

The Terminal window doesn't show the output. Please don't copy anything from there.

If any personal information appears in the output, anonymize before posting, but don’t remove the context.

Step 2

Enter the following command as in Step 1 and post the output:

mdutil -as 2>&- | pbcopy

You can then quit Terminal.

Step 3

Launch the Console application in the same way you launched Terminal. In the Console window, look under the heading DIAGNOSTIC AND USAGE INFORMATION on the left for crash reports related to Spotlight. If you don't see that heading, select

View Show Log List

from the menu bar. A Spotlight crash report has a name beginning in "mds" or "mdworker" and ending in ".crash". Select the most recent such report, if any, from the System and User subcategories and post the entire contents—the text, please, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)

Please don’t post any other kind of diagnostic report, such as hang logs—they're very long and not helpful.

May 19, 2015 8:53 PM in response to MichelPM

> If you do not want to wait all of the time that is necessary for Spotlight/mds worker to entirely index your Mac's hard drive, you can go into OS X System Preferences Pane and under the Spotlight icon, disable this data indexing routine.

>

It was still indexing until 15 minutes ago. That puts its index time at about 7 hours with no end in sight. I did discover that the program "mds" can be terminated without apparent side effect. However, that is hardly a permanent solution; and it may have delayed effects.

I went to the System Panel, Spotlight. Alas, no option exists to disable the function. So I added the hard drive to the list of things to never index, under Privacy. I had also added the network-mounted drives but they did not survive a restart. Hopefully, "mds" ignores those.

May 19, 2015 8:58 PM in response to Linc Davis

syslog -F '$Time $Message' -k Sender mdworker -o -k Message Rne Norm -k Sender mds | tail | pbcopy

Here are the results of the above:


root:/w> syslog -F '$Time $Message' -k Sender mdworker -o -k Message Rne Norm -k Sender mds | tail | pbcopy

syslog: command not found

If 'pbcopy' is not a typo you can use command-not-found to lookup the package that contains it, like this:

cnf pbcopy

May 19, 2015 9:41 PM in response to Linc Davis

No, I was not.


syslog -F '$Time $Message' -k Sender mdworker -o -k Message Rne Norm -k Sender mds | tail | pbcopy

I had already added the main hard drive and the backup drive to the Privacy list before I ran this.


Here are the results of the above:

sh-3.2# syslog -F '$Time $Message' -k Sender mdworker -o -k Message Rne Norm -k Sender mds | tail

May 19 20:22:32 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:22:32 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:22:32 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:22:32 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:22:32 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:22:32 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:30:09 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:30:14 (Server.Warning:445) No stores registered for metascope "kMDQueryScopeComputer"

May 19 20:32:34 code validation failed in the process of getting signing information: Error Domain=NSOSStatusErrorDomain Code=-67062 "The operation couldn’t be completed. (OSStatus error -67062.)"

May 19 20:39:37 code validation failed in the process of getting signing information: Error Domain=NSOSStatusErrorDomain Code=-67062 "The operation couldn’t be completed. (OSStatus error -67062.)"


sh-3.2# mdutil -as 2>&-

/:

Indexing and searching disabled.

/Volumes/Seagate Bac:

Indexing and searching disabled.

/Volumes/Seagate Bac/Backups.backupdb:

Indexing enabled.

/Volumes/av-media:

Indexing disabled.

/Volumes/graphics:

Indexing disabled.

/Volumes/pub-data:

Indexing disabled.

What is the program "mds"?

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