commit | 696873ea171db70b12bd35660f7024318a3b680a | [log] [tgz] |
---|---|---|
author | Minchan Kim <minchan@google.com> | Wed Jun 27 11:32:40 2018 +0900 |
committer | Minchan Kim <minchan@google.com> | Tue Aug 28 01:45:11 2018 +0000 |
tree | 95b691de97a205a8e958e1eea374d8d2b98a38d6 | |
parent | ac0ddfd9c57c777784fa447de889d7473bde043b [diff] |
Add system_server to system group only if per_app_memcg is true P18 or other high-performance devices shouldn't use per-memcg so it was disabled on those devices[1]. However, we didn't turn off for system_server memcg so those devices still have two seperate LRU groups which would have less efficient memory reclaim. Therefore, this patch makes memcg use for system_server only if per_app_memcg is enabled. [1] https://googleplex-android-review.git.corp.google.com/c/platform/system/core/+/4178592 Bug: 110858093 Test: confirm via cat /dev/memcg/system/tasks is none Change-Id: Ic0e3157bf8ff5de69767797b5508946ca3efeb68 Merged-In: Ic0e3157bf8ff5de69767797b5508946ca3efeb68 Signed-off-by: Minchan Kim <minchan@google.com> (cherry picked from commit 5fa8af2b10d24fb6c08099d258bf887baf68ffb0)