From: Rowland McDonnell on
I noticed that my new iMac running MacOS 10.6.1 (and all current
updates) had its Finder using rather a lot of CPU - it seems (now, after
having been left running for several hours) to be using as near to 100%
CPU as it can for a lot of the time.

The processes mds and mdworker were also using noticable CPU when I
first noticed this, and still are.

Can this really be Spotlight indexing? For this long? And if so, how
come the Finder's using so much CPU?

Does anyone have any ideas?

I've pasted in a process sample and list of open files and ports from
the Finder.

Rowland.

Typical open files and ports for the Finder. In the example below, the
file cited near the end (/Users/Shared/Other not computer
stuff/Aerospace/SpaceX/Falcon 1/2005/Falcon1 structural
qualification_files/20050914_spacex_snag_files) has been varying every
few seconds.
--------------------------------------------------------------

/
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
/System/Library/TextEncodings/Unicode
Encodings.bundle/Contents/MacOS/Unicode Encodings
/System/Library/ColorSync/Profiles/sRGB Profile.icc
/System/Library/CoreServices/Encodings/libLatinSuppConverter.dylib
/System/Library/Fonts/LucidaGrande.ttc
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/
SArtFile.bin
/usr/share/icu/icudt40l.dat
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HITool
box.framework/Versions/A/Resources/Extras2.rsrc
/System/Library/Fonts/Helvetica.dfont
/System/Library/Caches/com.apple.IntlDataCache.le.kbdx
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/
ArtFile.bin
/System/Library/Keyboard
Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayo
uts-L.dat
/private/var/folders/Vu/Vux5fEaRGG88T75ssiYWXk+++TM/-Caches-/com.apple.L
aunchServices-025502.csstore
/usr/lib/dyld
/private/var/db/dyld/dyld_shared_cache_x86_64
/dev/null
->0x083d63ec
->0x083d63ec
/private/etc/security/audit_control
count=1, state=0x2
->0x083d2c60
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HITool
box.framework/Versions/A/Resources/Extras2.rsrc
->0x083d34d0
->0x083d2d80
->0x083d3440
/Users/Shared/Other not computer stuff/Aerospace/SpaceX/Falcon
1/2005/Falcon1 structural qualification_files/20050914_spacex_snag_files
/private/etc/security/audit_class
--------------------------------------------------------------


And now a process sample also from the Finder, taken just before copying
the above open files and ports list.

------------------------------------------------------------------------
Sampling process 90 for 3 seconds with 1 millisecond of run time between
samples
Sampling completed, processing symbols...
Analysis of sampling Finder (pid 90) every 1 millisecond
Call graph:
2199 Thread_659 DispatchQueue_1: com.apple.main-thread (serial)
2199 0x10000569c
2199 0x1000056d9
2199 NSApplicationMain
2199 -[NSApplication run]
2199 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
2199 _DPSNextEvent
2199 BlockUntilNextEventMatchingListInMode
2199 ReceiveNextEventCommon
2199 RunCurrentEventLoopInMode
2199 CFRunLoopRunSpecific
2199 __CFRunLoopRun
2199 mach_msg
2199 mach_msg_trap
2199 Thread_666 DispatchQueue_2: com.apple.libdispatch-manager
(serial)
2199 start_wqthread
2199 _pthread_wqthread
2199 _dispatch_worker_thread2
2199 _dispatch_queue_invoke
2199 _dispatch_mgr_invoke
2199 kevent
2199 Thread_669
2199 thread_start
2199 _pthread_start
2199 PrivateMPEntryPoint
2199
TSystemNotificationTask::SystemNotificationTaskProc(void*)
2199 CFRunLoopRun
2199 CFRunLoopRunSpecific
2199 __CFRunLoopRun
2199 mach_msg
2199 mach_msg_trap
2199 Thread_788
2199 thread_start
2199 _pthread_start
2199 __CFSocketManager
2199 select$DARWIN_EXTSN
2199 Thread_91867 DispatchQueue_29:
TFSVolumeInfo::GetSizingGCDQueue (serial)
2199 start_wqthread
2199 _pthread_wqthread
2199 _dispatch_worker_thread2
2199 _dispatch_queue_invoke
2199 _dispatch_queue_drain
2199 _dispatch_call_block_and_release
2199 __PostFolderSizingTaskRequest_block_invoke_5
2199 TNode::HandleFolderSizingRequests(TNodeTask*,
TFolderSizingThread*)
2199
TNode::HandleFolderSizingRequest(TCountedPtr<TNodeTask> const&,
TFolderSizingThread*)
2199 TFSInfoSizer::Sizing(TCountedPtr<TFSInfo>
const&)
2199 TOperationSizer::ComputeSize()
2199
TOperationSizer::Sizing(TCountedPtr<TCFURLInfo> const&)
1381
TDeepCFURLIterator::Next(TCountedPtr<TCFURLInfo>&, int&, int&, bool&)
1381
TDeepCFURLIterator::NextInternal(TCountedPtr<TCFURLInfo>&, int&, int&,
bool&)
1321
TCFURLIterator::Next(TCountedPtr<TCFURLInfo>&)
1320
TCFURLIterator::NextRaw(TCountedPtr<TCFURLInfo>&)
1019 _URLEnumeratorGetNextURL
951
_GetDirectoryURLs(_CFURLEnumerator*)
857 ftsattr_read$INODE64
848 ftsattr_build
804 getdirentriesattr
14 open
12 close
5 closedirattr
4
szone_free_definite_size
3
szone_free_definite_size
1
small_free_list_remove_ptr
1 pthread_mutex_destroy
4 ftsattr_alloc
3 malloc
3 malloc_zone_malloc
3
szone_malloc_should_clear
3
tiny_malloc_from_free_list
2
tiny_malloc_from_free_list
1
tiny_free_list_add_ptr
1 __memcpy
2 __memcpy
2 fcntl
2 __fcntl
2 ftsattr_build
1 ftsattr_parseattributes
1 pthread_mutex_lock
1 pthread_mutex_unlock
1 spin_unlock
3 ftsattr_read$INODE64
3 szone_free_definite_size
2 szone_free_definite_size
1 small_free_list_add_ptr
2 free
1 free
1 szone_size
1 strlen
43
_FSURLCreateWithPathAndAttributes
21
CFURLCreateFromFileSystemRepresentation
14
CFURLCreateWithFileSystemPathRelativeToBase
5 _CFURLAlloc
4
_CFRuntimeCreateInstance
3 malloc_zone_malloc
3
szone_malloc_should_clear
3
tiny_malloc_from_free_list
2
tiny_malloc_from_free_list
1
tiny_free_list_add_ptr
1
_CFRuntimeCreateInstance
1 dyld_stub_memset
4
CFURLCreateWithFileSystemPathRelativeToBase
2 _CFURLInit
2 CFStringCreateCopy
2
__CFStringCreateImmutableFunnel3
2 __memcpy
1 CFStringAppend
1 CFStringGetCharacters
1
__CFStrConvertBytesToUnicode
5 CFStringCreateWithBytes
5
__CFStringCreateImmutableFunnel3
5
_CFRuntimeCreateInstance
4 __bzero
1 malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
2 _CFRelease
19
createBaseCacheWithPathAndAttributes(__CFAllocator const*, unsigned char
const*, unsigned int, unsigned char, attrlist const*, void const*,
FSMount*, __CFError**)
12
parseAttributeBuffer(__CFAllocator const*, unsigned char const*,
unsigned char, attrlist const*, void const*, FSMount*, _FileAttributes*,
unsigned int*)
6
parseAttributeBuffer(__CFAllocator const*, unsigned char const*,
unsigned char, attrlist const*, void const*, FSMount*, _FileAttributes*,
unsigned int*)
5
CFStringCreateWithBytes
5
__CFStringCreateImmutableFunnel3
4
__CFStringCreateImmutableFunnel3
1
_CFRuntimeCreateInstance
1
malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1 __bcopy
6 _CFRuntimeCreateInstance
2
_CFRuntimeCreateInstance
2 _FileCacheInit(void
const*)
1 __bzero
1 memset
1 __bzero
1 malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1 strncpy
2 __CFURLSetResourceInfoPtr
1 CFRelease
27 _CFRelease
17 _CFRelease
15 _FileCacheFinalize(void
const*)
15
_FileCacheReleaseContents(__FileCache*)
13 _CFRelease
4 szone_free
2 __spin_lock
2 filesec_free
1 free
1
szone_free_definite_size
2 free
2 szone_size
2
szone_free_definite_size
1
szone_free_definite_size
1
tiny_free_list_add_ptr
1
__CFStringDeallocate
1 CFRelease
1 __compare_and_swap32
2 szone_free
6 szone_free
3 szone_free
3 tiny_free_list_add_ptr
4 __CFURLDeallocate
4 _CFRelease
2 _CFRelease
2 szone_free
1 szone_free
1
tiny_free_list_add_ptr
11 FSMount::FSMount(unsigned
int, FSMountNumberType, int*)
6
FileIDTreeGetVRefNumForDevice
4
FSNodeStorageGetAndLockCurrentUniverse
2
_SCSessionUniverseByUIDAcquireAndLock
1 __spin_lock
1 pthread_mutex_lock
2 geteuid
2
FileIDTree_FindVolumeRecordFromDeviceID
1
FileIDTreeGetRootEntryBridge
1
_SCSessionUniverseGetServiceMasterRefPtr
1
FileIDTree_FindVolumeRecordFromDeviceID
5
FSMount::initAndLockVolumeInfo()
5
FileIDTreeLockSharedVolumeInfo
3
_SCSessionUniverseUnlockAndRelease
2
SCGetSessionLocalUniverseInfo
1
_SCSessionUniverseUnlockAndRelease
2
FSNodeStorageGetAndLockCurrentUniverse
1
_SCSessionUniverseByUIDAcquireAndLock
1
_SCGetServerRunLoop
1 geteuid
3
_GetDirectoryURLs(_CFURLEnumerator*)
3 __bzero
2 memset
2 operator new(unsigned long)
2 malloc
1 malloc
1 malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1 dyld_stub_malloc
1 dyld_stub_memmove
1 objc_memmove_collectable
67
_InitalizeDirectoryEnumerator(_CFURLEnumerator*)
24 __ftsattr_open
19 ftsattr_getattrlist
19
ftsattr_getattrlistRetry
19 getattrlist
3 ftsattr_calcAttrBufSize
1 ftsattr_alloc
1 malloc
1 malloc_zone_malloc
1
szone_malloc_should_clear
1
small_malloc_from_free_list
1
small_free_list_add_ptr
1 strlen
15 FSGetCanonicalPath(char
const*, char*, unsigned int, unsigned char, int*)
14 getattrlist
1 strcpy
12
_FSURLGetAttrListForPropertyKeys
8 CFDictionaryGetValue
7 CFBasicHashFindBucket
7
___CFBasicHashFindBucket1
3 __CFStringHash
2
__CFDictionaryCallback
1 CFEqual
1
__CFDictionaryCallback
1 CFHash
1
___CFBasicHashFindBucket1
1 CFDictionaryGetValue
4
_FSURLGetAttrListForPropertyKeys
9 getattrlist
3
CFURLGetFileSystemRepresentation
2
CFURLCreateStringWithFileSystemPath
1
CFStringCreateWithSubstring
1
__CFStringCreateImmutableFunnel3
1
_CFRuntimeCreateInstance
1 malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1 CFStringGetLength
1 _CFRelease
1 CFAllocatorDeallocate
3 FSMount::FSMount(unsigned
int, FSMountNumberType, int*)
2
FileIDTreeGetVRefNumForDevice
2
FSNodeStorageGetAndLockCurrentUniverse
2 geteuid
1
FSMount::initAndLockVolumeInfo()
1
FileIDTreeLockSharedVolumeInfo
1
_SCSessionUniverseUnlockAndRelease
1
OSAtomicCompareAndSwapIntBarrier
1
__compare_and_swap32
1
FileIDTreeUnlockSharedVolumeInfo
1
_SCSessionUniverseAcquireAndLock
1 _SCUniverseRetain
1
OSAtomicCompareAndSwapIntBarrier
1 _URLEnumeratorGetNextURL
291 TCFURLInfo::Initialize(__CFURL
const*, bool, bool)
281
TCFURLInfo::FetchProperties(bool)
261
_CFURLGetResourcePropertyFlags
261
_FSURLGetResourcePropertyFlags
236
prepareValuesForBitmap(__CFURL const*, __FileCache*,
_FilePropertyBitmap*, __CFError**)
228
LSPropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString
const* const*, void const**, long, void const*, __CFError**)
227
prepareBasicFlags(__CFURL const*, __FileCache*, __CFError**)
225
_LSCopyItemInfoForRefInfo
161
_LSCopyInfoForNode
125
FSNodePrepareCatalogInfo
80
_FSURLGetCatalogInfo
29
ConvertPOSIXNametoUTF16
23
ConvertUTF8toUTF16
19
LLConvertUTF8toUCS2
16
LLConvertUTF8toUTF16
3
LLConvertUTF8toUCS2
4
ConvertUTF8toUTF16
5
ConvertPOSIXNametoUTF16
1 strlcpy
22
_FSURLGetCatalogInfo
13
prepareValuesForBitmap(__CFURL const*, __FileCache*,
_FilePropertyBitmap*, __CFError**)
10
prepareValuesForBitmap(__CFURL const*, __FileCache*,
_FilePropertyBitmap*, __CFError**)
3
corePropertyProviderPrepareValues(__CFURL const*, __FileCache*,
__CFString const* const*, void const**, long, void const*, __CFError**)
3
getAttrListForCorePropertiesMissingFromCache(_FileCoreProperty const**,
long, __FileCache const*, attrlist*)
12
CFStringGetCString
8
__CFStringEncodeByteStream
4
CFStringEncodingIsValidEncoding
4
CFStringEncodingGetConverter
3
__CFGetConverter
2
__CFGetConverter
1
OSSpinLockLock
1
__spin_lock
2
memmove
1
__CFStringEncodeByteStream
1
__CFToUTF8
4
CFStringGetCString
2
__CFURLResourceInfoPtr
1
_FileCacheLock(__FileCache const*)
1
_getResourceInfo
17
CFStringEncodingBytesToUnicode
13
__CFFromUTF8
3
CFStringEncodingBytesToUnicode
1
__CFGetConverter
17
_FSNodeSetMoreInfo
13 calloc
8
malloc_zone_calloc
6
szone_malloc_should_clear
3
__bzero
2
memset
1
tiny_malloc_from_free_list
1
tiny_free_list_add_ptr
2
malloc_zone_calloc
5 calloc
3 realloc
2
szone_size
1 realloc
1
_FSNodeSetMoreInfo
5 __memcpy
2
FSNodePrepareCatalogInfo
2 __nanotime
1
mach_absolute_time
1 memcpy
13
_LSCanSetExtensionHidden
12
_LSCanHideExtension(LSContext*, FSNode*, LSUniChars const*, LSUniChars
const*)
6
_LSIsKnownExtensionUnicode
4
CSStringBindingFindStringAndBindings
2
CSStringBindingFindStringAndBindings
2
CSStringBindingGetBindings
2
CSMapGetValue
2
_CSMapFindBucketForKey
2
XCFBufInitWithUnicode
3
FSNodeIsDirectory
3
FSNodePrepareCatalogInfo
2
__nanotime
1
FSNodePrepareCatalogInfo
3
_LSNodeIsPackage
2
FSNodePreparePkgInfo
2 open
1 cerror
1
cthread_set_errno_self
1
_LSCanSetExtensionHidden
8
_LSGetBundleClassForNode
4
FSNodeCopyExtension
3
FSNodeCopyExtension
1
XCFBufAddCapacity
1
CSStringBindingFindStringAndBindings
1
CSStringBindingGetBindings
1
CSMapGetValue
1
CSMapSync
1
FSNodePrepareCatalogInfo
1 __nanotime
1
_LSGetBundleClassForExtension
1
_LSGetBundleClassForNode
6 _LSContextInit
4
_LSCopyLocalDatabase
1
CSRefRetain
1
OSSpinLockLock
1
_LSCopyLocalDatabase
1
_LSGetSession(unsigned int)
2
_LSDatabaseNeedsUpdate(LSDatabase*)
3
_LSGetBindingForNode
2
_LSGetBindingStateForNode(LSBindingState*, FSNode*)
2
_LSGetBinding(LSBindingState*)
2
_LSEvaluateClaimArray(LSBindingState*, unsigned int const*, unsigned
int)
2
CSStoreGetUnit
1
CSStoreGetUnit
1
_CSStoreUnitMarker(unsigned int, unsigned int)
1
_LSTypeDataInitForNode(LSContext*, LSTypeData*, FSNode*, __CFString
const*, unsigned int)
2
_LSGetExtensionInfo
1
_LSContextDestroy
1 CSRefRelease
1
_LSCopyInfoForNode
1
_LSHFSTypeIsSymLink
1 __memcpy
56
_LSCreateNodeOrURLFromExtendedInfoNoCopy
40
FSNodeCreateWithURL
18
_FSNodeCreateWithPathBytes
8
CSRefCreateInstance
8 malloc
6
malloc_zone_malloc
5
szone_malloc_should_clear
3
szone_malloc_should_clear
2
tiny_malloc_from_free_list
1
malloc_zone_malloc
2 malloc
5 __memcpy
2
_FSNodeCreateWithPathBytes
2 memcpy
1
OSAtomicCompareAndSwapIntBarrier
1
__compare_and_swap32
17
CFURLGetFileSystemRepresentation
9
_CFStringGetFileSystemRepresentation
7
CFStringGetFileSystemRepresentation
6
CFStringGetFileSystemRepresentation
1
CFUniCharDecompose
2
_CFStringGetFileSystemRepresentation
5
CFURLCreateStringWithFileSystemPath
3
CFURLHasDirectoryPath
1
CFURLCreateStringWithFileSystemPath
1
CFURLGetBaseURL
1 CFRelease
1 _CFRelease
1
szone_free
1
dyld_stub_OSAtomicCompareAndSwap32Barrier
5
FSNodeCreateWithURL
12
CFStringCompareWithOptionsAndLocale
4
CFStringGetCStringPtr
3
CFStringCompareWithOptionsAndLocale
3
__CFStringFillCharacterSetInlineBuffer
1
CFStringGetLength
1
CFUniCharGetBitmapPtrForPlane
2
CFStringCompare
1
CFStringCompare
1
CFStringGetLength
1
CFURLCopyScheme
1 CFRetain
1
_LSCreateNodeOrURLFromExtendedInfoNoCopy
4 CSRefRelease
4 _FSNodeDestroy
1 CFRelease
1
_FSNodeDestroy
1
dyld_stub_OSAtomicCompareAndSwap32Barrier
1
szone_free_definite_size
2
szone_free_definite_size
1
_LSCopyItemInfoForRefInfo
1 __spin_lock
1 _FileCacheSetFlags
1
prepareBasicFlags(__CFURL const*, __FileCache*, __CFError**)
1
LSPropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString
const* const*, void const**, long, void const*, __CFError**)
6
prepareValuesForBitmap(__CFURL const*, __FileCache*,
_FilePropertyBitmap*, __CFError**)
2
corePropertyProviderPrepareValues(__CFURL const*, __FileCache*,
__CFString const* const*, void const**, long, void const*, __CFError**)
2
getAttrListForCorePropertiesMissingFromCache(_FileCoreProperty const**,
long, __FileCache const*, attrlist*)
15
_FSURLGetResourcePropertyFlags
6
corePropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
3
corePropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
2
createHasHiddenExtensionValue(__CFURL const*, _FileAttributes const*,
void*)
1
CFStringCompareWithOptionsAndLocale
1
CFStringGetCStringPtr
1
createHasHiddenExtensionValue(__CFURL const*, _FileAttributes const*,
void*)
1
createIsUserImmutableValue(__CFURL const*, _FileAttributes const*,
void*)
3
LSPropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
3
copyIsApplicationValue(__CFURL const*, __FileCache const*, void*)
2 _FileCacheGetFlags
1
copyIsApplicationValue(__CFURL const*, __FileCache const*, void*)
1
_FileCacheLock(__FileCache const*)
12
CFURLCopyResourcePropertyForKey
12
_FSURLCopyResourcePropertyForKey
6 CFDictionaryGetValue
6 CFBasicHashFindBucket
5
___CFBasicHashFindBucket1
4
___CFBasicHashFindBucket1
1 __CFStringHash
1
CFBasicHashFindBucket
3
_FileCacheLock(__FileCache const*)
1 __spin_lock_try
1
corePropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
1
createNameValue(__CFURL const*, _FileAttributes const*, void*)
1 CFRetain
1 dyld_stub_OSSpinLockTry
3
TCFURLInfo::FetchProperties(bool)
2
TUString::TUString(__CFString const*, bool)
1 _CFRelease
1
OSAtomicCompareAndSwapIntBarrier
1 dyld_stub_malloc
1 operator new(unsigned long)
2 _CFRelease
2 _CFRelease
2 _FileCacheFinalize(void
const*)
2
_FileCacheReleaseContents(__FileCache*)
2 _CFRelease
1
__FSFileSecurityDeallocate
1 filesec_free
1 CFRetain
1
OSAtomicCompareAndSwapIntBarrier
1 __compare_and_swap32
1 TCFURLInfo::Initialize(__CFURL
const*, bool, bool)
1
TCountedPtr<TChar>::operator=(TCountedPtr<TChar> const&)
1 dyld_stub_CFRelease
1 free
1 operator delete(void*)
1 szone_free_definite_size
1 tiny_free_list_add_ptr
7 TUString::operator=(TUString
const&)
5 _CFRelease
3 szone_free
1 __CFStringDeallocate
1 object_getClass
1 CFRelease
1 TUString::operator=(TUString
const&)
2
TCFURLIterator::NextRaw(TCountedPtr<TCFURLInfo>&)
1 OSAtomicCompareAndSwapIntBarrier
1 __compare_and_swap32
1
dyld_stub_CFURLEnumeratorGetNextURL
20
TCFURLIterator::First(TCountedPtr<TCFURLInfo>&)
20 TCFURLIterator::Reset()
20
_URLEnumeratorCreateForDirectoryURL
10
_SetHashCode(_CFURLEnumerator*)
9 __CFURLHash
7 CFURLCopyLastPathComponent
4
CFStringCreateWithSubstring
4
__CFStringCreateImmutableFunnel3
2
__CFStringCreateImmutableFunnel3
1
_CFRuntimeCreateInstance
1 malloc_zone_malloc
1 __memcpy
3
_rangeOfLastPathComponent
2
CFStringFindWithOptions
2
CFStringFindWithOptionsAndLocale
1
_rangeOfLastPathComponent
1 CFURLCopyHostName
1 __CFStringHash
1 CFHash
9 CFArrayCreateMutableCopy
8 CFArrayAppendValue
8 _CFArrayReplaceValues
3 __CFTypeCollectionRetain
2 _CFArrayReplaceValues
1 CFRetain
1 __memcpy
1 objc_memmove_collectable
1 CFArrayGetValueAtIndex
1
_URLEnumeratorCreate(__CFAllocator const*)
1 _CFRuntimeCreateInstance
1 __bzero
12 TDeepCFURLIterator::PopIterator()
9 TCFURLIterator::~TCFURLIterator()
8 _CFRelease
7 _URLEnumeratorFinalize(void
const*)
5 _CFRelease
5 __CFArrayReleaseValues
2 szone_free
1 szone_free
1 tiny_free_list_add_ptr
1 _CFAllocatorDeallocateGC
1 __CFArrayReleaseValues
1
__CFTypeCollectionRelease
2 szone_free
1 szone_free
1 tiny_free_list_add_ptr
1 ftsattr_close$INODE64
1 free
1 szone_size
1 CFRelease
2 TCFURLInfo::RemovePtrReference()
1 DecrementAtomic
1
OSAtomicCompareAndSwapIntBarrier
1 TCFURLInfo::~TCFURLInfo()
1 TDeepCFURLIterator::PopIterator()
10
TDeepCFURLIterator::RecordHardlink(std::tr1::unordered_map<std::pair<uns
igned long long, int>, std::pair<unsigned long long, int>, TINodeHasher,
std::equal_to<std::pair<unsigned long long, int> >,
std::allocator<std::pair<std::pair<unsigned long long, int> const,
std::pair<unsigned long long, int> > >, false>*,
TCountedPtr<TCFURLInfo>&)
7
TCFURLInfo::GetNumericalProperty(__CFString const*) const
6 CFURLCopyResourcePropertyForKey
6
_FSURLCopyResourcePropertyForKey
3 CFDictionaryGetValue
3 CFBasicHashFindBucket
3
___CFBasicHashFindBucket1
1 __CFDictionaryCallback
1 __CFStringHash
1
___CFBasicHashFindBucket1
2
_FSURLCopyResourcePropertyForKey
1
corePropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
1
TCFURLInfo::GetNumericalProperty(__CFString const*) const
2
TDeepCFURLIterator::RecordHardlink(std::tr1::unordered_map<std::pair<uns
igned long long, int>, std::pair<unsigned long long, int>, TINodeHasher,
std::equal_to<std::pair<unsigned long long, int> >,
std::allocator<std::pair<std::pair<unsigned long long, int> const,
std::pair<unsigned long long, int> > >, false>*,
TCountedPtr<TCFURLInfo>&)
1
dyld_stub_CFURLCopyResourcePropertyForKey
6
TCFURLInfo::GetNumericalProperty(__CFString const*) const
4 CFURLCopyResourcePropertyForKey
4 _FSURLCopyResourcePropertyForKey
3 CFDictionaryGetValue
3 CFBasicHashFindBucket
3 ___CFBasicHashFindBucket1
2
___CFBasicHashFindBucket1
1 __CFStringHash
1
corePropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
1 createLinkCountValue(__CFURL
const*, _FileAttributes const*, void*)
1
OSAtomicCompareAndSwapIntBarrier
1 __compare_and_swap32
1 CFNumberGetValue
1 __memcpy
1 _CFRelease
1 OSAtomicCompareAndSwapIntBarrier
6
TDeepCFURLIterator::NextInternal(TCountedPtr<TCFURLInfo>&, int&, int&,
bool&)
6
TDeepCFURLIterator::PushIterator(TCountedPtr<TCFURLInfo> const&)
3
TCFURLIterator::TCFURLIterator(TCountedPtr<TCFURLInfo> const&, __CFArray
const*, bool)
1 OSAtomicCompareAndSwapIntBarrier
1 __compare_and_swap32
1
TCFURLInfo::TCFURLInfo(TCFURLInfo const&)
1 operator new(unsigned long)
1 malloc
1 malloc_zone_malloc
1 dyld_stub__spin_unlock
1
TCFURLIterator::TCFURLIterator(TCountedPtr<TCFURLInfo> const&, __CFArray
const*, bool)
2 operator new(unsigned long)
2 malloc
2 malloc_zone_malloc
2 szone_malloc_should_clear
2 tiny_malloc_from_free_list
1 TCFURLInfo::IsTrash() const
1
CFStringCompareWithOptionsAndLocale
1 CFStringGetCStringPtr
811
TOperationSizer::AccumulateSize(TCountedPtr<TCFURLInfo> const&, bool)
752 TCFURLInfo::RealUserCanRead(bool*)
const
741 TCFURLInfo::GetOwner() const
728 CFURLCopyResourcePropertyForKey
728
_FSURLCopyResourcePropertyForKey
709
prepareValuesForBitmap(__CFURL const*, __FileCache*,
_FilePropertyBitmap*, __CFError**)
705
corePropertyProviderPrepareValues(__CFURL const*, __FileCache*,
__CFString const* const*, void const**, long, void const*, __CFError**)
585 getattrlist
106
parseAttributeBuffer(__CFAllocator const*, unsigned char const*,
unsigned char, attrlist const*, void const*, FSMount*, _FileAttributes*,
unsigned int*)
45
FSMount::FSMount(unsigned int, FSMountNumberType, int*)
27
FileIDTreeGetVRefNumForDevice
18
FSNodeStorageGetAndLockCurrentUniverse
9
_SCSessionUniverseByUIDAcquireAndLock
4
SCGetSessionLocalUniverseInfo
2
pthread_mutex_lock
1
OSAtomicCompareAndSwapIntBarrier
1
__compare_and_swap32
1
_SCSessionUniverseByUIDAcquireAndLock
1 __spin_lock
8 geteuid
1
_SCGetServerRunLoop
8
FileIDTree_FindVolumeRecordFromDeviceID
5
FSNodeEntry_FindByFileID
3
_SCUniverseGetEntryAddress
2
FSNodeEntry_FindByFileID
1
FileIDTreeGetRootEntryBridge
1
FileIDTree_FindVolumeRecordFromDeviceID
1
FileIDTree_GetRootEntry
1
_SCSessionUniverseUnlockAndRelease
1 __spin_lock
15
FSMount::initAndLockVolumeInfo()
14
FileIDTreeLockSharedVolumeInfo
10
FSNodeStorageGetAndLockCurrentUniverse
8 geteuid
2
_SCSessionUniverseByUIDAcquireAndLock
1
_SCSessionUniverseByUIDAcquireAndLock
1 __spin_lock
3
FileIDTree_FindVolumeRecord
1
FSNodeEntry_FindByFileID
1
FileIDTreeGetRootEntryBridge
1
_SCSessionUniverseGetServiceMasterRefPtr
1
FileIDTree_GetRootEntry
1
_SCSessionUniverseUnlockAndRelease
1
FSMount::initAndLockVolumeInfo()
3
FSMount::FSMount(unsigned int, FSMountNumberType, int*)
12 acl_copy_int_native
10 acl_init
7 __bzero
3 malloc
2 malloc
1 malloc_zone_malloc
1
szone_malloc_should_clear
2 acl_copy_int_native
11
parseAttributeBuffer(__CFAllocator const*, unsigned char const*,
unsigned char, attrlist const*, void const*, FSMount*, _FileAttributes*,
unsigned int*)
9 CFStringCreateWithBytes
7
__CFStringCreateImmutableFunnel3
4
__CFStringCreateImmutableFunnel3
3
_CFRuntimeCreateInstance
2 malloc_zone_malloc
2
szone_malloc_should_clear
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1
_CFRuntimeCreateInstance
2
CFStringCreateWithBytes
8
CreateFileSecFromACLAndPerms(_acl*, unsigned int, unsigned int, unsigned
short, unsigned char (*) [16], unsigned char (*) [16])
4 filesec_init
4 malloc
4 malloc_zone_malloc
4
szone_malloc_should_clear
3
tiny_malloc_from_free_list
2
tiny_malloc_from_free_list
1
tiny_free_list_add_ptr
1
szone_malloc_should_clear
3 filesec_set_property
2 filesec_set_property
1 uuid_copy
1 uuid_is_null
7 acl_free
3 free
2 szone_size
1 free
2 acl_free
2
szone_free_definite_size
2
small_free_list_add_ptr
5
FSFileSecurityCreateUsing_filesec_t
2
_CFRuntimeCreateInstance
2 __spin_lock
1 pthread_once
4
FileIDTreeUnlockSharedVolumeInfo
2
_SCSessionUniverseAcquireAndLock
2
SCGetSessionLocalUniverseInfo
1
FileIDTreeUnlockSharedVolumeInfo
1
_SCSessionUniverseUnlockAndRelease
1 _SCUniverseRelease
1 CFRelease
1 _CFRelease
1 __compare_and_swap32
1
dyld_stub_filesec_set_property
1 szone_free_definite_size
11
CFURLGetFileSystemRepresentation
6
_CFStringGetFileSystemRepresentation
6
CFStringGetFileSystemRepresentation
5
CFURLCreateStringWithFileSystemPath
2
CFStringCreateWithSubstring
2
__CFStringCreateImmutableFunnel3
1
_CFRuntimeCreateInstance
1
malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1
__CFStringCreateImmutableFunnel3
1 CFRetain
1
CFURLCreateStringWithFileSystemPath
1 CFURLHasDirectoryPath
1 CFGetAllocator
1
calculateAttributeBufferSize(attrlist const*, long)
1
corePropertyProviderPrepareValues(__CFURL const*, __FileCache*,
__CFString const* const*, void const**, long, void const*, __CFError**)
4
prepareValuesForBitmap(__CFURL const*, __FileCache*,
_FilePropertyBitmap*, __CFError**)
15
CallFilePropertyProviderCopyAndCacheValues(unsigned char (*)(__CFURL
const*, __FileCache*, __CFString const* const*, void const**, void
const**, long, void const*), __CFURL const*, __FileCache*, __CFString
const* const*, void const**, void const**, long, void const*)
15
corePropertyProviderCopyAndCacheValues(__CFURL const*, __FileCache*,
__CFString const* const*, void const**, void const**, long, void const*)
13
createFileSecurityValue(__CFURL const*, _FileAttributes const*, void*)
12
FSFileSecurityCreateWith_filesec_t
5 filesec_dup
2 bcopy
2 malloc
1 malloc
1 malloc_zone_malloc
1
szone_malloc_should_clear
1 __memcpy
4
szone_free_definite_size
3
szone_free_definite_size
1
tiny_free_list_add_ptr
3 FSFileSecurityCreate
1
_CFRuntimeCreateInstance
1 malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1 filesec_init
1 malloc
1
malloc_zone_malloc
1
szone_malloc_should_clear
1
tiny_malloc_from_free_list
1 pthread_once
1 CFGetAllocator
2
corePropertyProviderCopyAndCacheValues(__CFURL const*, __FileCache*,
__CFString const* const*, void const**, void const**, long, void const*)
2
_FSURLCopyResourcePropertyForKey
1 CFDictionaryGetValue
1 CFBasicHashFindBucket
1 ___CFBasicHashFindBucket1
1 CFHash
1 _FileCacheUnlock(__FileCache
const*)
9 _CFRelease
2 _CFRelease
2 szone_free
1 szone_free
1 tiny_free_list_remove_ptr
1 CFAllocatorDeallocate
1 filesec_free
1 free
1 object_getClass
1 szone_free_definite_size
2 FSFileSecurityGetOwner
2 filesec_get_property
1 __compare_and_swap32
1 dyld_stub__spin_unlock
11 getuid
25
TCFURLInfo::GetNumericalProperty(__CFString const*) const
15 CFURLCopyResourcePropertyForKey
15 _FSURLCopyResourcePropertyForKey
7 CFDictionaryGetValue
7 CFBasicHashFindBucket
7 ___CFBasicHashFindBucket1
4 ___CFBasicHashFindBucket1
1 CFHash
1 __CFDictionaryCallback
1 CFEqual
1 __CFStringHash
5
corePropertyProviderCopyValues(__CFURL const*, __FileCache const*,
__CFString const* const*, void const**, void const**, long, void const*)
4 createFileSizeValue(__CFURL
const*, _FileAttributes co
From: Steve Hodgson on
On 2009-10-13 17:02:18 +0100, Rowland McDonnell said:

> I noticed that my new iMac running MacOS 10.6.1 (and all current
> updates) had its Finder using rather a lot of CPU - it seems (now, after
> having been left running for several hours) to be using as near to 100%
> CPU as it can for a lot of the time.
>
> The processes mds and mdworker were also using noticable CPU when I
> first noticed this, and still are.
>
> Can this really be Spotlight indexing? For this long? And if so, how
> come the Finder's using so much CPU?

Am I right in remembering you use Mailsmith?

Recents builds have been hammering mds and mdsworker but if it is that
and you upgrade to build 307 you should be okay.

Failing that you can delete the spotlight 'thingy' from
/Applications/Mailsmith.app/Contents/Library/Spotlight. That means you
won't have Spotlight index mails though.
--
Cheers,

Steve

The reply-to email address is a spam trap.
Email steve 'at' shodgson 'dot' org 'dot' uk

From: Steve Hodgson on
On 2009-10-13 17:02:18 +0100, Rowland McDonnell said:

> Does anyone have any ideas?

I forgot I still had this from the Mailsmith list

Cheers,

Steve



Fixes
-----

- Fixed tendency of the Spotlight importer to crash on messages
larger than 16K when running in 64-bit mode.

- Put in some armor plating to resolve a reported crash.

=end=

The new build can be downloaded here:

<http://www.mailsmith.org/files/mailsmith-222_307.dmg>

From: Rowland McDonnell on
Steve Hodgson <hamrun(a)gmail.com> wrote:

> Rowland McDonnell said:
>
> > I noticed that my new iMac running MacOS 10.6.1 (and all current
> > updates) had its Finder using rather a lot of CPU - it seems (now, after
> > having been left running for several hours) to be using as near to 100%
> > CPU as it can for a lot of the time.
> >
> > The processes mds and mdworker were also using noticable CPU when I
> > first noticed this, and still are.
> >
> > Can this really be Spotlight indexing? For this long? And if so, how
> > come the Finder's using so much CPU?
>
> Am I right in remembering you use Mailsmith?

Yep.

> Recents builds have been hammering mds and mdsworker

(mdworker here)

> but if it is that
> and you upgrade to build 307 you should be okay.

Hmm - I've got build 306. What's this about hammering mds and mdworker?

That is, what causes the issue? And how does it relate to the Finder
using mucho CPU?

And it's a bit poor if they've come up with a new version that fixes a
problem without letting it get mentioned via the `automatic update
notifier'.

Heh - nope, the version available for download is still build 306.
Still, here's me with a paid licence for Mailsmith, but the new freebie
version seems to have been churned out broken by default with the usual
sloppy attitude towards fixing bugs. Or is that unnecessarily cynical
of me?

> Failing that you can delete the spotlight 'thingy' from
> /Applications/Mailsmith.app/Contents/Library/Spotlight. That means you
> won't have Spotlight index mails though.

Spotlight's shite. I was told it was much better under 10.5 than under
10.4, and better yet under 10.6. Allegedly.

Well, I've gone from 10.4.11 to 10.6.1.

Spotlight /still/ can't find by filename to an extent that I can expect
it to find the file I'm after. Oh, it can find some files by filename,
but never the one I'm after - I need to use EasyFind for that.

Any OS with a conventional approach to files on disc that fails to
provide a user version of `find file by name' has something badly wrong
with it.

Rowland.

--
Remove the animal for email address: rowland.mcdonnell(a)dog.physics.org
Sorry - the spam got to me
http://www.mag-uk.org http://www.bmf.co.uk
UK biker? Join MAG and the BMF and stop the Eurocrats banning biking
From: Steve Hodgson on
On 2009-10-13 22:12:16 +0100, Rowland McDonnell said:

> Hmm.
>
> How should I interpret this? Any thoughts?

Don't know for sure but Mailsmiths Spotlight plug-in may be catching-up
if it's been crashing on messages up to now.

The other possibility is it wasn't Mailsmith but that's maybe the most
likely for now.
--
Cheers,

Steve

The reply-to email address is a spam trap.
Email steve 'at' shodgson 'dot' org 'dot' uk

 |  Next  |  Last
Pages: 1 2
Prev: Apple 24" Cinema Displays!
Next: SubmitDiagInfo