Re: [PATCH] mm: don't flush TLB when propagate PTE access bit to struct page.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/29/2010 09:03 AM, Minchan Kim wrote:
On Fri, Oct 29, 2010 at 9:31 PM, Rik van Riel<riel@xxxxxxxxxx>  wrote:
On 10/29/2010 12:27 AM, Minchan Kim wrote:

What happens if we don't flush TLB?
It will make for old page to pretend young page.
If it is, how does it affect reclaim?

Other way around - it will make a young page pretend to be an
old page, because the TLB won't know it needs to flush the
Accessed bit into the page tables (where the bit was recently
cleared).

Ying's patch just removes TLB flush when page access bit is changed
from young to old.
We still flush TLB flush when from old to young change by
ptep_set_access_flags. Do I miss something?

The TLB is write-through for the accessed and dirty
bits.

If the TLB has a page translation without the accessed
bit (and is accessing it), the accessed bit will be set
in the page table entry.

If the TLB has a page translation that already has the
accessed bit set, nothing will be written to the page
table entry.

With Ying's change, we will clear the accessed bit in
the page table, without invalidating the corresponding
TLB entry.

This can cause accesses to pages to not lead to the
accessed bit getting set in the corresponding page table
entry.

Making sure the TLB is flushed periodically could fix
that issue.

--
All rights reversed

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]