mm: change filecache reclaim policy for CMA [1/1]
authortao zeng <tao.zeng@amlogic.com>
Mon, 22 Oct 2018 00:34:12 +0000 (08:34 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 23 Oct 2018 08:28:09 +0000 (01:28 -0700)
commit0a7b298a78ee09d350d8b1d1c5395b81edc3dcb4
treecabfb34df6be0a1aec86f00a81e9b5fd4e37ff90
parent8fced213f3850f6fbc6d99eb6f72dd0f4131014f
mm: change filecache reclaim policy for CMA [1/1]

PD#SWPL-119

Problem:
High IOW usually happen when start playing 4K video. This
is because codec drvier will using large amount of memory
from CMA pool. And many filecache will be dropped after CMA
allocation finished without considering mapcount of each
file cache page.

Solution:
Check mapcount of filecache for each file pages. And migrate
them if they have high map count. High map count means this
file cache page is shared by many process.

Verify:
verified by ampere

Change-Id: I3e09437286f14a6cd9f7025566eb855dc9ca98d5
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
mm/vmscan.c