>- What is the relative frequency of data access vs. execute access
>- What part of the page is used for data/code
>- How much longer would it take to re-scan all the code, compared
>  to the time a write fault takes?
>
>OTOH, implementing this sounds rather complicated for a first
>attempt.  If we assume that a code page is used primarily for
>code I'd go with (1), for now.
>
>If we want to implement dynamics policies, I'd suggest a method
>like this: start off with (1), and increase a counter every time
>the page is written to.  When the counter exceeds a certain value
>(which should somehow depend on the percentage of the page
>that has been scanned), switch to (2).
>
>What do you think ?
Sounds really reasonably. Let's look forward to measurement
results.

jens

Reply via email to