Hello, experts I have a question about syscall "madvise" (http://docs.sun.com/app/docs/doc/816-5168/madvise-3c?a=view). I want to know whether MADV_WILLNEED and MADV_DONTNEED will affect pageout decisions. In my intuition, page scanner should try to keep MADV_WILLNEED pages in physical memory, and prefer MADV_DONTNEED pages for swapping out.
In common/os/Vm_pageout.c, there is a piece of comment in checkpage (by grepping "advise"): /* * Checking of rss or madvise flags needed here... * * If not "well-behaved", fall through into the code * for not referenced. */ The code after this comment is simply a "hat_clrref(pp);" call. Does this indicate the advises provided by "madvise()" is not currently taken account during paging out? Thanks! -- This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code