# of bytes read/written by process
# of bytes read/written by process
- Subject: # of bytes read/written by process
- From: Corey Ernst <email@hidden>
- Date: Tue, 09 Feb 2010 09:44:35 -0700
I'm wondering if anyone knows if there is an equivalent capability on
mac os to query the number of bytes that a process reads and writes to
disk. On Linux you can look in /proc/self/io and find the information
there. The documentation in Linux gives the definition for these number
as noted below. I'm wondering if this information can be obtained on
the mac.
thanks,
--Corey
//----------------------Getting two numbers out of this file
// I/O counter: chars read
//The number of bytes which this task has caused to be read from
storage. This
//is simply the sum of bytes which this process passed to read() and
pread().
//It includes things like tty IO and it is unaffected by whether or
not actual
//physical disk IO was required (the read might have been satisfied from
//pagecache)
// I/O counter: chars written
//The number of bytes which this task has caused, or shall cause to be
written
//to disk. Similar caveats apply here as with rchar.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden