Oops, yes, I forgot for the moment that we no longer age up in
__find_page_nolock. Lets try this instead, which should capture the intended
effect of requiring 4 hits to activate a page (n.b., it's just a test):
--- ../2.4.9.clean/mm/filemap.c Thu Aug 16 14:12:07 2001
+++ ./mm/filemap.c Wed Aug 22 02:02:24 2001
@@ -980,10 +980,9 @@
static inline void check_used_once (struct page *page)
{
if (!PageActive(page)) {
- if (page->age)
+ if (++page->age >= 4)
activate_page(page);
else {
- page->age = PAGE_AGE_START;
ClearPageReferenced(page);
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/