1 | # $Id: tstVDIo.vd 38563 2011-08-29 19:33:42Z vboxsync $
|
---|
2 | #
|
---|
3 | # Storage: Simple I/O testing for most backends.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2011 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=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
27 | create disk=test mode=diff name=tstShared2.vmdk type=dynamic backend=VMDK size=200M
|
---|
28 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
29 | create disk=test mode=diff name=tstShared3.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 | close disk=test mode=single delete=yes
|
---|
32 | close disk=test mode=single delete=yes
|
---|
33 | close disk=test mode=single delete=yes
|
---|
34 | destroydisk name=test
|
---|
35 |
|
---|
36 | # VDI disk
|
---|
37 | print msg=Testing_VDI
|
---|
38 | createdisk name=test verify=yes
|
---|
39 | create disk=test mode=base name=tstShared.vdi type=dynamic backend=VDI size=200M
|
---|
40 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
41 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
42 | create disk=test mode=diff name=tstShared2.vdi type=dynamic backend=VDI size=200M
|
---|
43 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
44 | create disk=test mode=diff name=tstShared3.vdi type=dynamic backend=VDI size=200M
|
---|
45 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
46 | close disk=test mode=single delete=yes
|
---|
47 | close disk=test mode=single delete=yes
|
---|
48 | close disk=test mode=single delete=yes
|
---|
49 | destroydisk name=test
|
---|
50 |
|
---|
51 | # VHD disk
|
---|
52 | print msg=Testing_VHD
|
---|
53 | createdisk name=test verify=yes
|
---|
54 | create disk=test mode=base name=tstShared.vhd type=dynamic backend=VHD size=200M
|
---|
55 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
56 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
57 | create disk=test mode=diff name=tstShared2.vhd type=dynamic backend=VHD size=200M
|
---|
58 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
59 | create disk=test mode=diff name=tstShared3.vhd type=dynamic backend=VHD size=200M
|
---|
60 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
61 | close disk=test mode=single delete=yes
|
---|
62 | close disk=test mode=single delete=yes
|
---|
63 | close disk=test mode=single delete=yes
|
---|
64 | destroydisk name=test
|
---|
65 |
|
---|
66 | # Parallels disk
|
---|
67 | print msg=Testing_Parallels
|
---|
68 | createdisk name=test verify=yes
|
---|
69 | create disk=test mode=base name=tstShared.hdd type=dynamic backend=Parallels size=200M
|
---|
70 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
71 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
72 | create disk=test mode=diff name=tstShared2.hdd type=dynamic backend=Parallels size=200M
|
---|
73 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
74 | create disk=test mode=diff name=tstShared3.hdd type=dynamic backend=Parallels size=200M
|
---|
75 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
76 | close disk=test mode=single delete=yes
|
---|
77 | close disk=test mode=single delete=yes
|
---|
78 | close disk=test mode=single delete=yes
|
---|
79 | destroydisk name=test
|
---|
80 |
|
---|
81 | # QED disk
|
---|
82 | print msg=Testing_QED
|
---|
83 | createdisk name=test verify=yes
|
---|
84 | create disk=test mode=base name=tstShared.qed type=dynamic backend=QED size=200M
|
---|
85 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
86 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
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=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
89 | close disk=test mode=single delete=no
|
---|
90 | open disk=test name=tstShared.qed backend=QED async=yes
|
---|
91 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
92 | destroydisk name=test
|
---|
93 |
|
---|
94 | # QCOW disk
|
---|
95 | print msg=Testing_QCOW
|
---|
96 | createdisk name=test verify=yes
|
---|
97 | create disk=test mode=base name=tstShared.qed type=dynamic backend=QCOW size=200M
|
---|
98 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
|
---|
99 | io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
|
---|
100 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
|
---|
101 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
102 | close disk=test mode=single delete=no
|
---|
103 | open disk=test name=tstShared.qed backend=QCOW async=yes
|
---|
104 | io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
|
---|
105 | destroydisk name=test
|
---|
106 |
|
---|
107 | iorngdestroy
|
---|
108 |
|
---|