From 2e477bf54bd273b74251236c5eb9d7c20775a989 Mon Sep 17 00:00:00 2001 From: Tej Singh Date: Wed, 28 Aug 2019 11:29:06 -0700 Subject: [PATCH] Increase stats hardware rpc threadpool. Increase the threadpool count to 4. Test: builds, boots Test: adb shell cmd stats pull-source 10020 returns a battery capcity Bug: 139453643 Merged-In: I2929fd6ca300781e67dde97d6196939d7928b350 Change-Id: I2929fd6ca300781e67dde97d6196939d7928b350 (cherry picked from commit 3174c0da99502207b8fa4c97533ed1a924d3990f) --- cmds/statsd/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/statsd/src/main.cpp b/cmds/statsd/src/main.cpp index 68082c2dc4d2f..42132ee0daae6 100644 --- a/cmds/statsd/src/main.cpp +++ b/cmds/statsd/src/main.cpp @@ -78,7 +78,7 @@ int main(int /*argc*/, char** /*argv*/) { ps->giveThreadPoolName(); IPCThreadState::self()->disableBackgroundScheduling(true); - ::android::hardware::configureRpcThreadpool(1 /*threads*/, false /*willJoin*/); + ::android::hardware::configureRpcThreadpool(4 /*threads*/, false /*willJoin*/); std::shared_ptr eventQueue = std::make_shared(2000 /*buffer limit. Buffer is NOT pre-allocated*/);