• Benoit Lize's avatar
    [PartitionAlloc] Break down aligned partition footprint in memory-infra. · 9021e274
    Benoit Lize authored
    With PartitionAlloc-Everywhere, there are two partitions: one for
    malloc(), and one for posix_memalign() (and equivalent). mallinfo()
    reports data for both partitions together.
    
    However there is a suspicion that having two separate partitions may
    increase GPU process memory footprint. To break these down, separate the
    aligned partition data from the regular one.
    
    On Linux, this shows that browser and renderer processes don't have a
    lot of aligned memory, but the GPU process does. For instance, with a
    single CNN.com tab open, there is a ~50/50 split between the regular and
    aligned partitions, and the aligned partition uses a lot of address
    space as well, respectively 128MiB allocated, and 179MiB mapped.
    
    Note: this may change sizes for some malloc() metrics with detailed
    dumps.
    
    Bug: 998048
    Change-Id: I29dd7a93515ef25736ea830ddf663e85b9e122a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617848
    Commit-Queue: Benoit L <lizeb@chromium.org>
    Reviewed-by: default avatarssid <ssid@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#841981}
    9021e274
malloc_dump_provider.cc 10.4 KB