Re: [Intel-gfx] [PATCH i-g-t] tests/gem_fence_thrash.c: Reduce memory usage

2015-06-23 Thread Morton, Derek J
-Original Message- From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] Sent: Tuesday, June 23, 2015 4:08 PM To: Morton, Derek J Cc: intel-gfx@lists.freedesktop.org; Wood, Thomas Subject: Re: [Intel-gfx] [PATCH i-g-t] tests/gem_fence_thrash.c: Reduce memory usage On Tue, Jun 23, 2015

[Intel-gfx] [PATCH i-g-t] tests/gem_fence_thrash.c: Reduce memory usage

2015-06-23 Thread Derek Morton
On android platforms with 1Gb RAM gem_fence_thrash was failing with an out of memory error. This patch causes gem_close() to be called when a thread is finished with its handles rather than relying on the cleanup when the fd is closed. This greatly improves the memory footprint of the test

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_fence_thrash.c: Reduce memory usage

2015-06-23 Thread Chris Wilson
On Tue, Jun 23, 2015 at 04:01:53PM +0100, Derek Morton wrote: On android platforms with 1Gb RAM gem_fence_thrash was failing with an out of memory error. This patch causes gem_close() to be called when a thread is finished with its handles rather than relying on the cleanup when the fd is