Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add I/O metrics on Mac #131

Closed
alq666 opened this issue Aug 3, 2012 · 2 comments
Closed

Add I/O metrics on Mac #131

alq666 opened this issue Aug 3, 2012 · 2 comments

Comments

@alq666
Copy link
Member

alq666 commented Aug 3, 2012

iostat -od 3 2 returns

       disk0        disk2        disk3 
 sps tps msps  sps tps msps  sps tps msps 
1722  54  0.0    1   0  0.0  764   7  0.0 
36036 150  0.0    0   0  0.0 35823 140  0.0

Only the last line matters.

The old-style iostat display (using -o) shows the following statistics:

  • sps sectors transferred per second
  • tps transfers per second
  • msps average milliseconds per transaction

There is no clear separation between read and write operations, unification of metrics with linux is going to be difficult. If not possible because the metrics are inherently different, let's create new metrics.

@ghost ghost assigned josePhoenix Jun 4, 2013
@josePhoenix
Copy link

Looks like man 8 iostat on Mac doesn't reflect the actual command line options. Apparently iostat also uses the iostat [interval [count]] syntax (like Linux), but doesn't document it in the manpage or iostat -?... What I'm going to do is supply the -w and -c options for wait and count since those are in the manpage. (Still looking at how these map onto the Linux io stats.)

josePhoenix pushed a commit that referenced this issue Jun 4, 2013
Apple's version of iostat reports different metrics than Linux, FreeBSD, or SunOS. This adds
three new metrics under system.io to log sectors per second (system.io.sectors), transfers per
second (system.io.transfers), and milliseconds per seek (ms_per_seek).
conorbranagan added a commit that referenced this issue Jun 6, 2013
Addressing issue #131 -- Add I/O metrics on Mac
@josePhoenix
Copy link

Done in #530 / 6fd0ce8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants