Gavin Maltby wrote:


On 09/28/06 18:21, Bart Smaalders wrote:

One easy way to experiment with alternate page coloring algorithms
is to use meminfo to get the physical adress of pages in an mmaped
file from userland, and then remap the pages to get the coloring
you want to run your algorithm against....

Do you need to lock things down via mlock/mlockall/memcntl
before using meminfo, otherwise the answers could be changing behind your
back if mappings are invalidated for some reason (like pageout).


Strictly speaking, yes... but as long as you're using the memory and
the machine has enough, you're likely to be ok....

- Bart

--
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to