docs/Makefile: Update README.md and Makefile

docs: Use chinese description instead of English in README.md
Makefile: Use strip option in gcc

Signed-off-by: Dongxu Sun <sundongxu3@huawei.com>
This commit is contained in:
Dongxu Sun 2022-12-09 09:59:42 +08:00
parent e11c92af46
commit c45c975504
3 changed files with 68 additions and 1 deletions

View 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

View 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

View File

@ -1,6 +1,6 @@
Name: skylark
Version: 1.0.0
Release: 6
Release: 7
Summary: Skylark is a next-generation QoS-aware scheduler.
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
Patch0005: cpu_qos-register-reset_domain_bandwidth-as-exit-func.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
Requires: python3 python3-APScheduler python3-libvirt
@ -62,6 +64,10 @@ make install DESTDIR=%{buildroot}
%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
- cpu_qos: Register reset_domain_bandwidth as exit func after adding power_qos job
- power_qos/cachembw_qos: Add type check for environment variables