Saya memiliki beberapa ruang penyuntingan Mac OS X 10.5.8, masing-masing dengan setidaknya satu drive internal tambahan, berukuran paling besar 500GB-1TB. Semua Mac juga berbagi NAS Isilon cluster 100TB (nfs mount) untuk media bersama dll. Sepertinya setiap workstation menjalankan Spotlight ad-infinitum, tidak peduli apa pengecualian (atau tidak ada) saya tambahkan ke dalam daftar. Pada satu kotak khususnya saya menghentikan layanan di Acivity Monitor, hanya untuk itu muncul kembali beberapa detik kemudian. Saya menambahkan SEMUA drive ke daftar pengecualian (termasuk volume startup), Spotlight berhenti, tetapi tidak memiliki indeks apa pun. Saya menghapus volume startup, Spotlight dimulai dan akan berlangsung tanpa batas waktu (Pesan mengatakan -2183764923 jam tersisa) (15 menit ketika restart, kemudian tumbuh). JADI masalahnya dengan volume itu, tapi apa? Activity Monitor menunjukkan 0,0 CPU untuk mdworker, 0,0 untuk Spotlight. Ketika saya membunuh dan memulai kembali, Spotlight pergi ke 0,8 CPU dengan 18 utas dan mdworker tetap pada 0,0 dengan 4 utas
Buka hasil File dan Port:
/
/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
Hasil pengambilan sampel:
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
Jumlah total dalam tumpukan (berulang berulang berulang, saat & gt; = 5):
9 _pthread_start
9 thread_start
7 __semwait_signal
7 fe_fragment_thread
7 pthread_cond_wait$UNIX2003
5 0x0
Urutkan berdasarkan tumpukan, sama-sama diciutkan (saat & gt; = 5):
__semwait_signal 11130
0x0 7950
__workq_ops 4770
mach_msg_trap 3167
semaphore_timedwait_signal_trap 1590
Analisis sampel proses 74486 ditulis ke file / dev / stdout
================================================== =========================
Saya ingin mengindeks semua drive untuk konten. Saya juga ingin metode pengindeksan NAS, karena ini akan sangat berguna. Adakah yang punya saran tentang bagaimana menerapkan Spotlight untuk benar-benar melakukan tugasnya secara lokal, dan bahkan mungkin pada drive FW yang dapat dilepas, atau bahkan NAS?
Jawaban:
Ada alat baris perintah yang dapat Anda gunakan:
mdutil
. Buka aplikasi Terminal.app dan coba yang berikut ini:Untuk memeriksa status pengindeksan (on | off) untuk volume:
... dan untuk mematikan pengindeksan:
... atau lebih baik lagi menonaktifkan aktivitas sorotan:
Panggilan
mdutil
tanpa parameter apa pun menunjukkan semua parameter yang diizinkanIni bekerja dengan NAS nfs saya mount tetapi kemudian jauh lebih kecil dari 100TB. Namun patut dicoba.
sumber
Dalam Yosemite: Anda meletakkan semua disk di tab Privasi Preferensi Spotlight, yang menghapus indeks. Kemudian Anda mengeluarkan disk startup saja. Spotlight sekarang mengindeks disk startup dan backupd dari TimeMachine yang mungkin dalam kasus Anda ada di NAS. Anda tidak dapat mengecualikan cadangan TM. LexS
sumber