blob: f0c6325b76fd52e527948909b1aa1af4a21bf1cb [file] [log] [blame]
Jens Axboe8062f522013-04-10 15:01:42 +02001#ifndef FIO_THREAD_OPTIONS_H
2#define FIO_THREAD_OPTIONS_H
3
4#include "arch/arch.h"
5#include "os/os.h"
Jens Axboe9c62acd2014-12-09 12:58:15 -07006#include "options.h"
Jens Axboe8062f522013-04-10 15:01:42 +02007#include "stat.h"
8#include "gettime.h"
Jens Axboe888677a2013-04-10 22:19:46 +02009#include "lib/ieee754.h"
Jens Axboe3c978122013-04-17 19:27:46 +020010#include "td_error.h"
Jens Axboe8062f522013-04-10 15:01:42 +020011
12/*
13 * What type of allocation to use for io buffers
14 */
15enum fio_memtype {
16 MEM_MALLOC = 0, /* ordinary malloc */
17 MEM_SHM, /* use shared memory segments */
18 MEM_SHMHUGE, /* use shared memory segments with huge pages */
19 MEM_MMAP, /* use anonynomous mmap */
20 MEM_MMAPHUGE, /* memory mapped huge file */
21};
22
Jens Axboe8062f522013-04-10 15:01:42 +020023#define ERROR_STR_MAX 128
24
Jens Axboe8062f522013-04-10 15:01:42 +020025#define BSSPLIT_MAX 64
26
27struct bssplit {
28 uint32_t bs;
29 uint32_t perc;
30};
31
Jens Axboe9c62acd2014-12-09 12:58:15 -070032#define NR_OPTS_SZ (FIO_MAX_OPTS / (8 * sizeof(uint64_t)))
33
Jens Axboecb1402d2014-02-25 11:35:27 -080034#define OPT_MAGIC 0x4f50544e
35
Jens Axboe8062f522013-04-10 15:01:42 +020036struct thread_options {
Jens Axboecb1402d2014-02-25 11:35:27 -080037 int magic;
Jens Axboe9c62acd2014-12-09 12:58:15 -070038 uint64_t set_options[NR_OPTS_SZ];
Jens Axboe8062f522013-04-10 15:01:42 +020039 char *description;
40 char *name;
41 char *directory;
42 char *filename;
43 char *filename_format;
44 char *opendir;
45 char *ioengine;
Jens Axboe83ea4222012-03-28 14:01:46 +020046 char *mmapfile;
Jens Axboe8062f522013-04-10 15:01:42 +020047 enum td_ddir td_ddir;
48 unsigned int rw_seq;
49 unsigned int kb_base;
50 unsigned int unit_base;
51 unsigned int ddir_seq_nr;
Sébastien Bouchex Bellomiéc46fda92014-03-11 08:54:27 -060052 long long ddir_seq_add;
Jens Axboe8062f522013-04-10 15:01:42 +020053 unsigned int iodepth;
54 unsigned int iodepth_low;
55 unsigned int iodepth_batch;
56 unsigned int iodepth_batch_complete;
57
58 unsigned long long size;
Jens Axboe77731b22014-04-28 12:08:47 -060059 unsigned long long io_limit;
Jens Axboe8062f522013-04-10 15:01:42 +020060 unsigned int size_percent;
61 unsigned int fill_device;
Jens Axboebedc9dc2014-03-17 12:51:09 -060062 unsigned int file_append;
Jens Axboe8062f522013-04-10 15:01:42 +020063 unsigned long long file_size_low;
64 unsigned long long file_size_high;
65 unsigned long long start_offset;
66
67 unsigned int bs[DDIR_RWDIR_CNT];
68 unsigned int ba[DDIR_RWDIR_CNT];
69 unsigned int min_bs[DDIR_RWDIR_CNT];
70 unsigned int max_bs[DDIR_RWDIR_CNT];
71 struct bssplit *bssplit[DDIR_RWDIR_CNT];
72 unsigned int bssplit_nr[DDIR_RWDIR_CNT];
73
74 int *ignore_error[ERROR_TYPE_CNT];
75 unsigned int ignore_error_nr[ERROR_TYPE_CNT];
76 unsigned int error_dump;
77
78 unsigned int nr_files;
79 unsigned int open_files;
80 enum file_lock_mode file_lock_mode;
81
82 unsigned int odirect;
Chris Masond01612f2013-11-15 15:52:58 -070083 unsigned int oatomic;
Jens Axboe8062f522013-04-10 15:01:42 +020084 unsigned int invalidate_cache;
85 unsigned int create_serialize;
86 unsigned int create_fsync;
87 unsigned int create_on_open;
88 unsigned int create_only;
89 unsigned int end_fsync;
90 unsigned int pre_read;
91 unsigned int sync_io;
92 unsigned int verify;
93 unsigned int do_verify;
94 unsigned int verifysort;
95 unsigned int verifysort_nr;
96 unsigned int verify_interval;
97 unsigned int verify_offset;
98 char verify_pattern[MAX_PATTERN_SIZE];
99 unsigned int verify_pattern_bytes;
100 unsigned int verify_fatal;
101 unsigned int verify_dump;
102 unsigned int verify_async;
103 unsigned long long verify_backlog;
104 unsigned int verify_batch;
105 unsigned int experimental_verify;
Jens Axboede54cfd2014-11-10 20:34:00 -0700106 unsigned int verify_state;
107 unsigned int verify_state_save;
Jens Axboe8062f522013-04-10 15:01:42 +0200108 unsigned int use_thread;
109 unsigned int unlink;
110 unsigned int do_disk_util;
111 unsigned int override_sync;
112 unsigned int rand_repeatable;
Christian Ehrhardt56e2a5f2014-02-20 09:10:17 -0800113 unsigned int allrand_repeatable;
Grant Grundler363cffa2014-01-28 15:11:23 -0700114 unsigned long long rand_seed;
Jens Axboe559073f2014-11-05 18:34:02 -0700115 unsigned int dep_use_os_rand;
Jens Axboe8062f522013-04-10 15:01:42 +0200116 unsigned int log_avg_msec;
Jens Axboeccefd5f2014-06-30 20:59:03 -0600117 unsigned int log_offset;
Jens Axboe38a812d2014-07-03 09:10:39 -0600118 unsigned int log_gz;
Jens Axboebac4af12014-07-03 13:42:28 -0600119 unsigned int log_gz_store;
Jens Axboe8062f522013-04-10 15:01:42 +0200120 unsigned int norandommap;
121 unsigned int softrandommap;
122 unsigned int bs_unaligned;
123 unsigned int fsync_on_close;
Jens Axboe6aca9b32013-07-25 12:45:26 -0600124 unsigned int bs_is_seq_rand;
Jens Axboe8062f522013-04-10 15:01:42 +0200125
Juan Casse62167762013-09-17 14:06:13 -0700126 unsigned int verify_only;
127
Jens Axboe8062f522013-04-10 15:01:42 +0200128 unsigned int random_distribution;
Jens Axboeb7f487c2013-04-10 19:50:32 +0200129
Jens Axboe888677a2013-04-10 22:19:46 +0200130 fio_fp64_t zipf_theta;
131 fio_fp64_t pareto_h;
Jens Axboe8062f522013-04-10 15:01:42 +0200132
133 unsigned int random_generator;
134
Jens Axboed9472272013-07-25 10:20:45 -0600135 unsigned int perc_rand[DDIR_RWDIR_CNT];
Jens Axboe211c9b82013-04-26 08:56:17 -0600136
Jens Axboe8062f522013-04-10 15:01:42 +0200137 unsigned int hugepage_size;
138 unsigned int rw_min_bs;
139 unsigned int thinktime;
140 unsigned int thinktime_spin;
141 unsigned int thinktime_blocks;
142 unsigned int fsync_blocks;
143 unsigned int fdatasync_blocks;
144 unsigned int barrier_blocks;
145 unsigned long long start_delay;
Christian Ehrhardt23ed19b2014-02-20 09:07:02 -0800146 unsigned long long start_delay_high;
Jens Axboe8062f522013-04-10 15:01:42 +0200147 unsigned long long timeout;
148 unsigned long long ramp_time;
149 unsigned int overwrite;
150 unsigned int bw_avg_time;
151 unsigned int iops_avg_time;
152 unsigned int loops;
153 unsigned long long zone_range;
154 unsigned long long zone_size;
155 unsigned long long zone_skip;
Jens Axboe81c6b6c2013-04-10 19:30:50 +0200156 unsigned long long lockmem;
Jens Axboe8062f522013-04-10 15:01:42 +0200157 enum fio_memtype mem_type;
158 unsigned int mem_align;
159
160 unsigned int max_latency;
161
162 unsigned int stonewall;
163 unsigned int new_group;
164 unsigned int numjobs;
165 os_cpu_mask_t cpumask;
166 unsigned int cpumask_set;
167 os_cpu_mask_t verify_cpumask;
168 unsigned int verify_cpumask_set;
Jens Axboec2acfba2014-02-27 15:52:02 -0800169 unsigned int cpus_allowed_policy;
Daniel Gollub43522842014-05-01 17:07:49 +0200170 char *numa_cpunodes;
Jens Axboe8062f522013-04-10 15:01:42 +0200171 unsigned int numa_cpumask_set;
172 unsigned short numa_mem_mode;
173 unsigned int numa_mem_prefer_node;
Daniel Gollub43522842014-05-01 17:07:49 +0200174 char *numa_memnodes;
Jens Axboe8062f522013-04-10 15:01:42 +0200175 unsigned int numa_memmask_set;
Jens Axboe8062f522013-04-10 15:01:42 +0200176 unsigned int iolog;
177 unsigned int rwmixcycle;
Jens Axboe5054e672013-11-08 10:57:08 -0700178 unsigned int rwmix[DDIR_RWDIR_CNT];
Jens Axboe8062f522013-04-10 15:01:42 +0200179 unsigned int nice;
Jens Axboe81c6b6c2013-04-10 19:30:50 +0200180 unsigned int ioprio;
181 unsigned int ioprio_class;
Jens Axboe8062f522013-04-10 15:01:42 +0200182 unsigned int file_service_type;
183 unsigned int group_reporting;
184 unsigned int fadvise_hint;
185 enum fio_fallocate_mode fallocate_mode;
186 unsigned int zero_buffers;
187 unsigned int refill_buffers;
188 unsigned int scramble_buffers;
Jens Axboece35b1e2014-01-14 15:35:58 -0700189 char buffer_pattern[MAX_PATTERN_SIZE];
190 unsigned int buffer_pattern_bytes;
Jens Axboe8062f522013-04-10 15:01:42 +0200191 unsigned int compress_percentage;
192 unsigned int compress_chunk;
Jens Axboee66dac22014-09-22 10:02:07 -0600193 unsigned int dedupe_percentage;
Jens Axboe8062f522013-04-10 15:01:42 +0200194 unsigned int time_based;
195 unsigned int disable_lat;
196 unsigned int disable_clat;
197 unsigned int disable_slat;
198 unsigned int disable_bw;
199 unsigned int unified_rw_rep;
200 unsigned int gtod_reduce;
201 unsigned int gtod_cpu;
202 unsigned int gtod_offload;
203 enum fio_cs clocksource;
204 unsigned int no_stall;
205 unsigned int trim_percentage;
206 unsigned int trim_batch;
207 unsigned int trim_zero;
208 unsigned long long trim_backlog;
209 unsigned int clat_percentiles;
210 unsigned int percentile_precision; /* digits after decimal for percentiles */
211 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
212
213 char *read_iolog_file;
214 char *write_iolog_file;
215 char *bw_log_file;
216 char *lat_log_file;
217 char *iops_log_file;
218 char *replay_redirect;
219
220 /*
221 * Pre-run and post-run shell
222 */
223 char *exec_prerun;
224 char *exec_postrun;
225
226 unsigned int rate[DDIR_RWDIR_CNT];
227 unsigned int ratemin[DDIR_RWDIR_CNT];
228 unsigned int ratecycle;
229 unsigned int rate_iops[DDIR_RWDIR_CNT];
230 unsigned int rate_iops_min[DDIR_RWDIR_CNT];
231
232 char *ioscheduler;
233
234 /*
Jens Axboe8062f522013-04-10 15:01:42 +0200235 * I/O Error handling
236 */
237 enum error_type continue_on_error;
238
239 /*
240 * Benchmark profile type
241 */
242 char *profile;
243
244 /*
245 * blkio cgroup support
246 */
247 char *cgroup;
248 unsigned int cgroup_weight;
249 unsigned int cgroup_nodelete;
250
251 unsigned int uid;
252 unsigned int gid;
253
254 int flow_id;
255 int flow;
256 int flow_watermark;
257 unsigned int flow_sleep;
258
259 unsigned long long offset_increment;
Jens Axboeddf24e42013-08-09 12:53:44 -0600260 unsigned long long number_ios;
Jens Axboe8062f522013-04-10 15:01:42 +0200261
262 unsigned int sync_file_range;
Jens Axboe3e260a42013-12-09 12:38:53 -0700263
264 unsigned long long latency_target;
265 unsigned long long latency_window;
266 fio_fp64_t latency_percentile;
Jens Axboe8062f522013-04-10 15:01:42 +0200267};
268
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100269#define FIO_TOP_STR_MAX 256
270
271struct thread_options_pack {
Jens Axboe9c62acd2014-12-09 12:58:15 -0700272 uint64_t set_options[NR_OPTS_SZ];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100273 uint8_t description[FIO_TOP_STR_MAX];
274 uint8_t name[FIO_TOP_STR_MAX];
275 uint8_t directory[FIO_TOP_STR_MAX];
276 uint8_t filename[FIO_TOP_STR_MAX];
Jens Axboe22f80452013-04-09 20:29:16 +0200277 uint8_t filename_format[FIO_TOP_STR_MAX];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100278 uint8_t opendir[FIO_TOP_STR_MAX];
279 uint8_t ioengine[FIO_TOP_STR_MAX];
Jens Axboe83ea4222012-03-28 14:01:46 +0200280 uint8_t mmapfile[FIO_TOP_STR_MAX];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100281 uint32_t td_ddir;
282 uint32_t rw_seq;
283 uint32_t kb_base;
Jens Axboe22f80452013-04-09 20:29:16 +0200284 uint32_t unit_base;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100285 uint32_t ddir_seq_nr;
286 uint64_t ddir_seq_add;
287 uint32_t iodepth;
288 uint32_t iodepth_low;
289 uint32_t iodepth_batch;
290 uint32_t iodepth_batch_complete;
291
292 uint64_t size;
Jens Axboe77731b22014-04-28 12:08:47 -0600293 uint64_t io_limit;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100294 uint32_t size_percent;
295 uint32_t fill_device;
Jens Axboebedc9dc2014-03-17 12:51:09 -0600296 uint32_t file_append;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100297 uint64_t file_size_low;
298 uint64_t file_size_high;
299 uint64_t start_offset;
300
Jens Axboeb999b3c2012-09-24 09:39:49 +0200301 uint32_t bs[DDIR_RWDIR_CNT];
302 uint32_t ba[DDIR_RWDIR_CNT];
303 uint32_t min_bs[DDIR_RWDIR_CNT];
304 uint32_t max_bs[DDIR_RWDIR_CNT];
305 struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX];
306 uint32_t bssplit_nr[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100307
Jens Axboee65a9502012-09-24 09:24:04 +0200308 uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX];
309 uint32_t ignore_error_nr[ERROR_TYPE_CNT];
310 uint32_t error_dump;
311
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100312 uint32_t nr_files;
313 uint32_t open_files;
314 uint32_t file_lock_mode;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100315
316 uint32_t odirect;
Chris Masond01612f2013-11-15 15:52:58 -0700317 uint32_t oatomic;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100318 uint32_t invalidate_cache;
319 uint32_t create_serialize;
320 uint32_t create_fsync;
321 uint32_t create_on_open;
Jens Axboefb390e22012-05-07 09:54:41 +0200322 uint32_t create_only;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100323 uint32_t end_fsync;
324 uint32_t pre_read;
325 uint32_t sync_io;
326 uint32_t verify;
327 uint32_t do_verify;
328 uint32_t verifysort;
Jens Axboe836fcc02013-01-24 09:08:45 -0700329 uint32_t verifysort_nr;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100330 uint32_t verify_interval;
331 uint32_t verify_offset;
332 uint8_t verify_pattern[MAX_PATTERN_SIZE];
333 uint32_t verify_pattern_bytes;
334 uint32_t verify_fatal;
335 uint32_t verify_dump;
336 uint32_t verify_async;
337 uint64_t verify_backlog;
338 uint32_t verify_batch;
Jens Axboe836fcc02013-01-24 09:08:45 -0700339 uint32_t experimental_verify;
Jens Axboede54cfd2014-11-10 20:34:00 -0700340 uint32_t verify_state;
341 uint32_t verify_state_save;
342 uint32_t pad;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100343 uint32_t use_thread;
344 uint32_t unlink;
345 uint32_t do_disk_util;
346 uint32_t override_sync;
347 uint32_t rand_repeatable;
Christian Ehrhardt56e2a5f2014-02-20 09:10:17 -0800348 uint32_t allrand_repeatable;
Grant Grundler363cffa2014-01-28 15:11:23 -0700349 uint64_t rand_seed;
Jens Axboe559073f2014-11-05 18:34:02 -0700350 uint32_t dep_use_os_rand;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100351 uint32_t log_avg_msec;
Jens Axboeccefd5f2014-06-30 20:59:03 -0600352 uint32_t log_offset;
Jens Axboe38a812d2014-07-03 09:10:39 -0600353 uint32_t log_gz;
Jens Axboebac4af12014-07-03 13:42:28 -0600354 uint32_t log_gz_store;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100355 uint32_t norandommap;
356 uint32_t softrandommap;
357 uint32_t bs_unaligned;
358 uint32_t fsync_on_close;
Jens Axboe6aca9b32013-07-25 12:45:26 -0600359 uint32_t bs_is_seq_rand;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100360
Jens Axboe1e5324e2012-11-14 14:25:31 -0700361 uint32_t random_distribution;
362 fio_fp64_t zipf_theta;
363 fio_fp64_t pareto_h;
364
Jens Axboe49758e12012-12-03 14:37:23 +0100365 uint32_t random_generator;
366
Jens Axboed9472272013-07-25 10:20:45 -0600367 uint32_t perc_rand[DDIR_RWDIR_CNT];
Jens Axboe211c9b82013-04-26 08:56:17 -0600368
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100369 uint32_t hugepage_size;
370 uint32_t rw_min_bs;
371 uint32_t thinktime;
372 uint32_t thinktime_spin;
373 uint32_t thinktime_blocks;
374 uint32_t fsync_blocks;
375 uint32_t fdatasync_blocks;
376 uint32_t barrier_blocks;
377 uint64_t start_delay;
Christian Ehrhardt23ed19b2014-02-20 09:07:02 -0800378 uint64_t start_delay_high;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100379 uint64_t timeout;
380 uint64_t ramp_time;
381 uint32_t overwrite;
382 uint32_t bw_avg_time;
383 uint32_t iops_avg_time;
384 uint32_t loops;
385 uint64_t zone_range;
386 uint64_t zone_size;
387 uint64_t zone_skip;
Jens Axboeae278f92012-03-28 20:52:55 +0200388 uint64_t lockmem;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100389 uint32_t mem_type;
390 uint32_t mem_align;
391
Jens Axboe1e5324e2012-11-14 14:25:31 -0700392 uint32_t max_latency;
393
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100394 uint32_t stonewall;
395 uint32_t new_group;
396 uint32_t numjobs;
397 uint8_t cpumask[FIO_TOP_STR_MAX];
398 uint32_t cpumask_set;
399 uint8_t verify_cpumask[FIO_TOP_STR_MAX];
400 uint32_t verify_cpumask_set;
Jens Axboec2acfba2014-02-27 15:52:02 -0800401 uint32_t cpus_allowed_policy;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100402 uint32_t iolog;
403 uint32_t rwmixcycle;
Jens Axboe5054e672013-11-08 10:57:08 -0700404 uint32_t rwmix[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100405 uint32_t nice;
Jens Axboe28727df2012-03-29 08:33:15 +0200406 uint32_t ioprio;
407 uint32_t ioprio_class;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100408 uint32_t file_service_type;
409 uint32_t group_reporting;
410 uint32_t fadvise_hint;
411 uint32_t fallocate_mode;
412 uint32_t zero_buffers;
413 uint32_t refill_buffers;
414 uint32_t scramble_buffers;
Jens Axboece35b1e2014-01-14 15:35:58 -0700415 uint8_t buffer_pattern[MAX_PATTERN_SIZE];
416 uint32_t buffer_pattern_bytes;
Jens Axboee66dac22014-09-22 10:02:07 -0600417 uint32_t compress_percentage;
418 uint32_t compress_chunk;
419 uint32_t dedupe_percentage;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100420 uint32_t time_based;
421 uint32_t disable_lat;
422 uint32_t disable_clat;
423 uint32_t disable_slat;
424 uint32_t disable_bw;
Jens Axboe95820b62013-01-31 13:23:40 +0100425 uint32_t unified_rw_rep;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100426 uint32_t gtod_reduce;
427 uint32_t gtod_cpu;
428 uint32_t gtod_offload;
429 uint32_t clocksource;
430 uint32_t no_stall;
431 uint32_t trim_percentage;
432 uint32_t trim_batch;
433 uint32_t trim_zero;
434 uint64_t trim_backlog;
435 uint32_t clat_percentiles;
Jens Axboe9db01ef2013-02-07 15:45:39 +0100436 uint32_t percentile_precision;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100437 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
438
439 uint8_t read_iolog_file[FIO_TOP_STR_MAX];
440 uint8_t write_iolog_file[FIO_TOP_STR_MAX];
441 uint8_t bw_log_file[FIO_TOP_STR_MAX];
442 uint8_t lat_log_file[FIO_TOP_STR_MAX];
443 uint8_t iops_log_file[FIO_TOP_STR_MAX];
444 uint8_t replay_redirect[FIO_TOP_STR_MAX];
445
446 /*
447 * Pre-run and post-run shell
448 */
449 uint8_t exec_prerun[FIO_TOP_STR_MAX];
450 uint8_t exec_postrun[FIO_TOP_STR_MAX];
451
Jens Axboeb999b3c2012-09-24 09:39:49 +0200452 uint32_t rate[DDIR_RWDIR_CNT];
453 uint32_t ratemin[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100454 uint32_t ratecycle;
Jens Axboeb999b3c2012-09-24 09:39:49 +0200455 uint32_t rate_iops[DDIR_RWDIR_CNT];
456 uint32_t rate_iops_min[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100457
458 uint8_t ioscheduler[FIO_TOP_STR_MAX];
459
460 /*
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100461 * I/O Error handling
462 */
463 uint32_t continue_on_error;
464
465 /*
466 * Benchmark profile type
467 */
468 uint8_t profile[FIO_TOP_STR_MAX];
469
470 /*
471 * blkio cgroup support
472 */
473 uint8_t cgroup[FIO_TOP_STR_MAX];
474 uint32_t cgroup_weight;
475 uint32_t cgroup_nodelete;
476
477 uint32_t uid;
478 uint32_t gid;
479
480 int32_t flow_id;
481 int32_t flow;
482 int32_t flow_watermark;
483 uint32_t flow_sleep;
484
Jens Axboe6a4cf742012-03-16 14:02:54 +0100485 uint64_t offset_increment;
Jens Axboeddf24e42013-08-09 12:53:44 -0600486 uint64_t number_ios;
Jens Axboe6a4cf742012-03-16 14:02:54 +0100487
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100488 uint32_t sync_file_range;
Shu-Yu Fuf45d32b2014-10-21 07:57:55 -0600489 uint32_t pad2;
Jens Axboe3e260a42013-12-09 12:38:53 -0700490
491 uint64_t latency_target;
492 uint64_t latency_window;
493 fio_fp64_t latency_percentile;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100494} __attribute__((packed));
495
496extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top);
497extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *);
Jens Axboe51167792012-03-08 21:34:18 +0100498extern int fio_test_cconv(struct thread_options *);
Jens Axboe588b7f02012-03-19 20:37:41 +0100499extern void options_default_fill(struct thread_options *o);
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100500
Jens Axboe8062f522013-04-10 15:01:42 +0200501#endif