android_kernel_xiaomi_sm8350/arch
KAMEZAWA Hiroyuki 0c0e619589 memory unplug: page offline
Logic.
 - set all pages in  [start,end)  as isolated migration-type.
   by this, all free pages in the range will be not-for-use.
 - Migrate all LRU pages in the range.
 - Test all pages in the range's refcnt is zero or not.

Todo:
 - allocate migration destination page from better area.
 - confirm page_count(page)== 0 && PageReserved(page) page is safe to be freed..
 (I don't like this kind of page but..
 - Find out pages which cannot be migrated.
 - more running tests.
 - Use reclaim for unplugging other memory type area.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:02 -07:00
..
alpha During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
arm During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
avr32 During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
blackfin Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
cris During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
frv During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
h8300
i386 sched: x86: allow single-depth wchan output 2007-10-15 17:00:07 +02:00
ia64 memory unplug: page offline 2007-10-16 09:43:02 -07:00
m32r During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
m68k During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
m68knommu
mips During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
parisc During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
powerpc ppc64: SPARSEMEM_VMEMMAP support 2007-10-16 09:42:51 -07:00
ppc During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
s390 During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
sh During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
sh64 During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
sparc During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
sparc64 During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
um Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
v850
x86 During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00
x86_64 x86_64: SPARSEMEM_VMEMMAP 2M page size support 2007-10-16 09:42:51 -07:00
xtensa During VM oom condition, kill all threads in process group 2007-10-16 09:42:52 -07:00