Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a Leopard system which feels rather sluggish, and which I suspect may be disk-I/O-bound. While I know how to check which app is using CPU or memory (top or Activity Monitor), I don’t really know how to check which application is heavy on disk-I/O, or if (and how much) swapping occurs on my live system.

So, is there any application out there that would monitor and report disk I/O operations for me (in whatever unit is relevant)? Same for swapping: how can I check if (and to what extent) my swap memory is used?

This is related to “Give a new life to my 2007 MacBook Pro”

share|improve this question
    
I’ve found two command-line possibilities but they all require some work, and don’t have a nice UI that I can recommend to friends and family… –  F'x Aug 4 '11 at 8:46
add comment

1 Answer 1

up vote 4 down vote accepted

The tools are in the terminal app:

  • fs_usage shows the io on a per file instance and grep will help you filter results to one app if desired.
  • vm_stat 10 shows aggregate swap activity every 10 seconds - you can fiddle with the timing based on how close you care to look

If you want a nice graph and full monitor, check out Instruments in Xcode. It has amazingly detailed documentation on how to profile, but it basically uses the same terminal commands to get it's raw data but has tons of ways to inspect, view and measure what is happening. Think of it as Activity Monitor Pro (I'd say Pro^10 if you are math inclined :-)

share|improve this answer
1  
I don't reccomend either for casual use - these are surgeon's tools and require some measure of learning and knowing how things work to use the information they provide. –  bmike Aug 4 '11 at 15:55
    
Thanks — answer and comments here help me to revise my thoughts under a different question, where I reluctantly suggested a routine that involves fs_usage … there must be a far less messy approach than what I suggested there … –  Graham Perrin Aug 4 '11 at 16:16
1  
Between it and iotop, opensnoop and the other DTrace based snoops, it's a shell users delight on Darwin :-) –  bmike Aug 4 '11 at 16:27
    
Ah, iotop … might that form a possible answer to the following bountied question? Apple-provided software to measure or estimate the CPU load associated with Core Storage— confirm/deny my one key suspicion there — an answer telling me what will not work will be up-voted as much as one that tells me what will work :-) –  Graham Perrin Aug 4 '11 at 16:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.