lkml.org 
[lkml]   [2001]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: please revert bogus patch to vmscan.c
Benjamin LaHaise writes:

> The following:
>
> @@ -50,7 +50,6 @@
>
> /* Don't look at this pte if it's been accessed recently. */
> if (ptep_test_and_clear_young(page_table)) {
> - flush_tlb_page(vma, address);
> mark_page_accessed(page);
> return 0;
> }
>
> is completely bogus. Without the tlb flush, the system may never update
> the accessed bit on a page that is heavily being used.

On PPC, the page wouldn't even need to be being heavily used. Most
PPCs have an MMU hash table that we use as a level-2 cache for the
TLB. With this change, we won't see the accessed bit being set again
for any page unless there is so much memory in use that we start
evicting PTEs from the hash table, and that is very rare in practice.

So I'm with Ben on this one.

Paul.

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.131 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site