mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
performance-metrics: Set image_type=raw for block I/O test image
Without explicit image_type fio first sequential write hits sector 0 and gets VIRTIO_BLK_S_IOERR. fio then hangs, causing block_write_MiBps and all other write tests using BLK_IO_TEST_IMG to time out. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
c0a81bc903
commit
766f4206c9
@@ -442,6 +442,8 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 {
|
||||
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(",image_type=qcow2,backing_files=on");
|
||||
} else if test_file == BLK_IO_TEST_IMG {
|
||||
test_disk_arg.push_str(",image_type=raw");
|
||||
}
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
|
||||
Reference in New Issue
Block a user