Re: [patch v3 3/6] mm, compaction: add per-zone migration pfn cache for async compaction

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

 



On Tue, May 06, 2014 at 07:22:45PM -0700, David Rientjes wrote:
> Each zone has a cached migration scanner pfn for memory compaction so that 
> subsequent calls to memory compaction can start where the previous call left 
> off.
> 
> Currently, the compaction migration scanner only updates the per-zone cached pfn 
> when pageblocks were not skipped for async compaction.  This creates a 
> dependency on calling sync compaction to avoid having subsequent calls to async 
> compaction from scanning an enormous amount of non-MOVABLE pageblocks each time 
> it is called.  On large machines, this could be potentially very expensive.
> 
> This patch adds a per-zone cached migration scanner pfn only for async 
> compaction.  It is updated everytime a pageblock has been scanned in its 
> entirety and when no pages from it were successfully isolated.  The cached 
> migration scanner pfn for sync compaction is updated only when called for sync 
> compaction.
> 
> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
> ---
>  v3: do not update pageblock skip metadata when skipped due to async per
>      Vlastimil.

Looks good to me.
Reviewed-by: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>

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