All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun Siluvery <arun.siluvery@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Lancaster@freedesktop.org,
	Matthias Dejaegher <matthias.dejaegher@intel.com>
Subject: [RFC] libdrm_intel: Optimize BO alloc to avoid rounding to bucket size
Date: Fri, 29 Aug 2014 11:02:00 +0100	[thread overview]
Message-ID: <1409306521-7978-1-git-send-email-arun.siluvery@linux.intel.com> (raw)

This patch reworks BO allocation to avoid rounding up to bucket size.
Considering the current bucket sizes, certain BOs are allocated with
more than the requested size wasting significant memory and it adds to
the memory pressure on systems with low memory and in the worst case
killing the benchmark itself which is not a good user experience.

The data presented is the shmem usage obtained from an Android device;
I am sending this patch to get initial feedback from the community and
I can get similar benchmark data on linux.

I am keen to upstream this and would really appreciate if you can review
and provide any comments/suggestions.


Garry Lancaster (1):
  libdrm_intel: Rework BO allocs to avoid rounding up to bucket size

 intel/intel_bufmgr_gem.c | 134 +++++++++++++++++++++++++++++------------------
 1 file changed, 83 insertions(+), 51 deletions(-)

-- 
2.0.4

             reply	other threads:[~2014-08-29 10:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 10:02 Arun Siluvery [this message]
2014-08-29 10:02 ` [RFC] libdrm_intel: Rework BO allocs to avoid rounding up to bucket size Arun Siluvery
2014-08-29 10:16   ` Chris Wilson
2014-08-29 10:45     ` Siluvery, Arun
2014-08-29 11:18       ` Chris Wilson
2014-08-29 12:34         ` Daniel Vetter

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=1409306521-7978-1-git-send-email-arun.siluvery@linux.intel.com \
    --to=arun.siluvery@linux.intel.com \
    --cc=Lancaster@freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthias.dejaegher@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.