]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ION: Sys_heap: Add cached pool to spead up cached buffer alloc
authorChen Feng <puck.chen@hisilicon.com>
Thu, 19 May 2016 03:03:16 +0000 (11:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:38:49 +0000 (17:38 +0200)
commite7f63771b60e7802c5a9b437c5ab1a8e33a0bb35
treeee9680ee49b4f37f801b83b5b5ec0ecba777259d
parent1f0c9efe5627ed12b469dae7434795ed625936bf
ION: Sys_heap: Add cached pool to spead up cached buffer alloc

Add ion cached pool in system heap. This patch add a cached pool
in system heap. It has a great improvement of alloc for cached
buffer.

With memory pressue alloc test 800MB in userspace used iontest.
The result avg is 577ms. Without patch it's avg is about 883ms.

v1: Makes the cached buffer zeroed before going to pool
v2: Add cached param in pool to distinguish wheather need to flush
    cache at a fresh alloc.
    Rework the shrink function.

Signed-off-by: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Xia Qing <saberlily.xia@hisilicon.com>
Reviewed-by: Fu Jun <oliver.fu@hisilicon.com>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c
drivers/staging/android/ion/ion_priv.h
drivers/staging/android/ion/ion_system_heap.c