Open Bug 1414580 Opened 7 years ago Updated 2 years ago

High VRAM Usage on Firefox 57 Beta 14

Categories

(Core :: Graphics, defect)

57 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: borivoje.kojic, Unassigned)

Details

Attachments

(5 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171102181127

Steps to reproduce:

Enable Hardware Acceleration in Options>Performance on Firefox 57.0b14


Actual results:

Firefox uses 400-600MB of VRAM while open, about:memory shows it as mostly "commit" and "reserved"


Expected results:

Much lower VRAM usage (<100MB) is expected
Component: Untriaged → General
Product: Firefox → Core
Can confirm on firefox 62.0.2.

After a few days (with PC in standby over night) firefox will end up eating over 4 GB of RAM and 3 GB of VRAM.

My current workaround is to restart it from about:profiles every day.
Attached file aboutsupport.txt
My about:support
Attached file memory-report.json.gz
Here's an about:memory of Firefox using ~4000 MB RAM across its processes and Task Manager listing well over 6 GB of VRAM used across its processes (but I'm not seeing that much used on the GPU monitoring panel). Actual VRAM usage on the GPU went down from 4.3 GB to 0.8 GB after closing Firefox which indicates it actually used some 3.5 GB of VRAM.
Attached file memory-report2.json.gz
For comparison, here is a memory report after restarting through about:profiles and tabbing through all tabs to load them back up.
Component: General → Graphics
Attached file memory-report3.json.gz
Here's another memory report with Task Manager reporting some 5.25 GiB RAM used and around 36 GB VRAM (no I didn't skip a comma there) allocated, however actual VRAM usage is more in line with my earlier report (around 4 GB).

What I think could be interesting is that the GPU Process reports 4.3 GB private and 2.5 GB resident sizes, making it by far the biggest memory hog among the firefox processes. Another thing I noticed is that each Web Content process has over 1 GiB (one of them even over 2 GiB) of d3d11-shared-textures.
The Main process and WebExtension process seem fine with their reported memory sizes, leading me to believe that the situation is not caused by a bad extension.

I'm having this issue on windows 7 with all recent versions of firefox, even with a fresh installation, no addons and a new profile.
Disabling Hardware Acceleration or multiprocess seems to fix it.

Attached file about:support contents
I personally have dedicated GPU memory usage continuously raise to THOUSANDS of gigabytes when watching YouTube.
Just look at the rate at which it raises: https://streamable.com/gjp8o
That's 250MBs a sec!

This is just allocation, since I have just 6GBs of VRAM, but it does screw up other programs.

Turning off hardware acceleration does help, so does launching in safe mode, and this is not addon related.

My about:support is:
```

```

...Didn't know how attachments work here, ignore the empty back ticks.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: