<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/libprocessgroup, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>Make per-application memcg hierarchy configurable via a property</title>
<updated>2018-05-23T23:23:20+00:00</updated>
<author>
<name>Suren Baghdasaryan</name>
<email>surenb@google.com</email>
</author>
<published>2018-05-23T19:30:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=cbb690299f5910aa9b9162e151f0e54d1de73d7b'/>
<id>cbb690299f5910aa9b9162e151f0e54d1de73d7b</id>
<content type='text'>
Introduce ro.config.per_app_memcg Android property to enable/disable
per-application memcg hierarchy.
On low-ram devices (ro.config.low_ram=true) ro.config.per_app_memcg
defaults to true, otherwise it defaults to false.

Bug: 80201565
Test: set ro.config.per_app_memcg=true and verify /proc/&lt;app_pid&gt;/cgroup
membership (memory:/apps/uid_xxx/pid_xxx)
Test: set ro.config.per_app_memcg=false and verify /proc/&lt;app_pid&gt;/cgroup
membership (memory:/)
Change-Id: Iabd3ef6c9c16c774b9da959a7f43b5f66df120a3
Signed-off-by: Suren Baghdasaryan &lt;surenb@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce ro.config.per_app_memcg Android property to enable/disable
per-application memcg hierarchy.
On low-ram devices (ro.config.low_ram=true) ro.config.per_app_memcg
defaults to true, otherwise it defaults to false.

Bug: 80201565
Test: set ro.config.per_app_memcg=true and verify /proc/&lt;app_pid&gt;/cgroup
membership (memory:/apps/uid_xxx/pid_xxx)
Test: set ro.config.per_app_memcg=false and verify /proc/&lt;app_pid&gt;/cgroup
membership (memory:/)
Change-Id: Iabd3ef6c9c16c774b9da959a7f43b5f66df120a3
Signed-off-by: Suren Baghdasaryan &lt;surenb@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libprocessgroup: remove legacy C string handling and build for host</title>
<updated>2018-02-27T22:12:19+00:00</updated>
<author>
<name>Tom Cherry</name>
<email>tomcherry@google.com</email>
</author>
<published>2018-02-23T21:04:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=574a0816238748be8cbd35cf1009a8ebced6e75b'/>
<id>574a0816238748be8cbd35cf1009a8ebced6e75b</id>
<content type='text'>
Bug: 36970783
Test: kill zygote and see that its children die correctly
Change-Id: I1b0e9a9cdb834a000fec82323d690e3bd288692d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 36970783
Test: kill zygote and see that its children die correctly
Change-Id: I1b0e9a9cdb834a000fec82323d690e3bd288692d
</pre>
</div>
</content>
</entry>
<entry>
<title>Add memcg related configs to init.</title>
<updated>2017-07-18T22:58:40+00:00</updated>
<author>
<name>Robert Benea</name>
<email>robenea@google.com</email>
</author>
<published>2017-07-17T02:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d485226951013247dbb502fef7edbc6cf83acb0f'/>
<id>d485226951013247dbb502fef7edbc6cf83acb0f</id>
<content type='text'>
Allow configuring memory.swappiness, memory.soft_limit_in_bytes
and memory.limit_in_bytes by init; by doing so there is better
control of memory consumption per native app.

Test: tested on gobo branch.
bug: 63765067
Change-Id: I8906f3ff5ef77f75a0f4cdfbf9d424a579ed52bb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow configuring memory.swappiness, memory.soft_limit_in_bytes
and memory.limit_in_bytes by init; by doing so there is better
control of memory consumption per native app.

Test: tested on gobo branch.
bug: 63765067
Change-Id: I8906f3ff5ef77f75a0f4cdfbf9d424a579ed52bb
</pre>
</div>
</content>
</entry>
<entry>
<title>Use mem cgroups in libprocessgroup if they're available</title>
<updated>2017-07-11T19:48:10+00:00</updated>
<author>
<name>Robert Benea</name>
<email>robenea@google.com</email>
</author>
<published>2017-06-28T06:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=3280e48847e5dd16521ad7040d53eb30b66bf740'/>
<id>3280e48847e5dd16521ad7040d53eb30b66bf740</id>
<content type='text'>
Use mem cgroups if the kernel is built with CONFIG_MEMCG=y,
additionally add system group.

test: verified on both kernel with/without memcg enabled
Change-Id: Ia2ae89efa3905e9da68fa77adac1225c667864d1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use mem cgroups if the kernel is built with CONFIG_MEMCG=y,
additionally add system group.

test: verified on both kernel with/without memcg enabled
Change-Id: Ia2ae89efa3905e9da68fa77adac1225c667864d1
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Use mem cgroups in libprocessgroup if they're available"</title>
<updated>2017-07-08T00:04:42+00:00</updated>
<author>
<name>Tim Murray</name>
<email>timmurray@google.com</email>
</author>
<published>2017-07-08T00:04:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=fc10e3d5e5385081853b7d1b3cc41f882ac6325d'/>
<id>fc10e3d5e5385081853b7d1b3cc41f882ac6325d</id>
<content type='text'>
This reverts commit 32375c23284704a7d044ed79060c4431468b4b4e.

bug 63164307

Change-Id: I3336bbf7c2f3297b231c5b0a1ef538faff9513fd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 32375c23284704a7d044ed79060c4431468b4b4e.

bug 63164307

Change-Id: I3336bbf7c2f3297b231c5b0a1ef538faff9513fd
</pre>
</div>
</content>
</entry>
<entry>
<title>Use mem cgroups in libprocessgroup if they're available</title>
<updated>2017-06-29T23:49:00+00:00</updated>
<author>
<name>Robert Benea</name>
<email>robenea@google.com</email>
</author>
<published>2017-06-28T06:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=32375c23284704a7d044ed79060c4431468b4b4e'/>
<id>32375c23284704a7d044ed79060c4431468b4b4e</id>
<content type='text'>
Use mem cgroups if the kernel is built with CONFIG_MEMCG=y,
additionally add system group.

test: verified on both kernel with/without memcg enabled
Change-Id: Ib9d1c8e3c797e75f160e0e92edf3f11c9d8e9f17
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use mem cgroups if the kernel is built with CONFIG_MEMCG=y,
additionally add system group.

test: verified on both kernel with/without memcg enabled
Change-Id: Ib9d1c8e3c797e75f160e0e92edf3f11c9d8e9f17
</pre>
</div>
</content>
</entry>
<entry>
<title>init: move killing of process groups to libprocessgroup</title>
<updated>2017-06-07T20:20:21+00:00</updated>
<author>
<name>Tom Cherry</name>
<email>tomcherry@google.com</email>
</author>
<published>2017-06-06T02:20:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=70a5ed49ef82d0d87508080563ec10b994bf4f9e'/>
<id>70a5ed49ef82d0d87508080563ec10b994bf4f9e</id>
<content type='text'>
libprocessgroup kills the cgroup associated with a given pid and uid,
but not the POSIX process group associated with it.  This means that
to kill both, two of the same signals must be sent, which may cause
some issues.

This change kills all POSIX process groups whose group leaders are
found within a cgroup.  It only then kills processes in the cgroup
that are not part of the POSIX process groups that have been killed.

Bug: 37853905
Bug: 62418791
Test: Boot, kill zygote, reboot
Change-Id: Id1d96935745899b4c454c36c351ec16a0b1d3827
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libprocessgroup kills the cgroup associated with a given pid and uid,
but not the POSIX process group associated with it.  This means that
to kill both, two of the same signals must be sent, which may cause
some issues.

This change kills all POSIX process groups whose group leaders are
found within a cgroup.  It only then kills processes in the cgroup
that are not part of the POSIX process groups that have been killed.

Bug: 37853905
Bug: 62418791
Test: Boot, kill zygote, reboot
Change-Id: Id1d96935745899b4c454c36c351ec16a0b1d3827
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable libprocessgroup on host bionic</title>
<updated>2017-05-12T00:55:04+00:00</updated>
<author>
<name>Tom Cherry</name>
<email>tomcherry@google.com</email>
</author>
<published>2017-05-10T00:44:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=efa81080fda2591bcc7411053c7a560ff32df1b7'/>
<id>efa81080fda2591bcc7411053c7a560ff32df1b7</id>
<content type='text'>
Bug: 31559095

Test: Build
Change-Id: I1ee9fb492137c6c16f0d02586393837616127972
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 31559095

Test: Build
Change-Id: I1ee9fb492137c6c16f0d02586393837616127972
</pre>
</div>
</content>
</entry>
<entry>
<title>Better logging in libprocessgroup and make resources clean up themselves</title>
<updated>2017-05-04T19:18:57+00:00</updated>
<author>
<name>Tom Cherry</name>
<email>tomcherry@google.com</email>
</author>
<published>2017-04-21T20:48:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=20514c4411923e03df4a5057ef43bf9716983e14'/>
<id>20514c4411923e03df4a5057ef43bf9716983e14</id>
<content type='text'>
Bug: 36661364
Bug: 36701253
Bug: 37540956

Test: Reboot bullhead
Test: Start and stop services
Change-Id: I97b6e17a7350850db733bee9fc83bdd296d88c61
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 36661364
Bug: 36701253
Bug: 37540956

Test: Reboot bullhead
Test: Start and stop services
Change-Id: I97b6e17a7350850db733bee9fc83bdd296d88c61
</pre>
</div>
</content>
</entry>
<entry>
<title>libprocessgroup: Android.mk -&gt; Android.bp</title>
<updated>2017-04-19T21:29:08+00:00</updated>
<author>
<name>Steven Moreland</name>
<email>smoreland@google.com</email>
</author>
<published>2017-04-19T21:12:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=419ce36c7d3911002e8cbabffe5e8addc1388a0c'/>
<id>419ce36c7d3911002e8cbabffe5e8addc1388a0c</id>
<content type='text'>
Test: links
Test: (sanity) boot marlin in recovery + to system UI
Bug: 37512442
Change-Id: Ie19c02bda9df7c0cfdeeaf34c48f251b2b93961d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test: links
Test: (sanity) boot marlin in recovery + to system UI
Bug: 37512442
Change-Id: Ie19c02bda9df7c0cfdeeaf34c48f251b2b93961d
</pre>
</div>
</content>
</entry>
</feed>
