how to track page faults when allocation# Unix - 噫吁兮,危乎高哉
g*t
1 楼
Hi,
I am trying to track the memory usage, especially the page faults during
allocation. I found there is a getrusage() method, which tracks page faults
and page reclaims. My questions are as follows:
1. what does "page reclaims" mean? how to interpret it? Does that mean (a) if
a page Pi was used for Ni times without page faults, then ru_minflt = \sum {
Pi * Ni} ?
reference:
http://www.fifi.org/cgi-bin/man2html/usr/share/man/man2/getrusage.2.gz
struct rusage { ...
long ru_minfl
I am trying to track the memory usage, especially the page faults during
allocation. I found there is a getrusage() method, which tracks page faults
and page reclaims. My questions are as follows:
1. what does "page reclaims" mean? how to interpret it? Does that mean (a) if
a page Pi was used for Ni times without page faults, then ru_minflt = \sum {
Pi * Ni} ?
reference:
http://www.fifi.org/cgi-bin/man2html/usr/share/man/man2/getrusage.2.gz
struct rusage { ...
long ru_minfl