diff options
| author | Peter Collingbourne <pcc@google.com> | 2018-10-30 15:49:33 -0700 |
|---|---|---|
| committer | Peter Collingbourne <pcc@google.com> | 2018-10-31 17:09:59 -0700 |
| commit | d7157c22afd3fef378d0105287ae0b60deef9665 (patch) | |
| tree | a14d2d46cb587a6b32adc222521022371b578a07 /trusty/coverage/coverage.cpp | |
| parent | e94eb5140c9cdeac370b50208ba9a00ba059bafa (diff) | |
Introduce additional service options for controlling memory cgroups.
The memcg.limit_percent option can be used to limit the cgroup's
max RSS to the given value as a percentage of the device's physical
memory. The memcg.limit_property option specifies the name of a
property that can be used to control the cgroup's max RSS. These
new options correspond to the arguments to the limitProcessMemory
function in frameworks/av/media/libmedia/MediaUtils.cpp; this will
allow us to add these options to the rc files for the programs that
call this function and then remove the callers in a later change.
There is also a change in semantics: the memcg.* options now have
an effect on all devices which support memory cgroups, not just
those with ro.config.low_ram or ro.config.per_app_memcg set to true.
This change also brings the semantics in line with the documentation,
so it looks like the previous semantics were unintentional.
Change-Id: I9495826de6e477b952e23866743b5fa600adcacb
Bug: 118642754
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
