mm: forward memory reclaim process
authorTao Zeng <tao.zeng@amlogic.com>
Tue, 12 Sep 2017 08:39:40 +0000 (16:39 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 13 Sep 2017 01:36:25 +0000 (18:36 -0700)
commit4053a7d0ec539442b05a9d9aa5c89e6eb37ab962
treee8d5fc50e07c3273aae28e68ca56231276ee418d
parent78e0532bf69a31ecaf86ae826e435f5f5e1fdf1d
mm: forward memory reclaim process

PD#150206: mm: forward memory reclaim process

memory reclaim process is usually do when first allocate failed
from buddy. This will cause some process crash especially when
memory is low, because there is not enough time to do reclaim
process. This change try to wake up kswapd process to reclaim
memory if free memory is less than high water mark. After apply
this change, free memory is usually keeps high than high_water
mark.

Change-Id: I03b5b931b6ec1fe1345d6f5cf8c15150438a26d3
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
mm/page_alloc.c