What is mdworker on Mac, and why is it using so much CPU?

By Anil Gautam · Updated

mdworker is a macOS system process that reads the contents of files so Spotlight can search them.

Spotlight file reader (older) · Leave it · Settles on its own
mdworker at a glance
Shown in Activity Monitor asmdworker
Made byApple, part of macOS
WhySlow's verdictLeave it. Settles on its own

See what’s slowing your Mac right now: download WhySlow free. One-click fixes cost $10, once or yearly.

WhySlow process list on a real Mac with a plain-English verdict for every process
Real screenshot: WhySlow lists every process with a verdict. Search for mdworker to see it explained on your Mac.

Why is mdworker using so much CPU?

Busy when many new or changed files need indexing.

What mdworker does

mdworker is the older name for the Spotlight file reader that mdworker_shared replaced in recent versions of macOS. Some older importers and macOS versions still use it, and it does the same job: reading files so Spotlight can index their contents.

Should you quit mdworker?

No. mdworker is part of macOS. Quitting it can break things, and macOS starts it again anyway. When it is busy, it usually settles on its own.

Check that search still finds your files

Try finding a file you know exists and note whether the result is missing. Indexing after an update or large transfer can take time without indicating a fault. If you exclude a folder in Search Privacy, its contents will no longer appear in Spotlight results; choose folders deliberately.

Rebuilding is a troubleshooting step for unexpected search results. It can make indexing activity increase before it settles. Follow Apple’s current instructions for your macOS version and allow that new pass to finish before judging the result.

Is mdworker a virus?

The name mdworker alone can't prove a process is genuine, and this page isn't a security scan. Check where it runs from: genuine macOS processes run from system folders such as /System/Library and /usr/libexec. In Activity Monitor, double-click mdworker and choose Open Files and Ports to see its location. If it appeared right after you installed something unexpected, don't grant it more permissions, and ask the software vendor or Apple Support.

How to check mdworker on your Mac

Open Activity Monitor (Applications › Utilities), choose the CPU tab and type mdworker in the search field. The % CPU column shows how busy it is: 100% means one full processor core. Watch it for a minute while you repeat the task that felt slow.

What to do if mdworker stays busy

How WhySlow helps with mdworker

See what's slowing your Mac right now

Free to explain. One-click fixes cost $10, once or yearly.

Download free

Sources

The process description comes from WhySlow’s app catalog. Diagnosis depends on your workload and the version of macOS or the app you use. For an unfamiliar process, start with Apple’s guide to inspecting processes and reading CPU activity.

For indexing problems, follow Apple’s Spotlight guidance. Duration varies; a fixed three-hour cutoff is not a reliable diagnosis.

Need a broader starting point? Follow the slow Mac checklist or learn about memory pressure.

Related processes