Help needed. WebAssembly page memory usage is very large

53 views
Skip to first unread message

曹俊跃

unread,
Nov 18, 2021, 1:05:52 AM11/18/21
to memor...@chromium.org
Hi memory dev team,
I have a web page using WebAssembly for video playing and the memory consumption is very high. Besides, the memory keeps growing when I play the video.
I followed https://chromium.googlesource.com/chromium/src/+/HEAD/docs/memory/debugging_memory_issues.md instruction to find out the problem and I found the difference is mainly in private footprint.
  1. The attached trace_with_heap_dump-before.json.gz is dumped before loading the wasm part. The private footprint is 374MB
  1. The attached trace_with_heap_dump-after.json.gz is dumped after loading the wasm part. The private footprint is 2093MB
I also attached two smaps from /proc/<proc_id>/smaps.
Reproduce(SharedArrayBuffer needs to be run with https, See readme in the zip):
I hope you can help me to find out why the memory usage is so large. Thank you very much.
trace_with_heap_dump-before.json.gz
trace_with_heap_dump-after.json.gz
smaps-before
smaps-after
Reply all
Reply to author
Forward
0 new messages