mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
performance-metrics: Add backing_files=on for overlay tests
The backing_files option defaults to false, so qcow2 overlay tests fail with MaxNestingDepthExceeded. Pass backing_files=on when the test file is an overlay. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
20f5cadb6f
commit
ecb971a491
@@ -413,6 +413,12 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
|
let mut test_disk_arg =
|
||||||
|
format!("path={test_file},queue_size={queue_size},num_queues={num_queues}");
|
||||||
|
if test_file == OVERLAY_WITH_QCOW2_BACKING || test_file == OVERLAY_WITH_RAW_BACKING {
|
||||||
|
test_disk_arg.push_str(",backing_files=on");
|
||||||
|
}
|
||||||
|
|
||||||
let mut child = GuestCommand::new(&guest)
|
let mut child = GuestCommand::new(&guest)
|
||||||
.args(["--cpus", &format!("boot={num_queues}")])
|
.args(["--cpus", &format!("boot={num_queues}")])
|
||||||
.args(["--memory", "size=4G"])
|
.args(["--memory", "size=4G"])
|
||||||
@@ -430,7 +436,7 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 {
|
|||||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
format!("path={test_file},queue_size={queue_size},num_queues={num_queues}").as_str(),
|
test_disk_arg.as_str(),
|
||||||
])
|
])
|
||||||
.default_net()
|
.default_net()
|
||||||
.args(["--api-socket", &api_socket])
|
.args(["--api-socket", &api_socket])
|
||||||
|
|||||||
Reference in New Issue
Block a user