VirtualBox

source: vbox/trunk/src/VBox/Storage/testcase/tstVDIo.vd@ 44891

Last change on this file since 44891 was 44529, checked in by vboxsync, 12 years ago

header (C) fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.0 KB
Line 
1# $Id: tstVDIo.vd 44529 2013-02-04 15:54:15Z vboxsync $
2#
3# Storage: Simple I/O testing for most backends.
4#
5
6#
7# Copyright (C) 2011-2013 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18# Init I/O RNG for generating random data for writes
19iorngcreate size=10M mode=manual seed=1234567890
20
21# VMDK disk
22print msg=Testing_VMDK
23createdisk name=test verify=yes
24create disk=test mode=base name=tstShared.vmdk type=dynamic backend=VMDK size=200M
25io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
26io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
27io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
28io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
29create disk=test mode=diff name=tstShared2.vmdk type=dynamic backend=VMDK size=200M
30io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
31io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
32create disk=test mode=diff name=tstShared3.vmdk type=dynamic backend=VMDK size=200M
33io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
34io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
35close disk=test mode=single delete=yes
36close disk=test mode=single delete=yes
37close disk=test mode=single delete=yes
38destroydisk name=test
39
40# VDI disk
41print msg=Testing_VDI
42createdisk name=test verify=yes
43create disk=test mode=base name=tstShared.vdi type=dynamic backend=VDI size=200M
44io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
45io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
46io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
47io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
48create disk=test mode=diff name=tstShared2.vdi type=dynamic backend=VDI size=200M
49io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
50io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
51create disk=test mode=diff name=tstShared3.vdi type=dynamic backend=VDI size=200M
52io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
53io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
54close disk=test mode=single delete=yes
55close disk=test mode=single delete=yes
56close disk=test mode=single delete=yes
57destroydisk name=test
58
59# VHD disk
60print msg=Testing_VHD
61createdisk name=test verify=yes
62create disk=test mode=base name=tstShared.vhd type=dynamic backend=VHD size=200M
63io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
64io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
65io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
66io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
67create disk=test mode=diff name=tstShared2.vhd type=dynamic backend=VHD size=200M
68io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
69io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
70create disk=test mode=diff name=tstShared3.vhd type=dynamic backend=VHD size=200M
71io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
72io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
73close disk=test mode=single delete=yes
74close disk=test mode=single delete=yes
75close disk=test mode=single delete=yes
76destroydisk name=test
77
78# Parallels disk
79print msg=Testing_Parallels
80createdisk name=test verify=yes
81create disk=test mode=base name=tstShared.hdd type=dynamic backend=Parallels size=200M
82io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
83io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
84io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
85io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
86create disk=test mode=diff name=tstShared2.hdd type=dynamic backend=Parallels size=200M
87io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
88io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
89create disk=test mode=diff name=tstShared3.hdd type=dynamic backend=Parallels size=200M
90io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
91io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
92close disk=test mode=single delete=yes
93close disk=test mode=single delete=yes
94close disk=test mode=single delete=yes
95destroydisk name=test
96
97# QED disk
98print msg=Testing_QED
99createdisk name=test verify=yes
100create disk=test mode=base name=tstShared.qed type=dynamic backend=QED size=200M
101io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
102io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
103io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
104io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
105io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
106io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
107io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
108io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
109close disk=test mode=single delete=no
110open disk=test name=tstShared.qed backend=QED async=yes
111io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
112destroydisk name=test
113
114# QCOW disk
115print msg=Testing_QCOW
116createdisk name=test verify=yes
117create disk=test mode=base name=tstShared.qcow type=dynamic backend=QCOW size=200M
118io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
119io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
120io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
121io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
122io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
123io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
124io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
125close disk=test mode=single delete=no
126open disk=test name=tstShared.qcow backend=QCOW async=yes
127io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
128destroydisk name=test
129
130iorngdestroy
131
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette