Re: Better active/inactive list balancing

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

 



On Sat, Apr 27, 2013 at 02:20:54PM +0800, Mtrr Patt wrote:
> cc linux-mm
> 
> On 04/27/2013 02:19 PM, Mtrr Patt wrote:
> >Hi Johannes,
> >
> >http://lwn.net/Articles/495543/
> >
> >This link said that "When active pages are considered for
> >eviction, they are first moved to the inactive list and unmapped
> >from the address space of the process(es) using them. Thus, once a
> >page moves to the inactive list, any attempt to reference it will
> >generate a page fault; this "soft fault" will cause the page to be
> >removed back to the active list."
> >
> >Why I can't find the codes unmap during page moved from active
> >list to inactive list?

Most architectures have the hardware track the referenced bit in the
page tables, but some don't.  For them, page_referenced_one() will
mark the mapping read-only when clearing the referenced/young bit and
the page fault handler will set the bit manually.

When mapped pages reach the end of the inactive list and have that bit
set, they get activated, see page_check_references().

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  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]