Closed Bug 1694480 Opened 8 months ago Closed 8 months ago

Forward GPU memory pressure events to the UI process

Categories

(Core :: Graphics, task, P3)

Desktop
Windows
task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When we are running low on virtual memory in the GPU process, we should be notifying the UI process of a memory pressure event. This may allow us to free up memory in the content processes that may be mapped into the memory of the GPU process (e.g. images) before we run into a mapping failure.

On 32-bit Windows, we see crashes related to running out of virtual
memory address space in the GPU process. Prior to this patch, we did not
report any memory status information from the GPU process to the parent,
only from the parent to the GPU process. Now if we go below the
threshold we request memory to be cleared in the parent/content
processes. This should trickle down to the GPU process by freeing shared
memory resources such as images, allowing us to unmap them out of the
GPU process sooner.

We will see similar problems on any 32-bit platform. The only other
target of note with sufficient numbers is 32-bit Android. There is no
GPU process on Android, however we only monitor the virtual memory
address space on Windows.

Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/75d1117edb27
Notify parent process of low virtual memory in GPU process. r=jrmuizel
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.