staging: ion : Donnot wakeup kswapd in ion system alloc
commite1df9302a2f43b29312d0f6ccbde52f7211eca97
authorChen Feng <puck.chen@hisilicon.com>
Fri, 15 Jan 2016 02:38:19 +0000 (15 10:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 05:50:01 +0000 (29 07:50 +0200)
treecae18cf61f1f979352b36c637ed738d5efcfe83c
parent585af47e21ba3c2ac1f7a20fff17744b51af884f
staging: ion : Donnot wakeup kswapd in ion system alloc

commit 2ef230531ee171a475fc3ddad5516dd7e09a8a77 upstream.

Since ion alloc can be called by userspace,eg gralloc.
When it is called frequently, the efficiency of kswapd is
to low. And the reclaimed memory is too lower. In this way,
the kswapd can use to much cpu resources.

With 3.5GB DMA Zone and 0.5 Normal Zone.

pgsteal_kswapd_dma 9364140
pgsteal_kswapd_normal 7071043
pgscan_kswapd_dma 10428250
pgscan_kswapd_normal 37840094

With this change the reclaim ratio has greatly improved
18.9% -> 72.5%

Signed-off-by: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Lu bing <albert.lubing@hisilicon.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Cc: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c