Potential memory leak in memory_instrumentation |
|||||
Issue descriptionA potential memory leak was detected by running a browser for a week and grabing a memory dump at the end. The attached stack-frame is the source of the allocations. A potential leak of 11M, for 11K objects.
,
Sep 5 2017
+primiano
,
Sep 5 2017
oysteine, can you find an owner for this bug.
,
Sep 5 2017
+ hjd This code is owned by Primiano and Hector.
,
Sep 5 2017
Do you know if this is increasing over time or not? This looks suspiciously similar to crbug.com/750696#c15 (we just send over a *lot* of mmaps), although on Linux the order of magnitude was around 1MB, here we are 1 order off. Is there a number of objects potentially leaked in that report?
,
Sep 5 2017
> order of magnitude was around 1MB, here we are 1 order off. Ah you wrote it in #0, 11k. Hmm, the number of objects is sort of compatible with "this is just one snapshot", but why the amount of memory is 10x?
,
Sep 5 2017
Oups, the amount of memory 1.1M, not 11M.
,
Sep 5 2017
I was going to link to the same bug as Primiano ;) Which OS was this (and also was this a official or local build)? Could you upload the trace file if you have it and if you still have the browser open there are some UMA which could help debugging. Thanks!
,
Sep 5 2017
This was canary (last week) on a Mac. Memory dump is attached.
,
Sep 5 2017
[etienneb clarified offline that the size is 1.1 MB not 11MB) hjd and I discussed offline, given that there are 5 processes involved, and any of them seems to have (at least by looking at vmmap -v) at least 1k entries, the math seem to match: 5 (processes) x 1k (entries) at least 160 bytes per entry (min sizeof(VMRegion) without any string) -> 800K in other words, I don't this is a leak, this is just the cost of shipping the mmaps for all processes for *one* snapshot :/
,
Sep 19 2017
Thanks for following up. :) |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by etienneb@chromium.org
, Sep 5 2017