Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
[openEuler-22.03-LTS-SP4] 动态感知系统负载,根据负载选择仅使用一个逻辑核还是同时使用两个逻辑核
Done
#IAJEHU
Requirement
chengyu
Opened this issue
2024-08-12 14:52
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 2025/3/28 优化动态SMT,优化内容见issue描述:https://gitee.com/openeuler/kernel/issues/IBWWUI The optimizations are as follows: 1. A more reasonable algorithm for obtaining load values; 2. Limit the maximum value of sysctl_sched_util_ratio to 100; 3. If the value of sysctl_sched_util_ratio is 100, the other smt of the core will not be used. --------- 【特性描述】 1、当系统使能SMT时,一个物理核可以虚拟出两个逻辑核,此时两个逻辑核共享物理核的前后端资源,存在争取CPU资源的情况。动态SMT特性通过动态感知系统负载来选择仅使用一个逻辑核还是同时使用两个逻辑核,即当其中一个逻辑核的CFS就绪队列的负载在设定的阈值内时,CFS任务集中在其中一个逻辑核上,此时单个逻辑核独享物理核的资源;当超过设定的负载阈值时才会选择另一逻辑核,此时两个逻辑核共享物理核的资源。从实测互联网场景来看,动态SMT对于负载较低、业务不绑核的场景(如doris大数据)有性能收益。 2、开启超线程后,一个物理核虚拟出两个逻辑核,假设0号物理核虚拟出两个逻辑核CPU0和CPU1。只有当CPU0上CFS就绪队列的负载超过设定的阈值时,才会选择CPU1,否则仍使用CPU0。 3、对外接口变更 1)新增宏 CONFIG_SCHED_KEEP_ON_CORE; 2)/sys/kernel/debug/sched_features :新增 KEEP_ON_CORE,默认为 NO_KEEP_ON_CORE;(echo KEEP_ON_CORE > /sys/kernel/debug/sched_features) 3)sysctl:新增 /proc/sys/kernel/sched_util_ratio,用于设置负载阈值,默认值为 100,取值范围:[0, 2^31-1(即2147483647)] 【特性竞争力】 适用于业务不绑核的场景,动态感知系统负载,在低负载时选用物理核,提高业务性能。 【硬件架构】 ARM64 【特性约束】 NA 【涉及仓库】 全路径,包括增量修改和新增仓库 【交付个人/团队】 请明确交付责任人,如果有团队支撑,请一并填写团队信息
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 2025/3/28 优化动态SMT,优化内容见issue描述:https://gitee.com/openeuler/kernel/issues/IBWWUI The optimizations are as follows: 1. A more reasonable algorithm for obtaining load values; 2. Limit the maximum value of sysctl_sched_util_ratio to 100; 3. If the value of sysctl_sched_util_ratio is 100, the other smt of the core will not be used. --------- 【特性描述】 1、当系统使能SMT时,一个物理核可以虚拟出两个逻辑核,此时两个逻辑核共享物理核的前后端资源,存在争取CPU资源的情况。动态SMT特性通过动态感知系统负载来选择仅使用一个逻辑核还是同时使用两个逻辑核,即当其中一个逻辑核的CFS就绪队列的负载在设定的阈值内时,CFS任务集中在其中一个逻辑核上,此时单个逻辑核独享物理核的资源;当超过设定的负载阈值时才会选择另一逻辑核,此时两个逻辑核共享物理核的资源。从实测互联网场景来看,动态SMT对于负载较低、业务不绑核的场景(如doris大数据)有性能收益。 2、开启超线程后,一个物理核虚拟出两个逻辑核,假设0号物理核虚拟出两个逻辑核CPU0和CPU1。只有当CPU0上CFS就绪队列的负载超过设定的阈值时,才会选择CPU1,否则仍使用CPU0。 3、对外接口变更 1)新增宏 CONFIG_SCHED_KEEP_ON_CORE; 2)/sys/kernel/debug/sched_features :新增 KEEP_ON_CORE,默认为 NO_KEEP_ON_CORE;(echo KEEP_ON_CORE > /sys/kernel/debug/sched_features) 3)sysctl:新增 /proc/sys/kernel/sched_util_ratio,用于设置负载阈值,默认值为 100,取值范围:[0, 2^31-1(即2147483647)] 【特性竞争力】 适用于业务不绑核的场景,动态感知系统负载,在低负载时选用物理核,提高业务性能。 【硬件架构】 ARM64 【特性约束】 NA 【涉及仓库】 全路径,包括增量修改和新增仓库 【交付个人/团队】 请明确交付责任人,如果有团队支撑,请一并填写团队信息
Comments (
1
)
Sign in
to comment
Status
Done
新建
已接纳
已挂起
In Design
In Development
Done
Accepted
Declined
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register