[RFC] libdrm_intel: Optimize BO alloc to avoid rounding to bucket size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux