-
Notifications
You must be signed in to change notification settings - Fork 0
/
ins4_throttling_6disks_mix_drive_blockdev2.sh
executable file
·59 lines (59 loc) · 3.62 KB
/
ins4_throttling_6disks_mix_drive_blockdev2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/usr/libexec/qemu-kvm \
-name 'guest-rhel8.0' \
-machine q35 \
-nodefaults \
-vga qxl \
-object iothread,id=iothread0 \
-blockdev driver=qcow2,file.driver=file,cache.direct=off,cache.no-flush=on,file.filename=/workdir/images/os4.qcow2,node-name=drive_image2 \
-device pcie-root-port,id=pcie.0-root-port-5,slot=5,chassis=5,addr=0x5,bus=pcie.0 \
-device virtio-blk-pci,id=image2,drive=drive_image2,bus=pcie.0-root-port-5,addr=0x0,werror=stop,rerror=stop,iothread=iothread0,bootindex=0 \
-vnc :4 \
-monitor stdio \
-m 8192 \
-smp 8 \
-device virtio-net-pci,mac=9a:b5:b6:a1:b2:c4,id=idMmq1jH,vectors=4,netdev=idxgXAlm,bus=pcie.0,addr=0x9 \
-netdev tap,id=idxgXAlm,vhost=on \
-qmp tcp:localhost:5954,server,nowait \
-chardev file,path=/home/serial.log,id=serial_id_serial0 \
-device isa-serial,chardev=serial_id_serial0 \
-blockdev node-name=file_cd1,driver=file,read-only=on,filename=/workdir/iso/rh8.1.iso,cache.direct=on,cache.no-flush=off \
-blockdev node-name=drive_cd1,driver=raw,read-only=on,cache.direct=on,cache.no-flush=off,file=file_cd1 \
-device ide-cd,id=cd1,drive=drive_cd1,write-cache=on,bus=ide.0,unit=0 \
\
-device virtio-scsi-pci,id=scsi0 \
\
-device pcie-root-port,id=pcie.0-root-port-6,slot=6,chassis=5,addr=0x6,bus=pcie.0 \
-device pcie-root-port,id=pcie.0-root-port-7,slot=7,chassis=5,addr=0x7,bus=pcie.0 \
\
-object throttle-group,id=foo1_grp,x-iops-total=100 \
-object throttle-group,id=foo2_grp,x-iops-total=200 \
\
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/workdir/images/data4-1.1.qcow2,node-name=protocol_node1 \
-blockdev driver=qcow2,node-name=format_node1,file=protocol_node1 \
-blockdev driver=throttle,throttle-group=foo1_grp,node-name=filter_node1,file=format_node1 \
-device virtio-blk-pci,drive=filter_node1,id=data1,bus=pcie.0-root-port-6 \
\
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/workdir/images/data4-1.2.qcow2,node-name=protocol_node2 \
-blockdev driver=qcow2,node-name=format_node2,file=protocol_node2 \
-blockdev driver=throttle,throttle-group=foo1_grp,node-name=filter_node2,file=format_node2 \
-device virtio-blk-pci,drive=filter_node2,id=data2,bus=pcie.0-root-port-7 \
\
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/workdir/images/data4-1.3.qcow2,node-name=protocol_node3 \
-blockdev driver=qcow2,node-name=format_node3,file=protocol_node3 \
-blockdev driver=throttle,throttle-group=foo2_grp,node-name=filter_node3,file=format_node3 \
-device scsi-hd,drive=filter_node3,id=data3 \
\
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/workdir/images/data4-1.4.qcow2,node-name=protocol_node4 \
-blockdev driver=qcow2,node-name=format_node4,file=protocol_node4 \
-blockdev driver=throttle,throttle-group=foo2_grp,node-name=filter_node4,file=format_node4 \
-device scsi-hd,drive=filter_node4,id=data4 \
\
-drive file=/workdir/images/data4-2.1.raw,if=none,id=drive-scsi0-0-1-0,format=raw,cache=none,bps=30720000,iops=50,throttling.group=drive,iops_size=4096 \
-device scsi-hd,drive=drive-scsi0-0-1-0,id=data5 \
-drive file=/workdir/images/data4-2.2.raw,if=none,id=drive-scsi0-0-1-1,format=raw,cache=none,bps=0,iops=0,throttling.group=drive \
-device scsi-hd,drive=drive-scsi0-0-1-1,id=data6 \
-drive file=/workdir/images/data4-2.3.raw,if=none,id=drive-scsi0-0-1-2,format=raw,cache=none,bps=30720000,iops=80,throttling.group=drive,iops_size=4096 \
-device scsi-hd,drive=drive-scsi0-0-1-2,id=data7 \
-drive file=/workdir/images/data4-2.4.raw,if=none,id=drive-scsi0-0-1-3,format=raw,cache=none,bps=30720000,iops=100,iops_size=4096 \
-device scsi-hd,drive=drive-scsi0-0-1-3,id=data8 \
\