Discussion:
Page Fault Counter
(too old to reply)
Ashish Chaudhari
2008-11-11 22:31:20 UTC
Permalink
How are we supposed to update the page-fault counter "numPageFaults"?
Although this is a public variable in Stats.java, the Machine class has
a private stats object and thus we don't have access to it.
Brandon
2008-11-11 23:47:46 UTC
Permalink
Post by Ashish Chaudhari
How are we supposed to update the page-fault counter "numPageFaults"?
Although this is a public variable in Stats.java, the Machine class has
a private stats object and thus we don't have access to it.
I second this question. I heard we are getting graded on
numpagefaults for our replacement algorithm vs. random/trivial, but
the only place stats.numPageFaults is updated is when tlb is not being
used in the processor (ie proj 1 and 2).
Arthur Klepchukov
2008-11-13 19:34:41 UTC
Permalink
We just made our own counter, incremented it on every page fault, and
printed out the total in VMKernel.terminate().
Post by Ashish Chaudhari
How are we supposed to update the page-fault counter "numPageFaults"?
Although this is a public variable in Stats.java, the Machine class has
a private stats object and thus we don't have access to it.
Loading...