From ff96802185c61d3aee3436f31f4cc0555545db59 Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Wed, 11 Dec 2024 14:21:25 +0900 Subject: [PATCH] packaging: Add system-plugin-config-stability-monitor package Add stability-monitor conf package called 'system-plugin-config-stability-monitor' to overwrite stability-monitor default.conf. A conf file will be installed at /etc/stability-monitor.d/01-public.conf in the target. It makes a directory at /etc/stability-monitor.d if it doesn't already exist. Change-Id: If795a56a1fb0efcf93490aafc60627a505c8692f Signed-off-by: Unsung Lee --- conf/stability-monitor-public.conf | 98 ++++++++++++++++++++++++++++++ packaging/system-plugin.spec | 16 +++++ 2 files changed, 114 insertions(+) create mode 100644 conf/stability-monitor-public.conf diff --git a/conf/stability-monitor-public.conf b/conf/stability-monitor-public.conf new file mode 100644 index 0000000..b95d94c --- /dev/null +++ b/conf/stability-monitor-public.conf @@ -0,0 +1,98 @@ +{ + "global":{ + "monitor": 1, + "report": 1, + "sampling_rate": 0.2, + + "cpu_limit_avg": 2.5, + "cpu_avg_period": 60, + "cpu_limit_peak": 3.8, + "cpu_reporting_period": 3600, + + "mem_limit_avg": 0.20, + "mem_avg_period": 60, + "mem_limit_peak": 0.25, + "mem_reporting_period": 3600, + + "io_limit_avg": 128.0, + "io_avg_period": 60, + "io_limit_peak": 1024.0, + "io_reporting_period": 600, + }, + + + "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":{ + }, + + + "sleep": { + "monitor": 0, + }, + + "otnd": { + "monitor": 0, + }, + + "wgt-backend": { + "monitor": 0, + }, + + "tpk-backend": { + "monitor": 0, + }, + + "bash": { + "monitor": 0, + }, + + "dlogutil": { + "monitor": 0, + }, + + "sdbd": { + "monitor": 0, + }, + + "rpm": { + "monitor": 0, + }, + + "otn-micom": { + "monitor": 0, + }, + + "systemd-udevd": { + "monitor": 0, + }, +} diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec index 8e66d76..c496f4a 100644 --- a/packaging/system-plugin.spec +++ b/packaging/system-plugin.spec @@ -105,6 +105,14 @@ BuildArch: noarch %description config-3parts-lzuser This package provides configuration files for storage partitions +%package config-stability-monitor +Summary: System configuration file for stability-monitor +Requires: stability-monitor +BuildArch: noarch + +%description config-stability-monitor +This package provides configuration file for stability-monitor + %package system-tests Summary: System testsuite BuildRequires: deviced-auto-test @@ -202,6 +210,10 @@ mkdir -p %{buildroot}%{_userunitdir}/basic.target.wants install -m 644 units/session-bind.service %{buildroot}%{_userunitdir} ln -s ../session-bind.service %{buildroot}%{_userunitdir}/basic.target.wants/session-bind.service +# stability-monitor +mkdir -p %{buildroot}/etc/stability-monitor.d +cp conf/stability-monitor-public.conf %{buildroot}/etc/stability-monitor.d/01-public.conf + # test mkdir -p %{buildroot}%{_bindir}/hal install -m 755 tests/system-test %{buildroot}%{_bindir} @@ -328,6 +340,10 @@ echo "" %{_userunitdir}/wait-mount@.service %{_userunitdir}/basic.target.wants/wait-mount@opt-usr.service +%files config-stability-monitor +%manifest %{name}.manifest +/etc/stability-monitor.d/01-public.conf + %files system-tests %defattr(755,root,root,-) %manifest %{name}.manifest -- 2.34.1