<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_system_memory_libmeminfo/include, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/'/>
<entry>
<title>libmeminfo: Add APIs for per-process GPU memory</title>
<updated>2021-06-30T03:53:25+00:00</updated>
<author>
<name>Kalesh Singh</name>
<email>kaleshsingh@google.com</email>
</author>
<published>2021-06-28T17:48:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=8c798140937bf79cbced590685c607a37f178280'/>
<id>8c798140937bf79cbced590685c607a37f178280</id>
<content type='text'>
Add apis for reading the per-process GPU memory as
reported by the gpu_mem_total tracepoint.

Bug: 192373030
Test: Manual
Change-Id: I0f04d6bc39f56cfc4463b8a4a3175bcc13819f98
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add apis for reading the per-process GPU memory as
reported by the gpu_mem_total tracepoint.

Bug: 192373030
Test: Manual
Change-Id: I0f04d6bc39f56cfc4463b8a4a3175bcc13819f98
</pre>
</div>
</content>
</entry>
<entry>
<title>libmeminfo: Add THP field to procmem output</title>
<updated>2021-04-20T00:56:32+00:00</updated>
<author>
<name>Kalesh Singh</name>
<email>kaleshsingh@google.com</email>
</author>
<published>2021-04-15T19:51:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=f6ad0be4424671686544ea0c88e843325ad254e4'/>
<id>f6ad0be4424671686544ea0c88e843325ad254e4</id>
<content type='text'>
In preparation for THP support, add the size of the VMA
that is backed by THPs to procmem output.

Bug: 165836290
Test: procmem $pid
Change-Id: Ic4908eeca7f4111c99c53c796be9a48d62daca8a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In preparation for THP support, add the size of the VMA
that is backed by THPs to procmem output.

Bug: 165836290
Test: procmem $pid
Change-Id: Ic4908eeca7f4111c99c53c796be9a48d62daca8a
</pre>
</div>
</content>
</entry>
<entry>
<title>libmeminfo: Add THP stats to showmap</title>
<updated>2021-04-20T00:55:46+00:00</updated>
<author>
<name>Kalesh Singh</name>
<email>kaleshsingh@google.com</email>
</author>
<published>2021-04-15T22:44:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=d66e204405555ad61eea2a0c7a6202c4a8452703'/>
<id>d66e204405555ad61eea2a0c7a6202c4a8452703</id>
<content type='text'>
To support THP accounting parse and output the smaps THP
fields in showmap.

Bug: 165836290
Test: showmap $pid
Change-Id: I7f8ab89c4e6741322097702c0acd1fe0468fce5e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To support THP accounting parse and output the smaps THP
fields in showmap.

Bug: 165836290
Test: showmap $pid
Change-Id: I7f8ab89c4e6741322097702c0acd1fe0468fce5e
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge changes from topic "madvise_readmaps_optimization"</title>
<updated>2021-03-05T21:25:31+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2021-03-05T21:25:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=e7a096a3a892a4d3a90518863935443bf2e069c0'/>
<id>e7a096a3a892a4d3a90518863935443bf2e069c0</id>
<content type='text'>
* changes:
  Add benchmarks for reading proc maps
  Add VMA Parsing function for efficiently parsing Maps file
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* changes:
  Add benchmarks for reading proc maps
  Add VMA Parsing function for efficiently parsing Maps file
</pre>
</div>
</content>
</entry>
<entry>
<title>Add VMA Parsing function for efficiently parsing Maps file</title>
<updated>2021-03-05T20:04:11+00:00</updated>
<author>
<name>Edgar Arriaga</name>
<email>edgararriaga@google.com</email>
</author>
<published>2021-02-26T03:06:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=9bbc7981a86789277b405de05abb39a7c33207f4'/>
<id>9bbc7981a86789277b405de05abb39a7c33207f4</id>
<content type='text'>
The efficiency comes from using ReadMaps which avoids MapInfo allocation
per address range and avoids allocating strings per line of maps file
during parsing.

Test: Manual
Bug: 181174877

Signed-off-by: Edgar Arriaga &lt;edgararriaga@google.com&gt;
Change-Id: I2e583ca83dc61c4d4216c60d35a3f95a6db66d0f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The efficiency comes from using ReadMaps which avoids MapInfo allocation
per address range and avoids allocating strings per line of maps file
during parsing.

Test: Manual
Bug: 181174877

Signed-off-by: Edgar Arriaga &lt;edgararriaga@google.com&gt;
Change-Id: I2e583ca83dc61c4d4216c60d35a3f95a6db66d0f
</pre>
</div>
</content>
</entry>
<entry>
<title>procmeminfo: fix race in IsSmapsRollupSupported</title>
<updated>2021-02-26T02:21:19+00:00</updated>
<author>
<name>Tim Murray</name>
<email>timmurray@google.com</email>
</author>
<published>2021-02-24T22:54:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=422e9a2bffaed5ad0d8d8d286b57d2e5e8cc3727'/>
<id>422e9a2bffaed5ad0d8d8d286b57d2e5e8cc3727</id>
<content type='text'>
smaps_rollup is falsely reported as unsupported in some cases. One
possible cause is that the process whose PSS is checked is killed so
/proc/&lt;pid&gt;/smaps_rollup is not present, which then causes libmeminfo
to assume that smaps_rollup is unsupported.

Instead, when checking for smaps_rollup support, check for the
existence of smaps_rollup belonging to the current process since that
process is by definition alive.

Bug: 181165549
Test: boots and collects memory
Change-Id: I08053c73de0168734938e408bd0c2993d8959ed3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
smaps_rollup is falsely reported as unsupported in some cases. One
possible cause is that the process whose PSS is checked is killed so
/proc/&lt;pid&gt;/smaps_rollup is not present, which then causes libmeminfo
to assume that smaps_rollup is unsupported.

Instead, when checking for smaps_rollup support, check for the
existence of smaps_rollup belonging to the current process since that
process is by definition alive.

Bug: 181165549
Test: boots and collects memory
Change-Id: I08053c73de0168734938e408bd0c2993d8959ed3
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow ForEachVma*() APIs to use /proc/&lt;pid&gt;/maps</title>
<updated>2021-02-25T14:53:00+00:00</updated>
<author>
<name>Kalesh Singh</name>
<email>kaleshsingh@google.com</email>
</author>
<published>2021-02-25T13:54:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=f83245ce9786dda48ca07426a21eca1deead98aa'/>
<id>f83245ce9786dda48ca07426a21eca1deead98aa</id>
<content type='text'>
Not all clients are interested in the mem usage stats parsed
from smaps. Allow using ForEachVma*() methods with /proc/&lt;pid&gt;/maps.

Bug: 181174877
Test: libmeminfo_test
Change-Id: I032e0cbf5707a8c305e0d0a4e47013503465bad1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not all clients are interested in the mem usage stats parsed
from smaps. Allow using ForEachVma*() methods with /proc/&lt;pid&gt;/maps.

Bug: 181174877
Test: libmeminfo_test
Change-Id: I032e0cbf5707a8c305e0d0a4e47013503465bad1
</pre>
</div>
</content>
</entry>
<entry>
<title>Add API to return total size of DMA-BUFs exported from DMA-BUF heaps</title>
<updated>2021-02-11T18:36:02+00:00</updated>
<author>
<name>Hridya Valsaraju</name>
<email>hridya@google.com</email>
</author>
<published>2021-02-10T05:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=7d1343d6479fac9f39653441db8be02a6efe0ab8'/>
<id>7d1343d6479fac9f39653441db8be02a6efe0ab8</id>
<content type='text'>
The API will be used by dumpsys to print out the total size of DMA-BUFs
exported from DMA-BUF heaps.

Bug: 167709539
Test: adb shell dumpsys meminfo
Change-Id: Id65ca365d646ccb0485ed9e127b281e96da8795f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The API will be used by dumpsys to print out the total size of DMA-BUFs
exported from DMA-BUF heaps.

Bug: 167709539
Test: adb shell dumpsys meminfo
Change-Id: Id65ca365d646ccb0485ed9e127b281e96da8795f
</pre>
</div>
</content>
</entry>
<entry>
<title>Add API to read DMA-BUF heap total pool size</title>
<updated>2021-02-05T06:05:51+00:00</updated>
<author>
<name>Hridya Valsaraju</name>
<email>hridya@google.com</email>
</author>
<published>2021-02-02T19:07:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=bc0291684944b409ffdc62b03725379286f269bd'/>
<id>bc0291684944b409ffdc62b03725379286f269bd</id>
<content type='text'>
This API will read the total size of all memory pools maintained by
DMA-BUF heaps.

Bug: 167709539
Test: dumpsys meminfo
Change-Id: I379bf0dbb0bd4972be09498c00034d5e58585910
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This API will read the total size of all memory pools maintained by
DMA-BUF heaps.

Bug: 167709539
Test: dumpsys meminfo
Change-Id: I379bf0dbb0bd4972be09498c00034d5e58585910
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a flag to distinguish shared VMAs</title>
<updated>2021-01-15T18:51:05+00:00</updated>
<author>
<name>Edgar Arriaga</name>
<email>edgararriaga@google.com</email>
</author>
<published>2020-09-25T01:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_system_memory_libmeminfo/commit/?id=10425e36fcc7bfdfb275f70499f9d860dee2e850'/>
<id>10425e36fcc7bfdfb275f70499f9d860dee2e850</id>
<content type='text'>
This flag is required to filter out shared VMAs when compacting memory
using process_madvise.

Test: built and flashed
Bug: 173258203

Change-Id: I0438432000ffe464b9d8f8a7770a7302bddfb78e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This flag is required to filter out shared VMAs when compacting memory
using process_madvise.

Test: built and flashed
Bug: 173258203

Change-Id: I0438432000ffe464b9d8f8a7770a7302bddfb78e
</pre>
</div>
</content>
</entry>
</feed>
