Ho diversi alloggiamenti per la modifica di Mac OS X 10.5.8, ognuno con almeno un'unità interna aggiuntiva, la più grande 500 GB-1 TB. Tutti i Mac condividono anche un cluster Isilon NAS da 100 TB (montaggio nfs) per contenuti multimediali condivisi, ecc. Sembra che ogni workstation esegua Spotlight ad-infinitum, indipendentemente dalle eccezioni (o nessuna) aggiunta all'elenco. In particolare, in una scatola ho interrotto il servizio in Acivity Monitor, solo per riutilizzare alcuni secondi dopo. Ho aggiunto TUTTE le unità all'elenco delle eccezioni (incluso il volume di avvio), Spotlight si arresta, ma non ha indice di nulla. Rimuovo il volume di avvio, Spotlight si avvia e continuerà all'infinito (msg dice -2183764923 ore rimanenti) (15 minuti al riavvio, quindi cresce). Quindi il problema è con quel volume, ma cosa? Activity Monitor indica 0.0 CPU per mdworker, 0.0 per Spotlight. Quando uccido e ricomincio, Spotlight passa a 0,8 CPU con 18 thread e mdworker rimane a 0.0 con 4 thread
Rendimenti aperti di file e porte:
/
/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight
/System/Library/PrivateFrameworks/Calculate.framework/Versions/A/Calculate
/System/Library/PrivateFrameworks/URLMount.framework/Versions/A/URLMount
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
/System/Library/Fonts/Helvetica.dfont
/System/Library/Fonts/LucidaGrande.dfont
/System/Library/CoreServices/Spotlight.app/Contents/Resources/MDShowAll.tif
/private/var/folders/kI/kICeUX+DFmSI3L1sRRM6NE++0vw/-Caches-/com.apple.ATS/annex_aux
/private/var/folders/kI/kICeUX+DFmSI3L1sRRM6NE++0vw/-Caches-/com.apple.IntlDataCache.le.sbdl
/System/Library/Caches/com.apple.IntlDataCache.le.kbdx
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
/Library/Dictionaries/Apple Dictionary.dictionary/Contents/Resources/English.lproj/KeyText.index
/Library/Dictionaries/Apple Dictionary.dictionary/Contents/Resources/English.lproj/KeyText.data
/System/Library/CoreServices/Spotlight.app/Contents/Resources/Index_Dot_Black.tif
/usr/share/icu/icudt36l.dat
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
/System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
/Library/Dictionaries/Oxford American Writer's Thesaurus.dictionary/Contents/KeyText.index
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/SArtFile.bin
/System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/ArtFile.bin
/Library/Dictionaries/New Oxford American Dictionary.dictionary/Contents/KeyText.index
/Library/Dictionaries/New Oxford American Dictionary.dictionary/Contents/KeyText.data
/Library/Dictionaries/New Oxford American Dictionary.dictionary/Contents/Body.data
/Library/Caches/com.apple.LaunchServices-0233007.csstore
/Library/Dictionaries/Oxford American Writer's Thesaurus.dictionary/Contents/KeyText.data
/usr/lib/dyld
/private/var/db/dyld/dyld_shared_cache_i386
/dev/null
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Rendimenti campionamento:
Sampling process 74486 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Spotlight (pid 74486) every 1 millisecond
Call graph:
1590 Thread_2507
1590 0x26ea
1590 NSApplicationMain
1590 -[NSApplication run]
1590 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
1590 _DPSNextEvent
1590 BlockUntilNextEventMatchingListInMode
1590 ReceiveNextEventCommon
1590 RunCurrentEventLoopInMode
1590 CFRunLoopRunInMode
1590 CFRunLoopRunSpecific
1570 mach_msg
1570 mach_msg_trap
1570 mach_msg_trap
16 __CFRunLoopDoObservers
16 _handleWindowNeedsDisplay
16 -[NSWindow displayIfNeeded]
16 -[NSView displayIfNeeded]
14 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
10 -[NSNextStepFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
9 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
7 -[NSView _drawRect:clip:]
7 NSRectFill
6 CGContextFillRect
6 CGContextFillRects
6 ripc_DrawRects
6 ripc_Render
6 ripl_BltShape
6 ripd_Lock
6 CGSDeviceLock
6 _CGSLockWindow
6 _CGSSynchronizeWindowBackingStore
6 mach_msg
6 mach_msg_trap
6 mach_msg_trap
1 CGContextGetCompositeOperation
1 CGContextGetCompositeOperation
2 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
2 -[NSView _drawRect:clip:]
1 CGContextRestoreGState
1 CGGStackRestore
1 CGGStateRelease
1 _CFRelease
1 _CFRelease
1 NSRectClipList
1 CGContextClipToRects
1 CGContextClipToRect
1 CGGStateClipToRect
1 maybeCopyClipState
1 CGClipStackCreateMutableCopy
1 CGClipStackCreateMutableCopy
1 objc_msgSend
1 objc_msgSend
2 -[NSWindow flushWindow]
2 CGContextFlush
2 ripc_Operation
2 CGSDeviceSynchronize
2 _CGSFlushRegionInline
2 mach_msg
1 mach_msg
1 mach_msg_trap
1 mach_msg_trap
1 -[NSRectSet initWithRegion:]
1 -[NSRegion getRects:count:]
1 CGSRegionEnumerator
1 CGSRegionEnumeratorWithDirection
1 CGSRegionEnumeratorCreate
1 CGTypeCreateInstanceWithAllocator
1 _CFRuntimeCreateInstance
1 _CFRuntimeCreateInstance
1 -[NSView lockFocus]
1 -[NSView lockFocusIfCanDraw]
1 PSgsave
1 CGContextSaveGState
1 CGGStackSave
1 CGGStateCreateCopy
1 calloc
1 malloc_zone_calloc
1 szone_calloc
1 __bzero
1 __bzero
1 objc_msgSend
1 objc_msgSend
1 objc_msgSend_stret
1 objc_msgSend_stret
3 __CFRunLoopModeFindSourceForMachPort
3 CFSetApplyFunction
2 __CFRunLoopFindSource
2 __CFRunLoopFindSource
1 CFSetApplyFunction
1 __NSFireTimer
1 objc_msgSend_fpret
1 objc_msgSend_fpret
1590 Thread_2603
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2703
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2803
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2903
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2a03
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2b03
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2c03
1590 thread_start
1590 _pthread_start
1590 fe_fragment_thread
1590 pthread_cond_wait$UNIX2003
1590 __semwait_signal
1590 __semwait_signal
1590 Thread_2d03
1590 start_wqthread
1590 __workq_ops
1590 __workq_ops
1590 Thread_2e03
1590 start_wqthread
1590 __workq_ops
1590 __workq_ops
1590 Thread_2f03
1590 start_wqthread
1590 __workq_ops
1590 __workq_ops
1590 Thread_3003
1590 0x0
1590 0x0
1590 Thread_3103
1590 0x0
1590 0x0
1590 Thread_3203
1590 0x0
1590 0x0
1590 Thread_3303
1590 0x0
1590 0x0
1590 Thread_3403
1590 0x0
1590 0x0
1590 Thread_3503
1590 thread_start
1590 _pthread_start
1590 __NSThread__main__
1590 -[NSThread main]
1590 0x336c7
1590 CFRunLoopRunInMode
1590 CFRunLoopRunSpecific
1590 mach_msg
1590 mach_msg_trap
1590 mach_msg_trap
1590 Thread_3603
1590 thread_start
1590 _pthread_start
1590 __NSThread__main__
1590 -[NSThread main]
1590 -[NSUIHeartBeat _heartBeatThread:]
1590 -[NSConditionLock lockWhenCondition:]
1590 -[NSConditionLock lockWhenCondition:beforeDate:]
1590 -[NSCondition waitUntilDate:]
1590 pthread_cond_timedwait_relative_np
1590 _pthread_cond_wait
1590 semaphore_timedwait_signal_trap
1590 semaphore_timedwait_signal_trap
Numero totale nello stack (multiplo conteggiato ricorsivo, quando > = 5):
9 _pthread_start
9 thread_start
7 __semwait_signal
7 fe_fragment_thread
7 pthread_cond_wait$UNIX2003
5 0x0
Ordina per cima pila, stesso compresso (quando > = 5):
__semwait_signal 11130
0x0 7950
__workq_ops 4770
mach_msg_trap 3167
semaphore_timedwait_signal_trap 1590
Analisi di esempio del processo 74486 scritto nel file / dev / stdout
=============================================== ============================
Voglio indicizzare tutte le unità per il contenuto. Mi piacerebbe anche un metodo di indicizzazione del NAS, in quanto sarebbe particolarmente utile. Qualcuno ha qualche suggerimento su come implementare Spotlight per fare effettivamente il suo lavoro a livello locale, e magari anche su unità FW rimovibili, o anche su un NAS?