Adjust DIMM detection interval
In case a CPU doesn't have any DIMM installed, cpusensor service
will keep scanning to detect DIMM. Currently, the detection
interval is 1 second which raises CPU resource consumption of
cpusensor service up to 20% so this commit adjusts the detection
interval to 3 seconds.
Tested:
Observe CPU resource usage using top -d1. cpusensor service
shouldn't eat much resources.
Change-Id: I443a5428eaa2c72a38fd4f5e2c1973c821944084
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
diff --git a/src/CPUSensorMain.cpp b/src/CPUSensorMain.cpp
index 858ab24..f5ce369 100644
--- a/src/CPUSensorMain.cpp
+++ b/src/CPUSensorMain.cpp
@@ -454,7 +454,7 @@
{
if (config.state == State::ON)
{
- rescanDelaySeconds = 1;
+ rescanDelaySeconds = 3;
}
else
{