401 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

smart_grid: introducing rebuild_affinity_domain

已完成
需求
创建于  
2024-05-11 17:16

Here are many scenarios we tested with smart_grid, we found that the
first domain level is key to the benchmark.

The reason is that there are many things such as interrupt affinity,
memory affinity factor that can have a big impact on the test.

Before this patch, the first domain level is unchangeable after
creation.

This patch introduce the 'cpu.rebuild_affinity_domain' to dynamically
reconfigure all domain levels.

Typical use cases:

echo $cpu_id > cpu.rebuild_affinity_domain

The cpu_id means which cpu we want to set first level.

If we set cpu_id = 34, we can see some change like:

 ----------------                       -----------------
| level 0 (0-31) |                     | level 0 (32-63) |
 ----------------                       -----------------
         v                                   v
 -------------------                    ------------------
|  level 1 (0-63)   |                  |  level 1 (0-63)  |
 -------------------                    ------------------
           v                  -->              v
 ---------------------                  --------------------
|   level 2 (0-95)    |                |   level 2 (0-95)   |
 ---------------------                  --------------------
             v                                   v
 ------------------------               ----------------------
|    level 3 (0-127)     |             |    level 3 (0-127)   |
 ------------------------               ----------------------

There are number of constraints on the rebuild feature:

1. Only rebuild domain while auto mode disabled.
   (cpu.dynamic_affinity_mode == 1)
2. Only rebuild on active and housekeeping cpu.
   (Offline and isolate CPUs are forbidden)
3. This file is write only.

评论 (1)

zouyipeng 创建了任务

Hi zouyipeng, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

openeuler-ci-bot 添加了
 
sig/Kernel
标签
zouyipeng 修改了描述
zouyipeng 修改了描述
zhangjialin 任务类型任务 修改为需求
zhangjialin 任务状态待办的 修改为新建
zouyipeng 修改了标题
ci-robot 通过openeuler/kernel Pull Request !7395任务状态新建 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助