Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac OS X > Mac OS X 10.7 Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 1, 2011, 01:48 PM   #1
kbmb
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Lion - mds/mdworker spotlight indexing issue

Upgraded my Mom's early 2008 Macbook to Lion this weekend. Everything went fine. As usual we waited for the initial Spotlight reindexing to finish.

Problem is, now, seemingly randomly, her fans crank up and cpu spikes as a few mds and mdworker processes eat up cpu.

Anyone else seeing this?

I did go in this morning....added her HD to the privacy section.....then removed it. At which point Spotlight reindexed again.....but even though it's finished, it still happens.

No real pattern....just one minute fans at 1800rpm as normal.....the next, CPU up and fans at 4500rpm with the mds/mdworker processes working.


FYI...the mds/mdworker processes are NOT owned by her....they are under the All Processes tab....I think owned by root.

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 1, 2011, 01:51 PM   #2
murdercitydevil
macrumors 68000
 
murdercitydevil's Avatar
 
Join Date: Feb 2010
Location: california
Does she have TM backups enabled? Next time it happens check if TM is doing a backup.
__________________
15" High-Res Anti-Glare Macbook Pro, 2.66 GHz Core i7, 8GB RAM, nVidia 330M 512MB, 120GB Vertex 2
iPhone 4 32GB
Please search before you PM me about Wallpapers/Icons/Themes/etc!
murdercitydevil is offline   0 Reply With Quote
Old Aug 1, 2011, 01:54 PM   #3
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Quote:
Originally Posted by murdercitydevil View Post
Does she have TM backups enabled? Next time it happens check if TM is doing a backup.
She does has TM backups....to a Time Capsule.

We checked this morning....and at one point it was spiking when a TM backup was running....but after it finished.....15 minutes later or so, after it settled down, it spiked again with no TM backup running.

What's weird is I have the same 2008 Macbook....also backing up to the same style Time Capsule. My machine isn't having the issue.

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 2, 2011, 01:51 PM   #4
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Ok, so looking at the system log....this might have something to do with Spotlight trying to index her time Machine backups.

No idea why....since I thought Spotlight automatically excludes the TM backups from indexing.

Now I know on my Mac Pro, which has a TM drive but it's hooked up via FW800.....I can see the drive in the TM prefs as excluded. What's weird on MY Macbook, which is backing up to a Time Capsule.....is in the options, I don't SEE the Time Capsule listed. However, I'm assuming Spotlight automatically excludes the TC backups from indexing?

I'm seeing errors like this in her system.log:

Quote:
Aug 2 11:31:29 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
Aug 2 11:40:30 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
Aug 2 11:50:30 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
Aug 2 12:00:30 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
Aug 2 12:10:30 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
Aug 2 12:20:30 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
and:

Quote:
Aug 2 08:23:31 mds[3184]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V2/57967A66-77F9-42FC-8EF1-A5E62D5CEE47)(Warning) IndexGeneral in _SIOpenIndex:datastore clean, index dirty, recovering...
Aug 2 08:23:34 mds[3184]: (Normal) DiskStore: Rebuilding index for /Volumes/Time Machine Backups/Backups.backupdb
and:

Quote:
Aug 2 12:39:03 com.apple.mdworker.pool.2[8780]: I/O error : encoder error
Aug 2 12:40:36 com.apple.backupd[8445]: Waiting for Spotlight to finish indexing /Volumes/Time Machine Backups/Backups.backupdb
Aug 2 12:41:04 mdworker[8781]: *** Failed to decode data, treating as binary
Aug 2 12:41:39 mdworker32[8782]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Aug 2 12:45:24 com.apple.mdworker.pool.2[8780]: I/O error : encoder error

So.....because this is not her primary Mac....here's what I'm trying. I wiped the Time Capsule disk....and am starting over with the TM backups.

Guess I'll see if that solves it unless anyone else sees anything from the above logs.

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 3, 2011, 01:12 PM   #5
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Interesting.....my Macbook just started showing some of these same Spotlight indexing errors today. Fans going full blast.

Anyone else that backs up to a Time Capsule see any of these errors?

And can anyone confirm....does Spotlight by default not index Time Machine volumes? I know on my Mac Pro that has a FW Time MAchine drive....I see it excluded in Spotlight settings. But for the Time Capsule one....since it's not mounted continuously, I don't see it (I don't see it even when it is mounted).

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 3, 2011, 01:14 PM   #6
murdercitydevil
macrumors 68000
 
murdercitydevil's Avatar
 
Join Date: Feb 2010
Location: california
Quote:
Originally Posted by kbmb View Post
Interesting.....my Macbook just started showing some of these same Spotlight indexing errors today. Fans going full blast.

Anyone else that backs up to a Time Capsule see any of these errors?

And can anyone confirm....does Spotlight by default not index Time Machine volumes? I know on my Mac Pro that has a FW Time MAchine drive....I see it excluded in Spotlight settings. But for the Time Capsule one....since it's not mounted continuously, I don't see it (I don't see it even when it is mounted).

-Kevin
Spotlight will index TM unless you do a workaround to turn it off. The downside is that when you enter TM to find a file, you won't be able to use Spotlight to search.
__________________
15" High-Res Anti-Glare Macbook Pro, 2.66 GHz Core i7, 8GB RAM, nVidia 330M 512MB, 120GB Vertex 2
iPhone 4 32GB
Please search before you PM me about Wallpapers/Icons/Themes/etc!
murdercitydevil is offline   0 Reply With Quote
Old Aug 3, 2011, 01:26 PM   #7
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Quote:
Originally Posted by murdercitydevil View Post
Spotlight will index TM unless you do a workaround to turn it off. The downside is that when you enter TM to find a file, you won't be able to use Spotlight to search.
That's interesting, because I have my backup drive in the Spotlight privacy section, however, when I enter TM....I'm able to search just fine. I can even go back to the beginning of time....search for a file I know ONLY exists in TM....and it finds it.

Any ideas?

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 3, 2011, 03:08 PM   #8
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
So I found this command line utility that shows the current status.

Quote:
$ mdutil -sa
/:
Indexing enabled.
/Volumes/MacBackup:
Indexing and searching disabled.
/Volumes/MacBackup/Backups.backupdb:
Indexing enabled.

/Volumes/MacExternal:
Indexing and searching disabled.
/Volumes/Personal:
Indexing enabled.
/Volumes/StorageHD1:
Indexing enabled.
/Volumes/StorageHD2:
Indexing enabled.
/Volumes/Work:
Indexing enabled.
You can see that my MacBackup has indexing AND searching disabled....but the TM folder has Indexing enabled.

So I removed the MacBackup from the privacy and added it back. I got the attached screenshot.

So yeah, OS X is smart enough to always allow indexing of TM.....and you can control whether other files on the disk are indexed and searched.

I guess the issue here is, after Lion, Spotlight on the Macbook I have, is trying to reindex the whole thing....and it's taking a long time.

Wonder if it's a bug.

-Kevin
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2011-08-03 at 4.05.42 PM.png
Views:	35
Size:	41.0 KB
ID:	297377  
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 15, 2011, 06:51 AM   #9
designgeek
macrumors 65816
 
designgeek's Avatar
 
Join Date: Jan 2009
Location: "Town"
I've been having this issue too. mds won't die either, I've tried killing it but it can't be killed. I even tried killing spotlight all together and it still won't die... This is a bug that Apple needs to sort out. I have been having this problem since I upgraded to lion when it came out and as of yet no solution.
__________________
Posting: just one of the many things I do poorly.
designgeek is offline   0 Reply With Quote
Old Aug 15, 2011, 07:47 AM   #10
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Just an update on the mds processes for my Time Capsule TM backup.

I never wiped my TC backup.....and while it did take about a day....the mds processes that tried indexing the TM backup did eventually finish, and I don't see the spikes anymore.

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Aug 18, 2011, 07:18 AM   #11
parish
macrumors 6502a
 
parish's Avatar
 
Join Date: Apr 2009
Location: Wilts., UK
Found this thread when trying to find out about these mdworker processes and I think I now know what is causing the spikes in mdworker CPU usage.

I use TM on my MBP to backup to a USB disk which, because it's a laptop, is not connected a lot of the time. TM in Lion now makes local "snapshot" backups (in /.MobileBackups) when the TM backup disk is not available. I bet that it is these that are being indexed and causing the spikes and since TM does hourly backups they are happening at least that frequently.

However, it is probably not these processes that are causing the performance hit I'm seeing (which seems to coincide with these spikes) directly, it's because it's indexing the MBP's hard drive as opposed to the external one where the normal backups are located.
__________________
Retina MBP 2.6GHz/16GB/512GB | MBP3,1 15.4"/2.4GHz/6GB/160GB | 400MHz Ruby iMac G3 | 32GB iPhone 3GS | 32GB iPhone 4S | 32GB Wi-Fi iPad | AEBS | ATV3
parish is offline   0 Reply With Quote
Old Aug 24, 2011, 01:27 PM   #12
DarkestRitual
macrumors member
 
Join Date: Feb 2010
Location: DC Met Area
Quote:
Originally Posted by designgeek View Post
I've been having this issue too. mds won't die either, I've tried killing it but it can't be killed. I even tried killing spotlight all together and it still won't die... This is a bug that Apple needs to sort out. I have been having this problem since I upgraded to lion when it came out and as of yet no solution.
Yea, I've killed the process repeatedly, and eventually it gives up... still a pain in the rear!
__________________
Late 2008 Aluminum MacBook; 2GHz C2D, 4GB 1066MHz DDR3, 180GB OCZ Vertex 2 SSD
1GHz 15in. iMac G4, 1GB RAM
1.25GHz eMac (G4), 512MB RAM
2011 MacBook Air, 1.6GHz i5, 4GB RAM, 64GB SSD
DarkestRitual is offline   0 Reply With Quote
Old Sep 21, 2011, 06:46 AM   #13
danistyping
macrumors regular
 
Join Date: Dec 2009
Location: Boston, MA
soooo....anyone ever solve this? It just started happening to me and its driving. me. nuts!
danistyping is offline   0 Reply With Quote
Old Sep 21, 2011, 06:49 AM   #14
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Quote:
Originally Posted by danistyping View Post
soooo....anyone ever solve this? It just started happening to me and its driving. me. nuts!
Are you using a Time Capsule TM backup?

For my Mom....we wiped her backups are started over.
For mine.....I just made sure I left my MacBook on and running and after a while the processes settled down.

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Sep 21, 2011, 07:36 AM   #15
danistyping
macrumors regular
 
Join Date: Dec 2009
Location: Boston, MA
I'm using a 3rd party external HDD to backup with time machine, but I haven't done this since the problem began in fear that I would mess up my backup somehow.

do I need to plug that in to let mdworker/mds/whatever resolve itself?

The computer is done indexing it seems. However, these processes continue to run AND the craziest part is that they are writing something on all of my free hard drive space! I can literally watch my 50 free gigs disappear over the course of about an hour or two in activity monitor....my internal HDD spins like crazy the whole time while mdworker is running at over 100% cpu.

This is def a software issue fyi, the guest account boots fine.
danistyping is offline   0 Reply With Quote
Old Sep 21, 2011, 08:08 AM   #16
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Quote:
Originally Posted by danistyping View Post
I'm using a 3rd party external HDD to backup with time machine, but I haven't done this since the problem began in fear that I would mess up my backup somehow.

do I need to plug that in to let mdworker/mds/whatever resolve itself?

The computer is done indexing it seems. However, these processes continue to run AND the craziest part is that they are writing something on all of my free hard drive space! I can literally watch my 50 free gigs disappear over the course of about an hour or two in activity monitor....my internal HDD spins like crazy the whole time while mdworker is running at over 100% cpu.

This is def a software issue fyi, the guest account boots fine.
If those processes are running when your external isn't connected....then I'd say something else is causing it.

You can try going into Spotlight prefs and adding all your drives to the Privacy section. Wait a few minutes....then remove them. This should cause Spotlight to re-index the drive(s). This will cause MDS to spike again....but once it's done it should be fine.

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Sep 21, 2011, 09:18 AM   #17
danistyping
macrumors regular
 
Join Date: Dec 2009
Location: Boston, MA
THANK. YOU. KEVIN!

all i had to do was add macintosh hd to privacy and then remove it. now its re-indexing like a NORMAL computer. I can't believe that no one at apple thought of this, nor did anyone else in any online forum. You are the s***.
danistyping is offline   0 Reply With Quote
Old Sep 21, 2011, 09:21 AM   #18
kbmb
Thread Starter
macrumors 68030
 
kbmb's Avatar
 
Join Date: Mar 2007
Location: NH
Quote:
Originally Posted by danistyping View Post
THANK. YOU. KEVIN!

all i had to do was add macintosh hd to privacy and then remove it. now its re-indexing like a NORMAL computer. I can't believe that no one at apple thought of this, nor did anyone else in any online forum. You are the s***.
Glad it's working. Fingers crossed that it finishes the full re-index and doesn't give any more issues!

-Kevin
__________________
2010 Mac Pro 2.8 Quad, 27" ACD - MacBook 2.4 GHz
kbmb is offline   0 Reply With Quote
Old Sep 27, 2011, 09:15 PM   #19
oneofthesedaves
macrumors regular
 
Join Date: Jun 2011
Location: Tennessee
Is anyone using Time Machine and also an online backup service like Carbonite or Backblaze? I have found that for some reason using one of those backup services and Time Machine causes mdworker and mds to spike to 99% of CPU.
__________________
MacBook Pro 15"; MacBook Pro 13"; MacMini Server; iPad 16GB Wifi; iPhone 4 16GB; iPhone 3GS 16GB, iPod Touch 2nd Gen 16GB; AppleTV 2nd Gen; iPhone 3G 8GB Retired.
oneofthesedaves is offline   0 Reply With Quote
Old Oct 6, 2011, 03:05 AM   #20
madsb
macrumors newbie
 
Join Date: Oct 2011
Quote:
Originally Posted by oneofthesedaves View Post
Is anyone using Time Machine and also an online backup service like Carbonite or Backblaze? I have found that for some reason using one of those backup services and Time Machine causes mdworker and mds to spike to 99% of CPU.
If you're using Backblaze, just add /Library/Backblaze/ in the privacy tab in Spotlight settings. I've made a post about it here:

http://madsb.com/post/4256208203/bac...roblem-in-os-x
madsb is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac OS X > Mac OS X 10.7 Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Logic Pro and Lion - Open dialog boxes misbehaving, does not see files Flore Digital Audio 1 Feb 9, 2012 05:25 PM
Spotlight search has become slow.. DoodlyDoo Mac OS X 10.7 Lion 5 Nov 2, 2011 02:10 PM
Lion Weirdness paulold Mac OS X 10.7 Lion 1 Aug 10, 2011 09:42 PM
OS X Lion - Excessive heat issues... (MBP) legreve Mac Applications and Mac App Store 1 Jul 21, 2011 03:10 AM
spotlight/finder is broken. mds and mdworker consuming all cpu neuroshock Mac Applications and Mac App Store 1 Jul 19, 2011 05:21 PM


All times are GMT -5. The time now is 04:07 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC