From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id C6F7C6B0071 for ; Wed, 4 Jul 2012 03:25:56 -0400 (EDT) From: Lai Jiangshan Subject: [RFC PATCH 0/3 V1] mm: add new migrate type and online_movable for hotplug Date: Wed, 4 Jul 2012 15:26:15 +0800 Message-Id: <1341386778-8002-1-git-send-email-laijs@cn.fujitsu.com> Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Chris Metcalf , --@kvack.org, Len Brown --@kvack.org, Greg Kroah-Hartman --@kvack.org, Andi Kleen --@kvack.org, Julia Lawall --@kvack.org, David Howells --@kvack.org, Lai Jiangshan --@kvack.org, Benjamin Herrenschmidt --@kvack.org, Kay Sievers --@kvack.org, Ingo Molnar --@kvack.org, Paul Gortmaker --@kvack.org, Daniel Kiper --@kvack.org, Andrew Morton --@kvack.org, Konrad Rzeszutek Wilk --@kvack.org, Michal Hocko --@kvack.org, KAMEZAWA Hiroyuki --@kvack.org, Minchan Kim --@kvack.org, Michal Nazarewicz --@kvack.org, Marek Szyprowski --@kvack.org, Rik van Riel --@kvack.org, Bjorn Helgaas --@kvack.org, Christoph Lameter --@kvack.org, David Rientjes --@kvack.org, linux-kernel@vger.kernel.org--, linux-acpi@vger.kernel.org--, linux-mm@kvack.org The 1st patch fixes the allocation of CMA and prepares for movable-like types. The 2nd patch add a new migrate type which stands for the movable types which pages will not be changed to the other type. I chose the name MIGRATE_HOTREMOVE from MIGRATE_HOTREMOVE and MIGRATE_MOVABLE_STABLE, it just because the first usecase of this new type is for hotremove. The 3th path introduces online_movable. When a memoryblock is onlined by "online_movable", the kernel will not have directly reference to the page of the memoryblock, thus we can remove that memory any time when needed. Different from ZONE_MOVABLE: it can be used for any given memroyblock. Lai Jiangshan (3): use __rmqueue_smallest when borrow memory from MIGRATE_CMA add MIGRATE_HOTREMOVE type add online_movable arch/tile/mm/init.c | 2 +- drivers/acpi/acpi_memhotplug.c | 3 +- drivers/base/memory.c | 24 +++++++---- include/linux/memory.h | 1 + include/linux/memory_hotplug.h | 4 +- include/linux/mmzone.h | 37 +++++++++++++++++ include/linux/page-isolation.h | 2 +- mm/compaction.c | 6 +- mm/memory-failure.c | 8 +++- mm/memory_hotplug.c | 36 +++++++++++++--- mm/page_alloc.c | 86 ++++++++++++++++----------------------- mm/vmstat.c | 3 + 12 files changed, 136 insertions(+), 76 deletions(-) -- 1.7.4.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org