On Mon, Aug 19, 2013 at 02:23:40PM +0200, Vlastimil Babka wrote: > After introducing batching by pagevecs into munlock_vma_range(), we can further > improve performance by bypassing the copying into per-cpu pagevec and the > get_page/put_page pair associated with that. Instead we perform LRU putback > directly from our pagevec. However, this is possible only for single-mapped > pages that are evictable after munlock. Unevictable pages require rechecking > after putting on the unevictable list, so for those we fallback to > putback_lru_page(), hich handles that. > > After this patch, a 13% speedup was measured for munlocking a 56GB large memory > area with THP disabled. > > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> > Reviewed-by: Jörn Engel <joern@xxxxxxxxx> Acked-by: Mel Gorman <mgorman@xxxxxxx> -- Mel Gorman SUSE Labs -- 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>