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

Change memory size according to case update #5915

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions libvirt/tests/cfg/memory/memory_backing/lifecycle_for_hugepage.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
- memory.backing.lifecycle:
type = lifecycle_for_hugepage
start_vm = no
total_hugepage_mem = 2097152
vm_nr_hugepages = 1024
total_hugepage_mem = 8388608
vm_nr_hugepages = 4096
mount_size = "1048576"
current_mem = 2097152
mem_value = 2097152
current_mem = 8388608
mem_value = 8388608
mem_unit = "KiB"
current_mem_unit = "KiB"
target_hugepages = 2
target_hugepages = 8
set_pagesize ="1048576"
set_pagenum = "2"
set_pagenum = "8"
s390-virtio:
total_hugepage_mem = 2097152
current_mem = 2097152
mem_value = 2097152
set_pagesize = "1024"
mount_size = "1024"
set_pagenum = "2048"
Expand Down Expand Up @@ -53,7 +56,7 @@
page_size = "2"
page_unit = "M"
set_pagesize ="2048"
set_pagenum = "1024"
set_pagenum = "4096"
mount_size = ${set_pagesize}
memory_backing_dict = "'mb': {'hugepages': {'pages': [{'unit': '${page_unit}', 'size': '${page_size}'}]}}"
vm_attrs = {${memory_backing_dict}, 'memory_unit':'${mem_unit}','memory':${mem_value},'current_mem':${current_mem},'current_mem_unit':'${current_mem_unit}'}
Expand All @@ -77,7 +80,7 @@
page_size = "64"
page_unit = "KiB"
set_pagesize ="64"
set_pagenum = "32768"
set_pagenum = "131072"
mount_size = ${set_pagesize}
memory_backing_dict = "'mb': {'hugepages': {'pages': [{'unit': '${page_unit}', 'size': '${page_size}'}]}}"
vm_attrs = {${memory_backing_dict}, 'memory_unit':'${mem_unit}','memory':${mem_value},'current_mem':${current_mem},'current_mem_unit':'${current_mem_unit}'}
Expand All @@ -88,7 +91,7 @@
page_size = "32"
page_unit = "M"
set_pagesize ="32768"
set_pagenum = "64"
set_pagenum = "256"
mount_size = ${set_pagesize}
memory_backing_dict = "'mb': {'hugepages': {'pages': [{'unit': '${page_unit}', 'size': '${page_size}'}]}}"
vm_attrs = {${memory_backing_dict}, 'memory_unit':'${mem_unit}','memory':${mem_value},'current_mem':${current_mem},'current_mem_unit':'${current_mem_unit}'}
Expand All @@ -101,8 +104,9 @@
vm_attrs = {${memory_backing_dict}, 'memory_unit':'${mem_unit}','memory':${mem_value},'current_mem':${current_mem},'current_mem_unit':'${current_mem_unit}'}
define_error = "hugepage size can't be zero"
- scarce_mem:
current_mem = 3145728
mem_value = 3145728
current_mem = 9437184
mem_value = 9437184
memory_backing_dict = "'mb': {'hugepages': {}}"
vm_attrs = {${memory_backing_dict}, 'memory_unit':'${mem_unit}','memory':${mem_value},'current_mem':${current_mem},'current_mem_unit':'${current_mem_unit}'}
start_error = "unable to map backing store for guest RAM: Cannot allocate memory"

Loading