- August 3, 2015 at 6:43 pm #49649
I’m looking for a GL extension supported by ImgTec to query the total and available (unallocated) amount of GPU memory. Does it exist? Bonus points if it lets you query how many bytes of GPU memory are tied up with managing “ghosts”!
We could use this to determine:
1) what use cases cause GPU memory consumption to increase,
2) what the current consumption is [cross-system], and
3) help pin down use cases where the PowerVR driver is ghosting textures.
BACKGROUND: Our system’s GPU memory is being exceeded, again. There are multiple independent programs running on this system utilizing the PowerVR GPU. These applications are written by separate companies which don’t share source code. We need a way to troubleshoot these kind of problems quickly when they arise. The requested extension would provide that. For instance: Disable program X — observe available GPU memory. Enable program X — observe available GPU memory. Try use case X, observe available GPU memory.
Even if there were only one application on the system utilizing the GPU (ours) and we instrumented that application to estimate current GPU memory consumed (in buffers, textures, etc.), that still doesn’t cut it. The GPU driver will be consuming more memory than our estimates. For instance, ghosting many megabytes of memory due to application code poorly optimized for tile-based deferred GPUs, substituting alternate internal texture or renderbuffer formats under-the-hood, creating parameter buffers and other driver-internal buffers for its own uses which consume additional GPU memory.
Thanks!August 7, 2015 at 1:16 pm #49712
I agree this would be a useful addition.
Many of our platforms are UMA based which adds some complication to reporting a ‘true’ remaining memory figure. This doesn’t exclude offering some of the information you mention.
I will discuss with the relevant teams what could be provided. At this point we cannot give any assurance as to when or if this will be implemented.
Thank you for the feedback, we really appreciate it!