[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v4 23/25] Debian.pm: Assume 100MB/s dd from /dev/zero when creating a raw disk image
In my local test: 10000+0 records in 10000+0 records out 10485760000 bytes (10 GB) copied, 80.8332 s, 130 MB/s Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- Osstest/TestSupport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 61fd7bc..391c9b2 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1586,7 +1586,9 @@ sub make_qcow2 ($$$) { } sub make_raw ($$$) { my ($ho, $gho, $disk_mb) = @_; - target_cmd_root($ho, "dd if=/dev/zero of=$gho->{Rootimg} bs=1M count=${disk_mb}"); + # In local tests this reported 130MB/s, so calculate a timeout assuming 100MB/s. + target_cmd_root($ho, "dd if=/dev/zero of=$gho->{Rootimg} bs=1M count=${disk_mb}", + ${disk_mb} / 100); } sub prepareguest_part_diskimg ($$$) { -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |