Found this at Macworld.QUOTE
You know it’s there—why can’t Spotlight find it? The Tiger feature that promises to be your own personal Google does have its limitations, especially when searching your Mac’s most out-of-the-way corners. For greater control over the way Spotlight works, take a trip to Terminal. Its new mdfind , mdls , mdimport , and mdutil commands help you find files, control exactly what Spotlight indexes, and search by metadata. . . .
Run a search for
mdimport "os x"
A ton of stuff comes up. Somewhere in it there might be an answer as to why it's gobbling up the CPU cycles.
QUOTE(Jack W @ Feb 26 2007, 05:28 PM) [snapback]120243[/snapback]
So I turned on my external backup drive on my PowerBook G4 this morning.
The partitions mounted and the activity light started flashing and kept flashing and kept flashing ....
I asked myself "Self, What the heck is going on." Being the type that talks to myself, I had to have an answer, so I launched Activity Monitor. What a shock!
mdimport was consuming 30-80% of the cpu resources. and consuming . . .
I wasn't even connected to the network. And LilSnitch wasn't reporting anything, probably because I wasn't connected.
So the question is — What the heck is mdimport? And what does it do? And what was it doing? I figure there must be some guru out there that can provide answers!
Can I turn it off?
Jack
mdimport is the Spotlight disk indexing tool.
When mdimport begins using a great deal of the CPU and continues to use a lot of the CPU for a long time, this can often be an early sign that your hard drive is about to fail. The reason for this is that if mdimport finds a bad sector or some other disk error when it is building the index, it will continue to try to read the bad sector over and over and over again, consuming a great deal of CPU resources and causing a lot of disk activity in the process.
mdimport is a "canary in the coal mine" for impending disk failure. I would suggest you run Disk Utility and see what the SMART status is. I'd also suggest you make sure your backups are up to date.