--MimeMultipartBoundary
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Duane Wessels wrote:
> we're simply reporting the value from getrusage(). What would
> you have us do instead?
Report both major and minor page faults?
/* Number of page faults */
long rusage_pagefaults(struct rusage *r)
{
return r->ru_minflt + r->ru_majflt;
}
/* Ratio of page faults with I/O */
float rusage_pagefaults_iorate(struct rusage *r)
{
return (float)r->ru_majflt / rusage_pagefaults(r);
}
Perhaps we should report most of the other rusage values as well? (block
I/O, signals, context switching, ..
/Henrik
--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:48 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:46 MST