Closed Bug 1748120 Opened 2 years ago Closed 2 years ago

AWFY page can take 5-6GB of RAM, and 1GB+ as heap unclassified in content process

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox97 --- disabled

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(4 files)

enable accelerated canvas
go to https://arewefastyet.com/win10/benchmarks/raptor-desktop-jetstream2?numDays=60

let the page load

ER: Nightly uses 200-300 MB RAM (as it does with un-accelerated canvas)
AR:

  1. 5-6GB RAM in the GPU process. 700MB as heap unclassified
  2. 1.3GB RAM use in the content process, with 1.2GB as heap unclassified.
Blocks: gpu-canvas
Attached file about:support
Summary: https://arewefastyet.com/win10/benchmarks/raptor-desktop-speedometer?numDays=60 can take 5-6GB of RAM, and 1GB+ as heap unclassified → AWFY page can take 5-6GB of RAM, and 1GB+ as heap unclassified in content process

Enabling accelerated canvas and visiting this page on the current Nightly on macOS just crashed the browser after 10 seconds (of loading the page).
So this is nasty. However, since it only happens when you manually enable accelerated canvas, it's not urgent (and you already blocked gpu-canvas, thank you!). Added another 2 bugs in See Also that look similar.

See Also: → 1748583, 1748167
Severity: -- → S3
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
Attached file memory-report.json.gz

PID 20624 and PID 16972

Hi Lee. With Nightly as of https://hg.mozilla.org/mozilla-central/rev/c59c06e50b89ab3772d032e6a2344abbd505fe0d , I can still repro this bug.
If I open the link, let the page load, scroll up and down a few times, and refresh the page, the memory in GPU process reaches 1.3GB and heap unclassified in content process reaches 1.2GB.

Should this bug be unduped ?

Flags: needinfo?(lsalzman)

Okay, undup it. Can you submit a new memory report with my fixes from nightly in it so I can look to see if anything changed?

Flags: needinfo?(lsalzman)

The memory report is attached in comment #5

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

This improved quite a bit recently.

Bug 1777872 - Use Shmem for backing DrawTargetWebgl's Skia target. r=jgilbert

When rendering large and/or fullscreen Canvas2Ds, excessive time can be spent
in calls to TexImage/ReadPixels copying into and out of Shmems to the separate
buffer for DrawTargetSkia. To alleviate this, we can make the DrawTargetSkia
directly wrap the Shmem, so that calls to TexImage/ReadPixels then directly
read or write to this without any separate copy. We modify RawTexImage to use
the IPDL SendTexImage path so that Shmems can be sent via SurfaceDescriptor.
Since SendTexImage is nominally async (which is beneficial), we rely on a
call to GetError later to verify that the Shmem processing is completely before
we further modify the DrawTargetSkia. We further add a ReadPixelsIntoShmem IPDL
call to allow sending the Shmem in the other direction directly.

Differential Revision: https://phabricator.services.mozilla.com/D151286

2022-07-29T08:29:42.438000: DEBUG : Did not find a branch, checking all integration branches
2022-07-29T08:29:42.447000: INFO : The bisection is done.
2022-07-29T08:29:42.449000: INFO : Stopped

Depends on: 1777872
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: