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 AIX I found nothing for Linux.

Edit: Send me the Time & amp; If there is anything available for use within the C command in Linux, then just search.

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:

  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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -