rebalance_interrupts: stop setting ownership of nodes to system:system.
Summary:
The rebalance_interrupts service was not working properly because the
ownership of smp_affinity nodes are set to system:system, but it runs
as root:root without the DAC_OVERRIDE capability.
This change moves the ownership configuration of the camera interrupt
nodes into a separate boot script (ag/20646243), and makes the service
run as root:root instead.
Test:
Before the change, interrupts were mostly assigned to ff:
$ adb shell 'cat /proc/irq/*/smp_affinity' | distribution
Key|Ct (Pct) Histogram
ff|272 (78.84%) ----------------------------------------------------------------
04| 56 (16.23%) -------------
08| 5 (1.45%) --
02| 4 (1.16%) -
01| 3 (0.87%) -
80| 2 (0.58%) -
40| 1 (0.29%) -
20| 1 (0.29%) -
After the change, cores are correctly rebalanced:
$ adb shell 'cat /proc/irq/*/smp_affinity' | distribution
Key|Ct (Pct) Histogram
04|99 (28.61%) -----------------------------------------------------------------
ff|90 (26.01%) -----------------------------------------------------------
08|58 (16.76%) --------------------------------------
02|48 (13.87%) --------------------------------
01|44 (12.72%) -----------------------------
80| 2 (0.58%) --
20| 2 (0.58%) --
10| 2 (0.58%) --
40| 1 (0.29%) -
Bug: 236141612
Change-Id: I4319843c7b394231b4883c030d661094779e0ae2
Signed-off-by: Samuel Gosselin <sgosselin@google.com>
2 files changed