linux - Measure page faults from a c program -
I am comparing some system calls where I read / write memory from / is any API defined that < Code> C ?
is defined to measure page faults (pages in / out)? I found this library but it is for Edit: Send me the is the function (SVR4, 4.3BSD.POSIX.1-2001; but not all fields defined in standard Are). There are several Linux, but many interesting fields are listed: AIX I found nothing for Linux.
Time & amp; If there is anything available for use within the
C command in Linux, then just search.
tall ru_minflt; / * Page reclamation (soft page fault) * / tall ru_majflt; / * Page fault (hard page defect) * / tall ru_inblock; / * Block input operation * / tall ru_oublock; / * Block output operations * /
rusage is also reported (only usable in external programs) This is a
/ usr / bin / Time is used by the program (it prints minor / major pagefold matters).
Comments
Post a Comment