From: Ian Campbell Subject: [PATCH OSSTEST v4 23/25] Debian.pm: Assume 100MB/s dd from /dev/zero when creating a raw disk image Date: Thu, 2 Apr 2015 10:16:37 +0100 Message-ID: <1427966199-5064-23-git-send-email-ian.campbell@citrix.com> References: <1427966183.4037.17.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427966183.4037.17.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 --- 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