!13 Update README and Makefile
From: @sundongx Reviewed-by: @kevinzhu1, @yezengruan Signed-off-by: @kevinzhu1
This commit is contained in:
commit
1fdaf88326
32
Makefile-Use-strip-option-in-gcc.patch
Normal file
32
Makefile-Use-strip-option-in-gcc.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From d3d934e6358ba214bfbc81e12d6f38d287d2bc45 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dongxu Sun <sundongxu3@huawei.com>
|
||||||
|
Date: Thu, 8 Dec 2022 09:23:09 +0000
|
||||||
|
Subject: [PATCH 2/2] Makefile: Use strip option in gcc
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Add ‘-s’ in gcc compile options and remove ‘-g’ options
|
||||||
|
to keep skylark security and reduce binary file size.
|
||||||
|
|
||||||
|
Signed-off-by: sundongxu <sundongxu3@huawei.com>
|
||||||
|
---
|
||||||
|
Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index cc00862..f2c0a80 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -7,7 +7,7 @@ skylarkd: *.py */*.py
|
||||||
|
mv ../skylarkd .
|
||||||
|
|
||||||
|
libskylarkmsr.so: data_collector/get_msr.c
|
||||||
|
- gcc --share -fPIC -g -o libskylarkmsr.so data_collector/get_msr.c
|
||||||
|
+ gcc --share -fPIC -s -o libskylarkmsr.so data_collector/get_msr.c
|
||||||
|
|
||||||
|
install: skylarkd libskylarkmsr.so skylarkd.service skylarkd.sysconfig low_prio_machine.slice high_prio_machine.slice
|
||||||
|
install -T -D skylarkd $(DESTDIR)/usr/sbin/skylarkd
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
29
docs-Use-chinese-description-instead-of-English-in-R.patch
Normal file
29
docs-Use-chinese-description-instead-of-English-in-R.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 2552ff970feaddc6deda6c83298f75eae59bf6ec Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dongxu Sun <sundongxu3@huawei.com>
|
||||||
|
Date: Wed, 7 Dec 2022 09:04:22 +0000
|
||||||
|
Subject: [PATCH 1/2] docs: Use chinese description instead of English in
|
||||||
|
README.md
|
||||||
|
|
||||||
|
Use chinese description in README.md.
|
||||||
|
|
||||||
|
Signed-off-by: Dongxu Sun <sundongxu3@huawei.com>
|
||||||
|
---
|
||||||
|
README.md | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/README.md b/README.md
|
||||||
|
index d51b8fd..9bdcc1c 100644
|
||||||
|
--- a/README.md
|
||||||
|
+++ b/README.md
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
# skylark
|
||||||
|
|
||||||
|
#### 介绍
|
||||||
|
-Skylark is a next-generation QoS-aware scheduler which provides coordinated resource scheduling for co-located applications with different QoS requirements. Typical applications are VM and Container. The architecture is highly scalable, so it's easy to be extended to support new types of applications and resources in the future.
|
||||||
|
+Skylark 是新一代 QoS 感知的资源调度器,可为不同 QoS 要求的混部业务提供合适的资源调度。典型的业务包含虚拟机和容器。本组件具有丰富的可扩展性,因此易于支持未来可能出现的新型业务和资源。
|
||||||
|
|
||||||
|
#### 软件架构
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
10
skylark.spec
10
skylark.spec
@ -1,6 +1,6 @@
|
|||||||
Name: skylark
|
Name: skylark
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Skylark is a next-generation QoS-aware scheduler.
|
Summary: Skylark is a next-generation QoS-aware scheduler.
|
||||||
|
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
@ -13,6 +13,8 @@ Patch0003: cachembw_qos-Add-a-job-to-sync-VM-pids-to-resctrl.patch
|
|||||||
Patch0004: framework-create-pidfile-after-os.fork-in-child-proc.patch
|
Patch0004: framework-create-pidfile-after-os.fork-in-child-proc.patch
|
||||||
Patch0005: cpu_qos-register-reset_domain_bandwidth-as-exit-func.patch
|
Patch0005: cpu_qos-register-reset_domain_bandwidth-as-exit-func.patch
|
||||||
Patch0006: power_qos-cachembw_qos-Add-type-check-for-environmen.patch
|
Patch0006: power_qos-cachembw_qos-Add-type-check-for-environmen.patch
|
||||||
|
Patch0007: docs-Use-chinese-description-instead-of-English-in-R.patch
|
||||||
|
Patch0008: Makefile-Use-strip-option-in-gcc.patch
|
||||||
|
|
||||||
BuildRequires: python3-devel make gcc coreutils systemd-units
|
BuildRequires: python3-devel make gcc coreutils systemd-units
|
||||||
Requires: python3 python3-APScheduler python3-libvirt
|
Requires: python3 python3-APScheduler python3-libvirt
|
||||||
@ -28,9 +30,7 @@ Requires(postun): systemd-units
|
|||||||
%description
|
%description
|
||||||
Skylark is a next-generation QoS-aware scheduler which provides coordinated resource scheduling for co-located applications with different QoS requirements.
|
Skylark is a next-generation QoS-aware scheduler which provides coordinated resource scheduling for co-located applications with different QoS requirements.
|
||||||
|
|
||||||
%ifnarch x86_64
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -62,6 +62,10 @@ make install DESTDIR=%{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 09 2022 Dongxu Sun <sundongxu3@huawei.com> - 1.0.0-7
|
||||||
|
- docs-Use-chinese-description-instead-of-English-in-R.patch
|
||||||
|
- Makefile-Use-strip-option-in-gcc.patch
|
||||||
|
|
||||||
* Sat Sep 03 2022 Dongxu Sun <sundongxu3@huawei.com> - 1.0.0-6
|
* Sat Sep 03 2022 Dongxu Sun <sundongxu3@huawei.com> - 1.0.0-6
|
||||||
- cpu_qos: Register reset_domain_bandwidth as exit func after adding power_qos job
|
- cpu_qos: Register reset_domain_bandwidth as exit func after adding power_qos job
|
||||||
- power_qos/cachembw_qos: Add type check for environment variables
|
- power_qos/cachembw_qos: Add type check for environment variables
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user