image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old December 27th, 2005, 07:32 PM
Registered User
 
Join Date: Jun 2001
Location: Cullowhee, NC
Posts: 211
Thanks: 0
Thanked 0 Times in 0 Posts
maccatalan is on a distinguished road
monitoring hard drive activity ?

Hello.

I reinstalled Tiger, clean install, made all updates, but now I notice a highly increased activity of my external hard drive. And I don't understand why. Spotlight is not indexing it and no applications are open.

So here is my question:
Is there a way to know what files are being written/read on a hard drive ?

I know that going to the Activity Monitor we can get what files are used by a given process. But here I don't know what process to monitor, so I was wondering if there was a way to list/monitor all hard drive activity from the command line or any simple utility you know. (we will avoid writting our own program that registers to the kernel events notifier ;-) )

Thank you,
Pierre.
Reply With Quote
  #2  
Old December 27th, 2005, 07:34 PM
Registered User
 
Join Date: Jun 2001
Location: Cullowhee, NC
Posts: 211
Thanks: 0
Thanked 0 Times in 0 Posts
maccatalan is on a distinguished road
before reinstalling my system I did lots of 'rm' on that external hard drive ... do you think the system would still try to keep track and clean all these previous actions ? (it's a journalized HFS+ volume) That would be amazing and very long/slow in time !
Reply With Quote
  #3  
Old December 28th, 2005, 12:27 AM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,678
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Spotlight may indeed still be indexing that drive -- just because Spotlight allows you to search the drive and appears to be finished indexing it doesn't mean that it's totally done -- it will still go back and import other information from the files for a more complete Spotlight index. It may be indexing content from text/PDF files, or EXIF data from photos or optimizing the Spotlight database on that drive.

Running "top" in the Terminal, do you notice a process called "mdimport" taking up a few CPU cycles?
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #4  
Old October 2nd, 2009, 06:45 PM
Registered User
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
dichimac is on a distinguished road
In my macbook pro (Snow Leopard) there is an intermittent writing activity which doesn't let the hard disk go to sleep: I tried to see what's happening with sudo fs_usage, and I found out that past every 30 seconds the same series of processes is repeated; here is a single instance:
20:41:08.188 WrData D=0x00007c39 B=0xa000 /dev/disk0s2 0.033631 W launchd
20:41:08.215 IOCTL <DKIOCSYNCHRONIZECACHE> /dev/disk0s2 0.027190 W launchd
20:41:08.216 WrData D=0x00004a88 B=0x200 /dev/disk0s2 0.000699 W launchd
20:41:08.216 sync 0.316780 W launchd
20:41:08.216 select S=1 30.316916 W KernelEventAgent
20:41:08.217 sendto F=4 B=0x1 0.000015 KernelEventAgent
20:41:08.217 getfsstat64 0.000004 fseventsd
20:41:08.217 getfsstat64 0.000011 fseventsd
20:41:08.217 select S=1 0.000168 W KernelEventAgent
20:41:08.217 recvfrom F=5 B=0x1 0.000008 KernelEventAgent
20:41:08.217 WrMeta[async] D=0x0047e298 B=0x2000 /dev/disk0s2 0.000847 W launchd

Is there a way I can avoid this to happen and get my hard drive to sleep?
PS Yes, I did check the option "put the hard disk(s) to sleep when possible".

Macbook Pro, 3.06 GHz Core 2 Duo, 4GB RAM, 7200RPM 320GB HD

Last edited by dichimac; October 2nd, 2009 at 06:49 PM. Reason: forgot to write my mac specs
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eMac screen 'wobble' during hard drive activity. cyos Hardware & Peripherals 10 September 22nd, 2005 04:42 PM
Monitoring DSL Activity muhlkatow Mac OS X System & Mac Software 3 May 10th, 2004 04:46 PM
Powerbook 17 huge hard drive activity ? st.st Mac OS X System & Mac Software 0 May 19th, 2003 09:04 AM
USB Development & Activity Monitoring Software Malachite Mac OS X System & Mac Software 0 April 9th, 2003 12:16 AM
Hard disk activity indicator. TellarHK Mac OS X System & Mac Software 7 September 1st, 2002 02:26 AM


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.