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
|
---|
19 | iorngcreate size=10M mode=manual seed=1234567890
|
---|
20 |
|
---|
21 | # VMDK disk
|
---|
22 | print msg=Testing_VMDK
|
---|
23 | createdisk name=test verify=yes
|
---|
24 | create disk=test mode=base name=tstShared.vmdk type=dynamic backend=VMDK size=200M
|
---|
25 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
26 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
27 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
28 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
29 | create disk=test mode=diff name=tstShared2.vmdk type=dynamic backend=VMDK size=200M
|
---|
30 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
31 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
32 | create disk=test mode=diff name=tstShared3.vmdk type=dynamic backend=VMDK size=200M
|
---|
33 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
34 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
35 | close disk=test mode=single delete=yes
|
---|
36 | close disk=test mode=single delete=yes
|
---|
37 | close disk=test mode=single delete=yes
|
---|
38 | destroydisk name=test
|
---|
39 |
|
---|
40 | # VDI disk
|
---|
41 | print msg=Testing_VDI
|
---|
42 | createdisk name=test verify=yes
|
---|
43 | create disk=test mode=base name=tstShared.vdi type=dynamic backend=VDI size=200M
|
---|
44 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
45 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
46 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
47 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
48 | create disk=test mode=diff name=tstShared2.vdi type=dynamic backend=VDI size=200M
|
---|
49 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
50 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
51 | create disk=test mode=diff name=tstShared3.vdi type=dynamic backend=VDI size=200M
|
---|
52 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
53 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
54 | close disk=test mode=single delete=yes
|
---|
55 | close disk=test mode=single delete=yes
|
---|
56 | close disk=test mode=single delete=yes
|
---|
57 | destroydisk name=test
|
---|
58 |
|
---|
59 | # VHD disk
|
---|
60 | print msg=Testing_VHD
|
---|
61 | createdisk name=test verify=yes
|
---|
62 | create disk=test mode=base name=tstShared.vhd type=dynamic backend=VHD size=200M
|
---|
63 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
64 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
65 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
66 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
67 | create disk=test mode=diff name=tstShared2.vhd type=dynamic backend=VHD size=200M
|
---|
68 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
69 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
70 | create disk=test mode=diff name=tstShared3.vhd type=dynamic backend=VHD size=200M
|
---|
71 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
72 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
73 | close disk=test mode=single delete=yes
|
---|
74 | close disk=test mode=single delete=yes
|
---|
75 | close disk=test mode=single delete=yes
|
---|
76 | destroydisk name=test
|
---|
77 |
|
---|
78 | # Parallels disk
|
---|
79 | print msg=Testing_Parallels
|
---|
80 | createdisk name=test verify=yes
|
---|
81 | create disk=test mode=base name=tstShared.hdd type=dynamic backend=Parallels size=200M
|
---|
82 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
83 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
84 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
85 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
86 | create disk=test mode=diff name=tstShared2.hdd type=dynamic backend=Parallels size=200M
|
---|
87 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
88 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
89 | create disk=test mode=diff name=tstShared3.hdd type=dynamic backend=Parallels size=200M
|
---|
90 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
91 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
92 | close disk=test mode=single delete=yes
|
---|
93 | close disk=test mode=single delete=yes
|
---|
94 | close disk=test mode=single delete=yes
|
---|
95 | destroydisk name=test
|
---|
96 |
|
---|
97 | # QED disk
|
---|
98 | print msg=Testing_QED
|
---|
99 | createdisk name=test verify=yes
|
---|
100 | create disk=test mode=base name=tstShared.qed type=dynamic backend=QED size=200M
|
---|
101 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
102 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
103 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
104 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
105 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
106 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
107 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
108 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
109 | close disk=test mode=single delete=no
|
---|
110 | open disk=test name=tstShared.qed backend=QED async=yes
|
---|
111 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
112 | destroydisk name=test
|
---|
113 |
|
---|
114 | # QCOW disk
|
---|
115 | print msg=Testing_QCOW
|
---|
116 | createdisk name=test verify=yes
|
---|
117 | create disk=test mode=base name=tstShared.qcow type=dynamic backend=QCOW size=200M
|
---|
118 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
119 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
120 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
121 | io disk=test async=no mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
122 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
123 | io disk=test async=no mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
124 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
125 | close disk=test mode=single delete=no
|
---|
126 | open disk=test name=tstShared.qcow backend=QCOW async=yes
|
---|
127 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
128 | destroydisk name=test
|
---|
129 |
|
---|
130 | iorngdestroy
|
---|
131 |
|
---|