Memory reporting: Firefox using 45GB VSS on protonmail site
Categories
(Core :: JavaScript: WebAssembly, defect, P3)
Tracking
()
People
(Reporter: benjbrandall, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: memory-footprint, Whiteboard: [MemShrink:P2])
Attachments
(5 files)
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 5•7 years ago
|
||
Reporter | ||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
![]() |
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
![]() |
||
Comment 15•7 years ago
|
||
Reporter | ||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
![]() |
||
Comment 18•7 years ago
|
||
Comment 19•6 years ago
|
||
:baku, it looks like we're not reporting wasm guard pages for web workers, do you know who could look into that?
Comment 20•6 years ago
|
||
We do report memory stats in workers calling:
https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/dom/workers/WorkerPrivate.cpp#1194
Wondering why wasm in workers are not correctly reported. Maybe njn is more familiar with this memory reporting.
![]() |
||
Comment 21•6 years ago
|
||
The wasm guard pages got some special handling in bug 1307768. I bet the problem is in there somewhere.
![]() |
||
Comment 22•6 years ago
|
||
The wasm guard pages are recorded in ClassInfo
, which is totally the wrong spot for them. Luke, what is the right granularity for them -- is there at most one wasm guard page per JSRuntime?
Updated•6 years ago
|
Updated•5 years ago
|
Comment 24•3 years ago
|
||
It looks like protonmail uses wasm somewhere. Each WebAssembly.Memory object created reserves (not commits) a large amount (~6GiB) of virtual memory. As of bug 1615988, we now report this accurately in about:memory. This is not a memory leak, and once wasm code is freed this virtual memory will be unreserved. Reserved, but not committed, virtual memory generally doesn't take significant resources from the OS.
Marking this as a duplicate of bug 1615988.
Description
•