From: Arun Siluvery Subject: [RFC] libdrm_intel: Optimize BO alloc to avoid rounding to bucket size Date: Fri, 29 Aug 2014 11:02:00 +0100 Message-ID: <1409306521-7978-1-git-send-email-arun.siluvery@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id B8C176E2CA for ; Fri, 29 Aug 2014 03:02:47 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org Cc: Lancaster@freedesktop.org, Matthias Dejaegher List-Id: intel-gfx@lists.freedesktop.org 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