lxcfs: fix wrong cpu count when setting cfs in hierarchy#690
Conversation
|
@mihalicyn can you take a look? |
mihalicyn
left a comment
There was a problem hiding this comment.
Please, reply on my comment in #688 (comment)
mihalicyn
left a comment
There was a problem hiding this comment.
Thanks for preparing and submitting this.
I believe that this is on the right direction but we need to slightly rework the code.
Also, please look #688 (comment)
Kind regards,
Alex
|
Please, also look on #712 It looks like we have two independent contributors who have stepped on the same issue but from a different directions ;-) |
d075f17 to
5f87d5b
Compare
dd4903b to
fdef56c
Compare
|
@mihalicyn I couldn't reproduce psi timeout local, it maybe some lag on github actions, can you rerun the CI? |
| return 0; | ||
|
|
||
| if (!read_cpu_cfs_param(cg, "period", &cfs_period)) | ||
| if (!read_cpu_count_cfs(cg, &rv)) |
There was a problem hiding this comment.
You've started to use get_min_cpu_count_cfs in max_cpu_count, at the same time you still rely on read_cpu_count_cfs here, why?
There was a problem hiding this comment.
it's my fault, I modified here at first, and forgot to updatee here later.
yeah, I'll take care of this problem. It is not connected with this PR for sure. |
|
@okhowang the more I look and find issues here, the more I feel that we need to add a test for |
|
sorry for my miss, there are lot of month since my first work on lxcfs. I added a commit for |
6f3e129 to
0ee1e0b
Compare
ad2f699 to
8d651df
Compare
|
Hi @okhowang, please can you rebase your branch on top of recent Also, please, remove: chunk from ( lxcfs/tests/test_cpu_cfs_hierarchy.sh.in Line 72 in 1881408 This will allow us to validate if this PR fixes everything properly. Kind regards, |
Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
done. I noticed that cgroup v1 has been dropped. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Hi @okhowang, yes, please remove the test you've added, because the version we have in |
Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
test commit removed |
Resolve #688