RE: [Intel-gfx] [PATCH 1/1] intel: align reuse buffer's size on page size instead

2018-03-15 Thread Xiong, James
lists.freedesktop.org; >intel-...@lists.freedesktop.org >Cc: Xiong, James <james.xi...@intel.com> >Subject: Re: [Intel-gfx] [PATCH 1/1] intel: align reuse buffer's size on page >size instead > >Quoting James Xiong (2018-03-02 17:53:04) >> From: "Xiong, James"

Re: [Intel-gfx] [PATCH 1/1] intel: align reuse buffer's size on page size instead

2018-03-03 Thread Chris Wilson
Quoting James Xiong (2018-03-02 17:53:04) > 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

[PATCH 1/1] intel: align reuse buffer's size on page size instead

2018-03-02 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