Re: [Leo] Strange Core Data vs. Spotlight issue
Re: [Leo] Strange Core Data vs. Spotlight issue
- Subject: Re: [Leo] Strange Core Data vs. Spotlight issue
- From: Adam Knight <email@hidden>
- Date: Thu, 8 Nov 2007 16:31:45 -0600
On Nov 8, 2007, at 3:46 PM, Melissa J. Turner wrote:
You might also want to try fsusage to check on what mds is opening
while it thrashes. See if it's your notes file or a different one
that seems to be causing the choking, or if it's something else and
your just noticing the problem while in your application. In either
case, you might want to track down spotlight importers and see if
you've got any overlap on the files they try to import.
+Melissa
I followed something similar to that and ran the DTrace script
filebyproc.d and discovered that every time I switch notes I'm hitting
a fault and/or loading a NIB file to get the viewer (text, web, or
PDF) and that every time I'm doing those things Spotlight is opening
up the following files about forty times each:
1 17600 open:entry mds .
1 17600 open:entry mds .
1 17600 open:entry mds 0.indexGroups
1 17600 open:entry mds 0.indexIds
1 17600 open:entry mds 0.indexHead
1 17600 open:entry mds 0.indexPostings
1 17600 open:entry mds 0.indexPositions
1 17600 open:entry mds 0.indexDirectory
1 17600 open:entry mds 0.indexCompactDirectory
1 17600 open:entry mds 0.indexArrays
[repeats 45 times]
So it's not Core Data after all. However, for some reason, accessing
those files causes mds to go haywire. Well, at least I have a head
start on the issue and can try to see what's causing that. This is
really strange. I suppose it's updating the access time or something,
but even erasing the Spotlight database (by hand, from the install CD)
didn't resolve this. Oh well, I'll go file a bug...
Thanks for the lead!
Adam Knight
Notae: Organize your notes, organize your life - http://www.codepoetry.net/products/notae/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden