From a26982f82123956b0fbec596e5d6a190087a0924 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 1 Sep 2022 01:21:00 +0800 Subject: [PATCH] profcollect: Reduce background processing job priority The processing job is non-critical but quite CPU intensive. Reducing priority allows the system to throttle the job more aggresively. Test: presubmit Bug: 241948742 Change-Id: Ie7aa921dec1aa1f4f8582041dae1679950f4d868 --- .../android/server/profcollect/ProfcollectForwardingService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java index d3222901db1e..3c6866205fda 100644 --- a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +++ b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java @@ -205,6 +205,7 @@ public final class ProfcollectForwardingService extends SystemService { .setRequiresDeviceIdle(true) .setRequiresCharging(true) .setPeriodic(BG_PROCESS_PERIOD) + .setPriority(JobInfo.PRIORITY_MIN) .build()); }