From: Konrad Kuchciak Date: Thu, 19 Sep 2019 08:43:48 +0000 (+0200) Subject: Enlarge default config limits X-Git-Tag: submit/tizen/20190920.142857~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b4619da29a24ce5c66219b70111b14576aee21b;p=platform%2Fcore%2Fsystem%2Fstability-monitor.git Enlarge default config limits This is default configuration, which should be as neutral as possible. Change-Id: Ie9b3d8f1780c4674885ff2bb49e7b9867dd96ab2 --- diff --git a/config/10-example-noop.conf b/config/10-example-noop.conf new file mode 100644 index 0000000..fc0a80b --- /dev/null +++ b/config/10-example-noop.conf @@ -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 index 9306636..0000000 --- a/config/10-example.conf +++ /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, - }, -} diff --git a/config/default.conf b/config/default.conf index 0c4c01e..b67e7e0 100644 --- a/config/default.conf +++ b/config/default.conf @@ -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":{ diff --git a/packaging/stability-monitor.spec b/packaging/stability-monitor.spec index 861fcbc..fc9432a 100644 --- a/packaging/stability-monitor.spec +++ b/packaging/stability-monitor.spec @@ -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