[PATCH v2] mm: exclude isolated non-lru pages from NR_ISOLATED_ANON or NR_ISOLATED_FILE.

2016-10-12 Thread ming.ling
From: Ming Ling Non-lru pages don't belong to any lru, so counting them to NR_ISOLATED_ANON or NR_ISOLATED_FILE doesn't make any sense. It may misguide functions such as pgdat_reclaimable_pages and too_many_isolated. On mobile devices such as 512M ram android Phone, it may use a big zram swap. In

[PATCH] staging: android: ion: Make ion_free asynchronous more actively.

2016-10-10 Thread ming.ling
From: Ming Ling So far some ion heaps such as carveout_heap, chunk_heap, system_heap have freed buffers asynchrounously. Freed buffers are placed on a free list and freed from a low priority background thread. If allocations from a particular heap fail, the free list is drained. But that mechani

[PATCH] mm: exclude isolated non-lru pages from NR_ISOLATED_ANON or NR_ISOLATED_FILE.

2016-09-28 Thread ming.ling
pages from NR_ISOLATED_ANON or NR_ISOLATED_FILE to NR_ISOLATED_NONLRU. And with non-lru pages in vmstat, it helps to optimize algorithm of function too_many_isolated oneday. Signed-off-by: ming.ling --- include/linux/mmzone.h | 1 + mm/compaction.c| 12 +--- mm/migrate.c