Re: [Intel-gfx] [PATCH libdrm 0/5] improve reuse implementation

2018-03-19 Thread Daniel Vetter
On Fri, Mar 16, 2018 at 05:10:44PM +, Emil Velikov wrote: > On 16 March 2018 at 08:43, Daniel Vetter wrote: > > On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: > >> From: "Xiong, James" > >> > >> With gem_reuse enabled, when a buffer size is different than > >> the sizes of bucke

RE: [PATCH libdrm 0/5] improve reuse implementation

2018-03-16 Thread Xiong, James
>-Original Message- >From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of >Daniel Vetter >Sent: Friday, March 16, 2018 1:43 AM >To: Xiong, James >Cc: intel-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org >Subject: Re: [PATCH libd

Re: [Intel-gfx] [PATCH libdrm 0/5] improve reuse implementation

2018-03-16 Thread Emil Velikov
On 16 March 2018 at 08:43, Daniel Vetter wrote: > On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: >> From: "Xiong, James" >> >> With gem_reuse enabled, when a buffer size is different than >> the sizes of buckets, it is aligned to the next bucket's size, >> which means about 25% more

Re: [PATCH libdrm 0/5] improve reuse implementation

2018-03-16 Thread Daniel Vetter
On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: > From: "Xiong, James" > > With gem_reuse enabled, when a buffer size is different than > the sizes of buckets, it is aligned to the next bucket's size, > which means about 25% more memory than the requested is allocated > in the worst

[PATCH libdrm 0/5] improve reuse implementation

2018-03-15 Thread James Xiong
From: "Xiong, James" With gem_reuse enabled, when a buffer size is different than the sizes of buckets, it is aligned to the next bucket's size, which means about 25% more memory than the requested is allocated in the worst senario. For example: Orignal sizeActual 32KB+1Byte 40KB . . .