From: Greg KH <greg@kroah.com>
To: Zhaoyang Huang <huangzhaoyang@gmail.com>
Cc: "open list:ANDROID ION DRIVER" <devel@driverdev.osuosl.org>,
"open list:ANDROID ION DRIVER" <dri-devel@lists.freedesktop.org>,
"moderated list:ANDROID ION DRIVER"
<linaro-mm-sig@lists.linaro.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] driver : staging : ion: optimization for decreasing memory fragmentaion
Date: Wed, 27 Mar 2019 23:35:13 +0900 [thread overview]
Message-ID: <20190327143513.GA14931@kroah.com> (raw)
In-Reply-To: <1553063903-26768-1-git-send-email-huangzhaoyang@gmail.com>
On Wed, Mar 20, 2019 at 02:38:23PM +0800, Zhaoyang Huang wrote:
> From: Zhaoyang Huang <zhaoyang.huang@unisoc.com>
>
> Two action for this patch:
> 1. set a batch size for system heap's shrinker, which can have it buffer
> reasonable page blocks in pool for future allocation.
> 2. reverse the order sequence when free page blocks, the purpose is also
> to have system heap keep as more big blocks as it can.
>
> By testing on an android system with 2G RAM, the changes with setting
> batch = 48MB can help reduce the fragmentation obviously and improve
> big block allocation speed for 15%.
>
> Signed-off-by: Zhaoyang Huang <zhaoyang.huang@unisoc.com>
> ---
> drivers/staging/android/ion/ion_heap.c | 16 +++++++++++++++-
> drivers/staging/android/ion/ion_system_heap.c | 2 +-
> 2 files changed, 16 insertions(+), 2 deletions(-)
What changed from v1? Always put that below the --- line as the
documentation asks you to.
thanks,
greg k-h
prev parent reply other threads:[~2019-03-27 18:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-20 6:38 [PATCH v2] driver : staging : ion: optimization for decreasing memory fragmentaion Zhaoyang Huang
2019-03-27 14:35 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190327143513.GA14931@kroah.com \
--to=greg@kroah.com \
--cc=devel@driverdev.osuosl.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=huangzhaoyang@gmail.com \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox