Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a744733c authored by Jing Ji's avatar Jing Ji
Browse files

Avoid full oomAdjUpdate in unbinding services / provders etc.

Only update the necessary processes

Overall during mpts shuffled round robin test:
* Average time spent on each oomadj update reduced by ~32.05%
* Total number of calls into oomadj update increased by ~6.12%,
  this is because we now force a partial oomadj update before
  delivering broadcast to the receiver, to make sure the receiver
  always gets a correct procstate/oomadj score in the processing
  of the broadcast.
* Total cpu time spent on oomadj update reduced by ~27.86%

Bug: 164452388
Bug: 162042261
Bug: 162450085
Test: atest CtsAppTestCases
Test: atest CtsContentTestCases
Test: atest ActivityManagerPerfTests:OomAdjPerfTest
Change-Id: I5df33c8dd4f670ce4ad03386ece91d9add6db85e
parent ddd30775
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment