-
Notifications
You must be signed in to change notification settings - Fork 0
/
ins4_throttling_disks.sh
executable file
·35 lines (35 loc) · 2.34 KB
/
ins4_throttling_disks.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
/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=/home/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=/mnt/linux/RHEL-8.1.0-20190701.0-x86_64-dvd1.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 \
\
-object throttle-group,id=foo,x-iops-read=200,x-iops-read-max=400,x-iops-read-max-length=5,x-iops-write=200,x-iops-write-max=400,x-iops-write-max-length=5,x-bps-read=409600,x-bps-read-max=819200,x-bps-read-max-length=5,x-bps-write=204800,x-bps-write-max=409600,x-bps-write-max-length=5 \
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/home/images/data4.qcow2,node-name=file_stg1 \
-blockdev driver=qcow2,node-name=drive_stg1,file=file_stg1 \
-blockdev driver=throttle,throttle-group=foo,node-name=foo1,file=drive_stg1 \
-device pcie-root-port,id=pcie.0-root-port-6,slot=6,chassis=5,addr=0x6,bus=pcie.0 \
-device virtio-blk-pci,drive=foo1,id=data,bus=pcie.0-root-port-6,addr=0x0 \
\
-device virtio-scsi-pci,id=scsi0 \
-drive file=/home/images/data4.raw,if=none,id=drive-scsi0-0-1-0,format=raw,cache=none,bps=30720000,iops=100,throttling.group=scsi,iops_size=4096 \
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=1,lun=0,drive=drive-scsi0-0-1-0,id=scsi0-0-1-0 \
\
-drive file=/dev/vg/lv,if=none,id=drive-scsi0-0-1-1,format=raw,cache=none \
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=2,lun=0,drive=drive-scsi0-0-1-1,id=scsi0-0-1-1 \