-
Notifications
You must be signed in to change notification settings - Fork 168
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
numa: Fix the check of guest numa cell allaction #5368
Conversation
d2067ea
to
4fe1192
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixing
Could you paste test results for all cases? |
Hi @dzhengfy , for some cases, there's another issue which can be fixed by #5326 and avocado-framework/avocado-vt#3804
|
for node_value in node_values.values(): | ||
node_value_sum += int(node_value) | ||
if node_value_sum <= 0: | ||
numatest_obj.test.fail("Expect the sum of all node values is grater than 0, but found not") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numatest_obj.test.fail("Expect the sum of all node values is grater than 0, but found not") | |
numatest_obj.test.fail("Expect the sum of all node values is **greater** than 0, but found not") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated.
4fe1192
to
5fc3758
Compare
If the memory mode and memnode mode are not set, It is unpredictable on which host numa node a guest numa cell will be allocated. So all the host numa nodes should be checked. The current test only considers the case where the host has two numa nodes. This patch fixes this issue. Signed-off-by: Hu Shuai <[email protected]>
If the memory mode and memnode mode are not set, It is unpredictable on which host numa node a guest numa cell will be allocated. So all the host numa nodes should be checked.
The current test only considers the case where the host has two numa nodes. This patch fixes this issue.
Before:
Result:
Debug log:
After:
Result:
Debug log: