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

use cpu quota and period replace cpu share #38

Merged
merged 1 commit into from
Aug 6, 2018
Merged

use cpu quota and period replace cpu share #38

merged 1 commit into from
Aug 6, 2018

Conversation

CMGS
Copy link
Contributor

@CMGS CMGS commented Aug 6, 2018

  1. cpu_share 需要计算核数,比如 1.1 的需求应该是 1010242,这里肯定是绑定2个核的,但比例上不是很理解 2048:2048:12288 为何不是预期的 0.2 :0.2 :1.6
  2. cpus 的设置是 hard limit,在资源足够的情况下依然不会吃满 cpu
  3. 为了绕开 cpu_share 的问题,并且解除绑定后可以在 CPU 模式超售,就只能用 quota 和 period 咯

@CMGS CMGS merged commit fa2c0dc into master Aug 6, 2018
@CMGS CMGS deleted the new_cpus branch August 6, 2018 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant