Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[worker] sealing task supports control of cpu usage / 封装任务支持控制 cpu 使用量 #836

Open
1 of 4 tasks
0x5459 opened this issue Jul 25, 2023 · 0 comments
Open
1 of 4 tasks
Labels
damocles-worker enhancement New feature or request P2 Medium - we should get to this soon performance Performance

Comments

@0x5459
Copy link
Collaborator

0x5459 commented Jul 25, 2023

模块 / Components

  • damocles-manager
  • damocles-worker
  • 工具链 / toolchains
  • 文档 / docs

描述 / Description

Motivation

当前版本 PC1 大约需要使用一个半的 CPU core, 假如同时启动 20 个 PC1 任务,大概会空出来 20 个使用了一半的 CPU cores,这些被使用了一半的 cores 通过 damocles-worekr 已经有的设置 cpuset 功能规划后会有两种使用情况,要么直接空闲,要么随机的被系统分配给 PC2 C2 任务。前者会产生浪费,而后者看似没有浪费,但可能会引发一个问题,PC2 和 C2 任务有可能会抢占整个(或大多数) cpu 的使用权,可能会导致 PC1 任务效率降低。

所以希望能够有设置 CPU 使用权重功能合理规划 PC2 和 C2 任务使用那些 PC1 剩余半个的 cores。

参考文档 https://www.kernel.org/doc/Documentation/cgroup-v2.txt Weights

@0x5459 0x5459 added the enhancement New feature or request label Jul 25, 2023
@elvin-du elvin-du added the P2 Medium - we should get to this soon label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
damocles-worker enhancement New feature or request P2 Medium - we should get to this soon performance Performance
Projects
Status: No status
Development

No branches or pull requests

2 participants