site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=26sFbqmE3vfvw64/Ffm1jrvjXWxhnIOz7PJ75pv6yLU=; b=EZfHu9JYCmtoovQR+n7eKg4zXDO8iGxUIR6L/7l/eRpA+1lB4vMJMB5uSlnkv+0m3+ Zw4Zbp86NSXgz4vzhqtMqO8P874zwahAu14elW0RJe0NDevzfAgV5UY5CnvXAwTSxBzz n9OJNnoi6XvmLEhbTCKxS3YHF2z/0jQXjKfJY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=OY44WngMWhgReafVzti+sH9FiP94uGyXqojG2LLytE3VqCQaBz+tuVI2El+fvTRWk2 aS+jOCjTutGSmQjerY7gfUMhe+3jkLvGZbEr2U1CEOSvT4M8Et3OI1KXTOp1ojGJZ1Vg Z3gGUgZiH0cZT35MwlWloJEJlxjpnlF3WtVpc= It's not exactly the same, but you could start with: bitesize.d(1m) - analyse disk I/O size by process. Uses DTrace
Message: 1 Date: Tue, 09 Feb 2010 09:44:35 -0700 From: Corey Ernst <corey@elemtech.com> Subject: # of bytes read/written by process To: darwin-kernel@lists.apple.com Message-ID: <4B7190F3.6000202@elemtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com