-
Notifications
You must be signed in to change notification settings - Fork 172
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
virtio_mem_hugetlb_migration: adds new test case #4126
Conversation
1cfde10
to
06b98b2
Compare
|
@zhenyzha @MiriamDeng @PaulYuuu @yanan-fu could you review this PR? Thanks ! |
@menli820 do you consider this test case could be executed in windows too? |
06b98b2
to
ce0a6aa
Compare
LGTM.Acked-by: Zhenyu Zhang [email protected] |
ce0a6aa
to
909a7d1
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.
Others LGTM.
909a7d1
to
4f3a4bd
Compare
@yanan-fu this is a kindly reminder, could you please review this PR? Thanks ! |
4f3a4bd
to
26b8ce0
Compare
requested_size_vmem = params.get("requested-size_test_%s" % mem_object_id) | ||
device_id = "virtio_mem-%s" % mem_object_id | ||
node_id = params.get_numeric("node_memory_%s" % mem_object_id) | ||
process.system("echo %d > /proc/sys/vm/nr_hugepages" % mem, shell=True) |
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.
With setup_hugepage=yes
in cfg, env_process will setup hugepage based on some logic, checking hugepage size and setup the target hugepages.
Logically, i think it is conflict with the setting in the test case level.
And, nr_hugepages
is the page number, i did not see any checking about the page size.
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.
@yanan-fu
I get that using nr_hugepages
doesn't keep in mind the hugepages size, so likely that needs to be changed, but then how could be handled the self migraton of a VM using hugepages? AFAIU setup_hugepages
only does it for the source VM, right? I need the double of those hugepages if we think on the destination too...
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.
Actually, setup_hugepage
is about the action in host env, both src and dst vm can use the hugepage path.
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.
@yanan-fu could you review again this PR? Thanks !
Compare this case with case and migrate with hugepage, add hugepage setup before launch vm. |
@yanan-fu it's correct, I thought only using |
d54c1fc
to
2c90c4b
Compare
|
2c90c4b
to
ef5759e
Compare
This is a kindly reminder, @yanan-fu please could you review again this PR? Thanks ! |
ef5759e
to
0ca9081
Compare
Hi again @yanan-fu this is a kindly reminder, please could you review this PR? Thanks ! |
Do we need to cover the negative scenario:
|
@yanan-fu How exactly do you reproduce that scenario? In this case if you resize the virtio-mem device to a higher value it should be:
Which is the expected output (but it is not covered 😅 ) |
It is not about reproduce the issue, i means do we need to cover this negative scenario in this test (as it is mentioned in the manual test case) ? |
@yanan-fu got it, yes I think it's interesting, I will send an update |
0ca9081
to
10e76a3
Compare
@yanan-fu included ! |
|
10e76a3
to
4ede7cf
Compare
4ede7cf
to
45b1a06
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.
Ack
Creates a new test case for performing a live migration of a VM with a virtio-mem device that consumes hugepages Signed-off-by: mcasquer <[email protected]>
45b1a06
to
e9ca883
Compare
Hello, at this point could this PR be merged? Thanks! |
virtio_mem_hugetlb_migration: adds new test case
Creates a new test case for performing a live migration
of a VM with a virtio-mem device that consumes hugepages
Signed-off-by: mcasquer [email protected]
ID: 2653