Compare commits

...

16 Commits

Author SHA1 Message Date
openeuler-ci-bot
3136589868
!33 [sync] PR-32: 修复多个bug
From: @openeuler-sync-bot 
Reviewed-by: @queyanwen 
Signed-off-by: @queyanwen
2024-06-20 15:50:31 +00:00
heppen
8ac346c109 修复几个问题
(cherry picked from commit 5a9110f238ebc433c029ab9e838ee2f9affa0209)
2024-06-20 23:40:35 +08:00
openeuler-ci-bot
17f059d41a
!31 [sync] PR-29: 修改eagle.service文件路径,添加idle服务插件动态库
From: @openeuler-sync-bot 
Reviewed-by: @queyanwen 
Signed-off-by: @queyanwen
2024-06-11 08:01:58 +00:00
heppen
6fc5ed06c4 修改eagle.service文件路径,添加idle服务插件动态库
(cherry picked from commit 049e0b98db07bc969c8c6121cb3af3bacd7ca2a0)
2024-06-11 15:10:17 +08:00
openeuler-ci-bot
85eb77a10f
!28 [sync] PR-26: update eagle to 1.1.0 version
From: @openeuler-sync-bot 
Reviewed-by: @queyanwen 
Signed-off-by: @queyanwen
2024-05-25 03:01:34 +00:00
heppen
bf08b93869 update eagle to 1.1.0 version
(cherry picked from commit 4baa12d72b134c085d6701b203a2e1abca3154ae)
2024-05-25 10:39:26 +08:00
openeuler-ci-bot
2860eda5d0
!22 920B适配,设置风扇速率后需要sleep 2秒
From: @queyanwen 
Reviewed-by: @wuhaotian315 
Signed-off-by: @wuhaotian315
2024-03-09 05:59:01 +00:00
queyanwen
0921ae0f73 mpctool:920B适配: 设置风扇转速后sleep 2秒 2024-03-09 11:17:54 +08:00
openeuler-ci-bot
2b080333b3
!16 版本号保持1.0.1
From: @queyanwen 
Reviewed-by: @wuhaotian315 
Signed-off-by: @wuhaotian315
2023-12-04 03:41:35 +00:00
queyanwen
61fba19ab8 版本号保持1.0.1-3 2023-12-04 11:17:47 +08:00
openeuler-ci-bot
eb50ec825c
!12 mpctool: 数据采集前判断稳态条件苛刻,且不具备防抖能力
From: @queyanwen 
Reviewed-by: @wuhaotian315 
Signed-off-by: @wuhaotian315
2023-12-04 02:32:24 +00:00
openeuler-ci-bot
d681e2f750
!10 mpctool: 非稳态数据和寻找最低风扇速率优化,提高模型准确度
From: @queyanwen 
Reviewed-by: @wuhaotian315 
Signed-off-by: @wuhaotian315
2023-06-14 01:54:43 +00:00
openeuler-ci-bot
0c5c532a89
!8 【mpctool】优化数据采集过程中,系统过温或其他异常场景下的保护
From: @queyanwen 
Reviewed-by: @jimmy-jiang-junior 
Signed-off-by: @jimmy-jiang-junior
2023-05-29 04:00:21 +00:00
openeuler-ci-bot
1a1ad76291
!3 Match the package name with the library name.
From: @queyanwen 
Reviewed-by: @jimmy-jiang-junior 
Signed-off-by: @jimmy-jiang-junior
2023-03-15 11:21:16 +00:00
openeuler-ci-bot
bf893a4e3d
!2 Add yaml file
From: @queyanwen 
Reviewed-by: @wuhaotian315 
Signed-off-by: @wuhaotian315
2023-03-15 03:25:59 +00:00
openeuler-ci-bot
4898caf176
!1 Add mpctool package
From: @queyanwen 
Reviewed-by: @jimmy-jiang-junior 
Signed-off-by: @jimmy-jiang-junior
2023-03-13 03:09:11 +00:00
3 changed files with 83 additions and 5 deletions

BIN
eagle-1.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,16 @@
Name: eagle
Version: 1.0.2
Release: 1
Version: 1.1.0
Release: 3
Summary: eagle kit
License: Mulan PSL v2
URL: https://gitee.com/openeuler/eagle
Source0: eagle-mpctool.tar.gz
Source1: eagle-1.1.0.tar.gz
BuildRequires: gcc, make, cmake, powerapi-devel, numactl-devel
Requires: powerapi, numactl-libs, tar
%description
EAGLE(Energy Aware intelliGent scheduler) is a service for dynamically tuning the OS based on energy efficiency.
%define debug_package %{nil}
@ -20,14 +23,73 @@ Requires: python3-numpy python3-pandas python3-psutil python3-scipy ip
%prep
%autosetup -n mpctool -p1
%setup -n mpctool -b 0 -T
%setup -n eagle -b 1 -T
%build
cd %{_builddir}/mpctool
%py3_build
cd %{_builddir}/eagle
sh ./build.sh
%install
cd %{_builddir}/mpctool
%py3_install
install -d %{buildroot}/%{_sysconfdir}/eagle
install -d %{buildroot}/%{_sysconfdir}/eagle/plugin
install -d %{buildroot}/usr/lib/systemd/system
install -d %{buildroot}/%{_sbindir}
install -d %{buildroot}/%{_libdir}
cd %{_builddir}/eagle
cp release/eagle/conf/*.ini %{buildroot}/%{_sysconfdir}/eagle
cp eagle.service %{buildroot}/usr/lib/systemd/system/eagle.service
install -m 0755 release/eagle/eagle %{buildroot}/%{_sbindir}
install -m 0755 release/eagle/lib/libpwrapi_adaptor.so %{buildroot}/%{_libdir}
install -m 0755 release/eagle/lib/libfreq_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
install -m 0755 release/eagle/lib/libmpc_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
install -m 0755 release/eagle/lib/libsched_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
install -m 0755 release/eagle/lib/libidle_service.so %{buildroot}/%{_sysconfdir}/eagle/plugin
%post
useradd -m eagle
chown -R eagle:eagle /etc/eagle
if [ ! -d /var/log/eagle ]; then
mkdir /var/log/eagle
mkdir /var/log/eagle/bak
chown -R eagle:eagle /var/log/eagle
fi
#Add user "eagle" to POWERAPI list
PWRAPI_CONF_FILE=/etc/sysconfig/pwrapis/pwrapis_config.ini
sed -n '/^admin=/p' $PWRAPI_CONF_FILE | grep eagle > /dev/null
if [ $? -ne 0 ]
then
sed -i '/^admin=/s/$/,eagle/' $PWRAPI_CONF_FILE
fi
sleep 5 # sleep for 5 seconds to wait for powerapi update admin list.
systemctl start eagle.service
%preun
systemctl stop eagle.service
systemctl disable eagle.service
userdel -r eagle
%post -n python3-eagle-mpctool
systemctl start mpctool.service
%preun -n python3-eagle-mpctool
systemctl stop mpctool.service
systemctl disable mpctool.service
%files
%{_sysconfdir}/eagle/*
/usr/lib/systemd/system/eagle.service
%{_sbindir}/eagle
%{_libdir}/*.so
%files -n python3-eagle-mpctool
%defattr(-,root,root)
@ -36,7 +98,23 @@ Requires: python3-numpy python3-pandas python3-psutil python3-scipy ip
%{python3_sitelib}/*
%changelog
* Thur Nov 30 2023 queyanwen<queyanwen@huawei.com> - 1.0.2-1
* Thu Jun 20 2024 heppen<hepeng68@huawei.com> - 1.1.0-3
- Bug fix: Ctrl Auth request on main thread, but release on socket thread.
- Bug fix: Modify policy file but do not take effect.
- Bug fix: IsNumStr returns false when the input string is a negative number.
- Add instructions to the config file.
* Tue Jun 11 2024 heppen<hepeng68@huawei.com> - 1.1.0-2
- Change eagle.service path to /usr/lib/systemd/system
- Add libidle_service.so to eagle
* Mon May 20 2024 heppen<hepeng68@huawei.com> - 1.1.0-1
- Update to 1.1.0: add eagle bin and libs.
* Sat Mar 9 2024 queyanwen<queyanwen@huawei.com> - 1.0.1-4
- Adapts to 920B: sleeps for 2 seconds after the fan speed is set.
* Thu Nov 30 2023 queyanwen<queyanwen@huawei.com> - 1.0.1-3
- The current condition for determining whether the system enters the stable state is that
- the difference between the maximum temperature and the minimum temperature within 60s is less than 0.2 degrees.
- This judgment is too strict and needs to be changed to 2 degrees.