Enlarge default config limits 51/214251/1
authorKonrad Kuchciak <k.kuchciak@samsung.com>
Thu, 19 Sep 2019 08:43:48 +0000 (10:43 +0200)
committerKonrad Kuchciak <k.kuchciak@samsung.com>
Thu, 19 Sep 2019 08:47:56 +0000 (10:47 +0200)
This is default configuration, which should be as neutral as possible.

Change-Id: Ie9b3d8f1780c4674885ff2bb49e7b9867dd96ab2

config/10-example-noop.conf [new file with mode: 0644]
config/10-example.conf [deleted file]
config/default.conf
packaging/stability-monitor.spec

diff --git a/config/10-example-noop.conf b/config/10-example-noop.conf
new file mode 100644 (file)
index 0000000..fc0a80b
--- /dev/null
@@ -0,0 +1,39 @@
+{
+    "global":{
+    },
+
+
+    "foreground_native_app":{
+    },
+
+    "background_native_app":{
+    },
+
+
+    "foreground_web_app":{
+    },
+
+    "background_web_app":{
+    },
+
+
+    "foreground_csharp_app":{
+    },
+
+    "background_csharp_app":{
+    },
+
+
+    "foreground_ui_widget":{
+    },
+
+    "background_ui_widget":{
+    },
+
+
+    "native_service":{
+    },
+
+    "other_service":{
+    },
+}
diff --git a/config/10-example.conf b/config/10-example.conf
deleted file mode 100644 (file)
index 9306636..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-{
-    "global":{
-        "report": 1,
-    },
-
-
-    "foreground_native_app":{
-        "cpu_limit_avg": 0.6,
-    },
-
-    "background_native_app":{
-        "cpu_limit_avg": 0.5,
-    },
-
-
-    "foreground_web_app":{
-    },
-
-    "background_web_app":{
-    },
-
-
-    "foreground_csharp_app":{
-    },
-
-    "background_csharp_app":{
-    },
-
-
-    "foreground_ui_widget":{
-    },
-
-    "background_ui_widget":{
-    },
-
-
-    "native_service":{
-    },
-
-    "other_service":{
-        "cpu_limit_avg": 0.7,
-    },
-
-    "com.samsung.voice-trigger":{
-        "monitor": 0,
-    },
-
-    "voice-trigger":{
-        "monitor": 0,
-    },
-}
index 0c4c01e2f5cd3bea5da707e87b98fb3e2eb33cac..b67e7e022e9df1e1a5c8c6a08e02380ffa3d48cf 100644 (file)
@@ -6,19 +6,19 @@
         "report": 0,
         "sampling_rate": 1,
 
-        "cpu_limit_avg": 0.5,
+        "cpu_limit_avg": 4,
         "cpu_avg_period": 10,
-        "cpu_limit_peak": 0.95,
+        "cpu_limit_peak": 4,
 
-        "mem_limit_avg": 0.3,
+        "mem_limit_avg": 1,
         "mem_avg_period": 10,
-        "mem_limit_peak": 0.3,
+        "mem_limit_peak": 1,
 
-        "io_limit_avg": 30.0,
+        "io_limit_avg": 100.0,
         "io_avg_period": 10,
-        "io_limit_peak": 60.0,
+        "io_limit_peak": 100.0,
 
-        "fd_limit": 300,
+        "fd_limit": 1000,
     },
 
     "stability-monitor":{
index 861fcbc7f247858a94257deff52906ed4cc5b45e..fc9432a793eacf8d1085ae4c160e4ce9b6455712 100644 (file)
@@ -39,7 +39,7 @@ make -C tests all
 %install
 make install INSTALL_PREFIX=%{buildroot}/%{_sbindir}
 install -D config/default.conf %{buildroot}/%{_libdir}/stability-monitor/default.conf
-install -D config/10-example.conf %{buildroot}/%{_sysconfdir}/stability-monitor.d/10-example.conf
+install -D config/10-example-noop.conf %{buildroot}/%{_sysconfdir}/stability-monitor.d/10-example-noop.conf
 
 install -D config/stability-monitor.service %{buildroot}/%{_unitdir}/stability-monitor.service
 mkdir -p %{buildroot}/%{_unitdir}/multi-user.target.wants
@@ -58,7 +58,7 @@ install -D tests/config.json          %{buildroot}/etc/stability-monitor.d/test-
 %license COPYING
 %{_sbindir}/stability-monitor
 %{_libdir}/stability-monitor/default.conf
-%{_sysconfdir}/stability-monitor.d/10-example.conf
+%{_sysconfdir}/stability-monitor.d/10-example-noop.conf
 %{_unitdir}/stability-monitor.service
 %{_unitdir}/multi-user.target.wants/stability-monitor.service