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

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

 



On Tue, Jun 23, 2015 at 04:45:52PM +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 handle is
> no longer required rather than relying on the cleanup when
> the fd is closed. This greatly improves the memory footprint
> of the test allowing it to run on 1Mb systems.

Urm. We allocate the surfaces from the test.fd, and we close(test.fd) at
the end of every test. We munmap all the pointers (except bo_copy has a
leak of the mmaps), so we should not have been leaking any bo between
tests. This should not be improving the memory footprint at all, but
suggests something is wrong in your kernel.

Did you track the kernel objects throughout the test runs?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
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