OSDN Git Service

bind android.bg in system_server to small cores
authorTim Murray <timmurray@google.com>
Thu, 1 Feb 2018 00:16:31 +0000 (16:16 -0800)
committerTim Murray <timmurray@google.com>
Wed, 7 Feb 2018 19:02:08 +0000 (11:02 -0800)
commitb2f929d726eaf0f58a3a5c377d0f7bd657cfceaf
treed15ecb733e5313b9527b9f40b063d5c4fae45220
parentd46652a2d8f7439f779c4d310cad0c6d050d733a
bind android.bg in system_server to small cores

android.bg in system_server primarily handles PSS collection, which is
not performance critical. Accordingly, bind it to little cores.

However, because threads in zygote-derived applications are only in a
single cpuset at a time, this also means the scheduling policy for
system_servershould never be reset by applyOomAdjLocked(). The only
time this happens is when system_server's ProcessRecord is first
created, and its scheduler configuration is already controlled by
init.rc. Configure the right defaults for system_server's scheduling
group so it's never modified from applyOomAdjLocked().

Test: android.bg is in background, rest of system_server is in fg
bug 70859548

Change-Id: Id8582e6d493c6b2d3390fdc45ac2396390744f06
services/core/java/com/android/server/am/ActivityManagerService.java