2 * QEMU throttling command line options
4 * This work is licensed under the terms of the GNU GPL, version 2 or
5 * (at your option) any later version.
7 * See the COPYING file in the top-level directory for details.
10 #ifndef THROTTLE_OPTIONS_H
11 #define THROTTLE_OPTIONS_H
13 #define QEMU_OPT_IOPS_TOTAL "iops-total"
14 #define QEMU_OPT_IOPS_TOTAL_MAX "iops-total-max"
15 #define QEMU_OPT_IOPS_TOTAL_MAX_LENGTH "iops-total-max-length"
16 #define QEMU_OPT_IOPS_READ "iops-read"
17 #define QEMU_OPT_IOPS_READ_MAX "iops-read-max"
18 #define QEMU_OPT_IOPS_READ_MAX_LENGTH "iops-read-max-length"
19 #define QEMU_OPT_IOPS_WRITE "iops-write"
20 #define QEMU_OPT_IOPS_WRITE_MAX "iops-write-max"
21 #define QEMU_OPT_IOPS_WRITE_MAX_LENGTH "iops-write-max-length"
22 #define QEMU_OPT_BPS_TOTAL "bps-total"
23 #define QEMU_OPT_BPS_TOTAL_MAX "bps-total-max"
24 #define QEMU_OPT_BPS_TOTAL_MAX_LENGTH "bps-total-max-length"
25 #define QEMU_OPT_BPS_READ "bps-read"
26 #define QEMU_OPT_BPS_READ_MAX "bps-read-max"
27 #define QEMU_OPT_BPS_READ_MAX_LENGTH "bps-read-max-length"
28 #define QEMU_OPT_BPS_WRITE "bps-write"
29 #define QEMU_OPT_BPS_WRITE_MAX "bps-write-max"
30 #define QEMU_OPT_BPS_WRITE_MAX_LENGTH "bps-write-max-length"
31 #define QEMU_OPT_IOPS_SIZE "iops-size"
32 #define QEMU_OPT_THROTTLE_GROUP_NAME "throttle-group"
34 #define THROTTLE_OPT_PREFIX "throttling."
35 #define THROTTLE_OPTS \
37 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_TOTAL,\
38 .type = QEMU_OPT_NUMBER,\
39 .help = "limit total I/O operations per second",\
41 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_READ,\
42 .type = QEMU_OPT_NUMBER,\
43 .help = "limit read operations per second",\
45 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_WRITE,\
46 .type = QEMU_OPT_NUMBER,\
47 .help = "limit write operations per second",\
49 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_TOTAL,\
50 .type = QEMU_OPT_NUMBER,\
51 .help = "limit total bytes per second",\
53 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_READ,\
54 .type = QEMU_OPT_NUMBER,\
55 .help = "limit read bytes per second",\
57 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_WRITE,\
58 .type = QEMU_OPT_NUMBER,\
59 .help = "limit write bytes per second",\
61 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_TOTAL_MAX,\
62 .type = QEMU_OPT_NUMBER,\
63 .help = "I/O operations burst",\
65 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_READ_MAX,\
66 .type = QEMU_OPT_NUMBER,\
67 .help = "I/O operations read burst",\
69 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_WRITE_MAX,\
70 .type = QEMU_OPT_NUMBER,\
71 .help = "I/O operations write burst",\
73 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_TOTAL_MAX,\
74 .type = QEMU_OPT_NUMBER,\
75 .help = "total bytes burst",\
77 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_READ_MAX,\
78 .type = QEMU_OPT_NUMBER,\
79 .help = "total bytes read burst",\
81 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_WRITE_MAX,\
82 .type = QEMU_OPT_NUMBER,\
83 .help = "total bytes write burst",\
85 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_TOTAL_MAX_LENGTH,\
86 .type = QEMU_OPT_NUMBER,\
87 .help = "length of the iops-total-max burst period, in seconds",\
89 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_READ_MAX_LENGTH,\
90 .type = QEMU_OPT_NUMBER,\
91 .help = "length of the iops-read-max burst period, in seconds",\
93 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_WRITE_MAX_LENGTH,\
94 .type = QEMU_OPT_NUMBER,\
95 .help = "length of the iops-write-max burst period, in seconds",\
97 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_TOTAL_MAX_LENGTH,\
98 .type = QEMU_OPT_NUMBER,\
99 .help = "length of the bps-total-max burst period, in seconds",\
101 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_READ_MAX_LENGTH,\
102 .type = QEMU_OPT_NUMBER,\
103 .help = "length of the bps-read-max burst period, in seconds",\
105 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_WRITE_MAX_LENGTH,\
106 .type = QEMU_OPT_NUMBER,\
107 .help = "length of the bps-write-max burst period, in seconds",\
109 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_SIZE,\
110 .type = QEMU_OPT_NUMBER,\
111 .help = "when limiting by iops max size of an I/O in bytes",\