7

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”

1
  • 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, 2011 at 8:46

1 Answer 1

4

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 :-)

4
  • 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, 2011 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 … Aug 4, 2011 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, 2011 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 :-) Aug 4, 2011 at 16:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .