How to see what files spotlight is currently indexing

7

1

Spotlight has been driving me nuts, over working my poor Harddrive so that my whole computer goes to a crawl. (CPU usage is still pretty low, then again I do have a core i7).

I saw somewhere that there was a way to see what it was currently indexing but I don't remember where.

Any ideas as to see what it's indexing?

I want to see if it's some files that keep doing it, then just put that folder in the ignore list.

Mint

Posted 2010-07-28T07:34:19.860

Reputation: 259

Answers

8

Have you tried

sudo opensnoop -p PID

where PID is the process ID of mdworker?

trolle3000

Posted 2010-07-28T07:34:19.860

Reputation: 1 670

2sudo opensnoop -n mdworker will avoid you finding the PID. – sdive – 2016-11-29T09:58:00.323

10

You can use the fs_usage command to see the list of files visited by the mdworker process:

sudo fs_usage -w -f filesys mdworker | egrep "open"

Hope it helps!

N.Martignole

Posted 2010-07-28T07:34:19.860

Reputation: 201