Hi,We found that memory usage of partition alloc bloats in whole on Android Content Shell. Here is the open doc: https://docs.google.com/a/chromium.org/document/d/15PEA61T3GmwgHqwmjYPw1GLCyXens3y8TWGdJA90Xf8/edit#
Summary:On Android content shell, partition alloc usage increased according to the number of loading pages. Partition alloc is used for various purposes like DOM, string, font and other objects, and we found that not a certain part but all parts bloated.What we want to know:* If partition alloc itself has a problem, it might be fragmentation. Is there a good way to know how fragmentation happens?
On Mon, Jun 16, 2014 at 11:18 PM, Hajime Hoshi <hajim...@google.com> wrote:
Hi,We found that memory usage of partition alloc bloats in whole on Android Content Shell. Here is the open doc: https://docs.google.com/a/chromium.org/document/d/15PEA61T3GmwgHqwmjYPw1GLCyXens3y8TWGdJA90Xf8/edit#How is memory usage measured? PartitionAlloc holds on to address space but returns pages to the system with madvise(). The measure of actually used memory is best captured by what the Linux kernel calls "private dirty" pages. The number of these is exposed via /proc.
Summary:On Android content shell, partition alloc usage increased according to the number of loading pages. Partition alloc is used for various purposes like DOM, string, font and other objects, and we found that not a certain part but all parts bloated.What we want to know:* If partition alloc itself has a problem, it might be fragmentation. Is there a good way to know how fragmentation happens?In DEBUG builds (or release if you edit / hack PartitionAlloc.cpp), there's a partitionDumpStats() API. Call it on whichever partition you think might be fragmented.PartitionAlloc is supposed to fragmentation resistant (more so than tcmalloc) but of course we may have gotten it wrong or have a bug :) As we switched from tcmalloc to PartitionAlloc, we did see the page cyclers report a memory saving.CheersChrisPlease let us know if you have some questions or concerns.
--Hajime Hoshi <hajim...@google.com>
CheersChrisPlease let us know if you have some questions or concerns.
--Hajime Hoshi <hajim...@google.com>
CheersChrisCheersChrisPlease let us know if you have some questions or concerns.
--Hajime Hoshi <hajim...@google.com>--Hajime Hoshi <hajim...@google.com>
CheersChrisCheersChrisPlease let us know if you have some questions or concerns.
--Hajime Hoshi <hajim...@google.com>--Hajime Hoshi <hajim...@google.com>--Hajime Hoshi <hajim...@google.com>