Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 1 | #ifndef FIO_THREAD_OPTIONS_H |
| 2 | #define FIO_THREAD_OPTIONS_H |
| 3 | |
| 4 | #include "arch/arch.h" |
| 5 | #include "os/os.h" |
| 6 | #include "stat.h" |
| 7 | #include "gettime.h" |
| 8 | |
| 9 | /* |
| 10 | * What type of allocation to use for io buffers |
| 11 | */ |
| 12 | enum fio_memtype { |
| 13 | MEM_MALLOC = 0, /* ordinary malloc */ |
| 14 | MEM_SHM, /* use shared memory segments */ |
| 15 | MEM_SHMHUGE, /* use shared memory segments with huge pages */ |
| 16 | MEM_MMAP, /* use anonynomous mmap */ |
| 17 | MEM_MMAPHUGE, /* memory mapped huge file */ |
| 18 | }; |
| 19 | |
| 20 | /* |
| 21 | * What type of errors to continue on when continue_on_error is used |
| 22 | */ |
Jens Axboe | e65a950 | 2012-09-24 09:24:04 +0200 | [diff] [blame] | 23 | enum error_type_bit { |
| 24 | ERROR_TYPE_READ_BIT = 0, |
| 25 | ERROR_TYPE_WRITE_BIT = 1, |
| 26 | ERROR_TYPE_VERIFY_BIT = 2, |
| 27 | ERROR_TYPE_CNT = 3, |
| 28 | }; |
| 29 | |
| 30 | #define ERROR_STR_MAX 128 |
| 31 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 32 | enum error_type { |
| 33 | ERROR_TYPE_NONE = 0, |
Jens Axboe | e65a950 | 2012-09-24 09:24:04 +0200 | [diff] [blame] | 34 | ERROR_TYPE_READ = 1 << ERROR_TYPE_READ_BIT, |
| 35 | ERROR_TYPE_WRITE = 1 << ERROR_TYPE_WRITE_BIT, |
| 36 | ERROR_TYPE_VERIFY = 1 << ERROR_TYPE_VERIFY_BIT, |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 37 | ERROR_TYPE_ANY = 0xffff, |
| 38 | }; |
| 39 | |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 40 | #define BSSPLIT_MAX 64 |
| 41 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 42 | struct bssplit { |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 43 | uint32_t bs; |
| 44 | uint32_t perc; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | struct thread_options { |
| 48 | int pad; |
| 49 | char *description; |
| 50 | char *name; |
| 51 | char *directory; |
| 52 | char *filename; |
Jens Axboe | 22f8045 | 2013-04-09 20:29:16 +0200 | [diff] [blame] | 53 | char *filename_format; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 54 | char *opendir; |
| 55 | char *ioengine; |
Jens Axboe | 83ea422 | 2012-03-28 14:01:46 +0200 | [diff] [blame] | 56 | char *mmapfile; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 57 | enum td_ddir td_ddir; |
| 58 | unsigned int rw_seq; |
| 59 | unsigned int kb_base; |
Jens Axboe | 22f8045 | 2013-04-09 20:29:16 +0200 | [diff] [blame] | 60 | unsigned int unit_base; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 61 | unsigned int ddir_seq_nr; |
| 62 | long ddir_seq_add; |
| 63 | unsigned int iodepth; |
| 64 | unsigned int iodepth_low; |
| 65 | unsigned int iodepth_batch; |
| 66 | unsigned int iodepth_batch_complete; |
| 67 | |
| 68 | unsigned long long size; |
| 69 | unsigned int size_percent; |
| 70 | unsigned int fill_device; |
| 71 | unsigned long long file_size_low; |
| 72 | unsigned long long file_size_high; |
| 73 | unsigned long long start_offset; |
| 74 | |
Jens Axboe | d79db12 | 2012-09-24 08:51:24 +0200 | [diff] [blame] | 75 | unsigned int bs[DDIR_RWDIR_CNT]; |
| 76 | unsigned int ba[DDIR_RWDIR_CNT]; |
| 77 | unsigned int min_bs[DDIR_RWDIR_CNT]; |
| 78 | unsigned int max_bs[DDIR_RWDIR_CNT]; |
| 79 | struct bssplit *bssplit[DDIR_RWDIR_CNT]; |
| 80 | unsigned int bssplit_nr[DDIR_RWDIR_CNT]; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 81 | |
Jens Axboe | e65a950 | 2012-09-24 09:24:04 +0200 | [diff] [blame] | 82 | int *ignore_error[ERROR_TYPE_CNT]; |
| 83 | unsigned int ignore_error_nr[ERROR_TYPE_CNT]; |
| 84 | unsigned int error_dump; |
| 85 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 86 | unsigned int nr_files; |
| 87 | unsigned int open_files; |
| 88 | enum file_lock_mode file_lock_mode; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 89 | |
| 90 | unsigned int odirect; |
| 91 | unsigned int invalidate_cache; |
| 92 | unsigned int create_serialize; |
| 93 | unsigned int create_fsync; |
| 94 | unsigned int create_on_open; |
Jens Axboe | fb390e2 | 2012-05-07 09:54:41 +0200 | [diff] [blame] | 95 | unsigned int create_only; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 96 | unsigned int end_fsync; |
| 97 | unsigned int pre_read; |
| 98 | unsigned int sync_io; |
| 99 | unsigned int verify; |
| 100 | unsigned int do_verify; |
| 101 | unsigned int verifysort; |
Jens Axboe | 836fcc0 | 2013-01-24 09:08:45 -0700 | [diff] [blame] | 102 | unsigned int verifysort_nr; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 103 | unsigned int verify_interval; |
| 104 | unsigned int verify_offset; |
| 105 | char verify_pattern[MAX_PATTERN_SIZE]; |
| 106 | unsigned int verify_pattern_bytes; |
| 107 | unsigned int verify_fatal; |
| 108 | unsigned int verify_dump; |
| 109 | unsigned int verify_async; |
| 110 | unsigned long long verify_backlog; |
| 111 | unsigned int verify_batch; |
Jens Axboe | 836fcc0 | 2013-01-24 09:08:45 -0700 | [diff] [blame] | 112 | unsigned int experimental_verify; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 113 | unsigned int use_thread; |
| 114 | unsigned int unlink; |
| 115 | unsigned int do_disk_util; |
| 116 | unsigned int override_sync; |
| 117 | unsigned int rand_repeatable; |
| 118 | unsigned int use_os_rand; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 119 | unsigned int log_avg_msec; |
| 120 | unsigned int norandommap; |
| 121 | unsigned int softrandommap; |
| 122 | unsigned int bs_unaligned; |
| 123 | unsigned int fsync_on_close; |
| 124 | |
Jens Axboe | 1e5324e | 2012-11-14 14:25:31 -0700 | [diff] [blame] | 125 | unsigned int random_distribution; |
Jens Axboe | b7f487c | 2013-04-10 19:50:32 +0200 | [diff] [blame^] | 126 | |
Jens Axboe | 1e5324e | 2012-11-14 14:25:31 -0700 | [diff] [blame] | 127 | fio_fp64_t zipf_theta; |
| 128 | fio_fp64_t pareto_h; |
| 129 | |
Jens Axboe | 49758e1 | 2012-12-03 14:37:23 +0100 | [diff] [blame] | 130 | unsigned int random_generator; |
| 131 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 132 | unsigned int hugepage_size; |
| 133 | unsigned int rw_min_bs; |
| 134 | unsigned int thinktime; |
| 135 | unsigned int thinktime_spin; |
| 136 | unsigned int thinktime_blocks; |
| 137 | unsigned int fsync_blocks; |
| 138 | unsigned int fdatasync_blocks; |
| 139 | unsigned int barrier_blocks; |
| 140 | unsigned long long start_delay; |
| 141 | unsigned long long timeout; |
| 142 | unsigned long long ramp_time; |
| 143 | unsigned int overwrite; |
| 144 | unsigned int bw_avg_time; |
| 145 | unsigned int iops_avg_time; |
| 146 | unsigned int loops; |
| 147 | unsigned long long zone_range; |
| 148 | unsigned long long zone_size; |
| 149 | unsigned long long zone_skip; |
Jens Axboe | 1b79a07 | 2012-03-28 20:50:15 +0200 | [diff] [blame] | 150 | unsigned long long lockmem; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 151 | enum fio_memtype mem_type; |
| 152 | unsigned int mem_align; |
| 153 | |
Jens Axboe | 8062f52 | 2013-04-10 15:01:42 +0200 | [diff] [blame] | 154 | unsigned int max_latency; |
Jens Axboe | 1e5324e | 2012-11-14 14:25:31 -0700 | [diff] [blame] | 155 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 156 | unsigned int stonewall; |
| 157 | unsigned int new_group; |
| 158 | unsigned int numjobs; |
| 159 | os_cpu_mask_t cpumask; |
| 160 | unsigned int cpumask_set; |
| 161 | os_cpu_mask_t verify_cpumask; |
| 162 | unsigned int verify_cpumask_set; |
Jens Axboe | 836fcc0 | 2013-01-24 09:08:45 -0700 | [diff] [blame] | 163 | #ifdef CONFIG_LIBNUMA |
Jens Axboe | 1e5324e | 2012-11-14 14:25:31 -0700 | [diff] [blame] | 164 | struct bitmask *numa_cpunodesmask; |
| 165 | unsigned int numa_cpumask_set; |
| 166 | unsigned short numa_mem_mode; |
| 167 | unsigned int numa_mem_prefer_node; |
| 168 | struct bitmask *numa_memnodesmask; |
| 169 | unsigned int numa_memmask_set; |
| 170 | #endif |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 171 | unsigned int iolog; |
| 172 | unsigned int rwmixcycle; |
| 173 | unsigned int rwmix[2]; |
| 174 | unsigned int nice; |
Jens Axboe | 28727df | 2012-03-29 08:33:15 +0200 | [diff] [blame] | 175 | unsigned int ioprio; |
| 176 | unsigned int ioprio_class; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 177 | unsigned int file_service_type; |
| 178 | unsigned int group_reporting; |
| 179 | unsigned int fadvise_hint; |
| 180 | enum fio_fallocate_mode fallocate_mode; |
| 181 | unsigned int zero_buffers; |
| 182 | unsigned int refill_buffers; |
| 183 | unsigned int scramble_buffers; |
Jens Axboe | e476994 | 2012-03-13 14:01:11 +0100 | [diff] [blame] | 184 | unsigned int compress_percentage; |
| 185 | unsigned int compress_chunk; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 186 | unsigned int time_based; |
| 187 | unsigned int disable_lat; |
| 188 | unsigned int disable_clat; |
| 189 | unsigned int disable_slat; |
| 190 | unsigned int disable_bw; |
Jens Axboe | 95820b6 | 2013-01-31 13:23:40 +0100 | [diff] [blame] | 191 | unsigned int unified_rw_rep; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 192 | unsigned int gtod_reduce; |
| 193 | unsigned int gtod_cpu; |
| 194 | unsigned int gtod_offload; |
| 195 | enum fio_cs clocksource; |
| 196 | unsigned int no_stall; |
| 197 | unsigned int trim_percentage; |
| 198 | unsigned int trim_batch; |
| 199 | unsigned int trim_zero; |
| 200 | unsigned long long trim_backlog; |
| 201 | unsigned int clat_percentiles; |
Jens Axboe | 9db01ef | 2013-02-07 15:45:39 +0100 | [diff] [blame] | 202 | unsigned int percentile_precision; /* digits after decimal for percentiles */ |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 203 | fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN]; |
| 204 | |
| 205 | char *read_iolog_file; |
| 206 | char *write_iolog_file; |
| 207 | char *bw_log_file; |
| 208 | char *lat_log_file; |
| 209 | char *iops_log_file; |
| 210 | char *replay_redirect; |
| 211 | |
| 212 | /* |
| 213 | * Pre-run and post-run shell |
| 214 | */ |
| 215 | char *exec_prerun; |
| 216 | char *exec_postrun; |
| 217 | |
Jens Axboe | d79db12 | 2012-09-24 08:51:24 +0200 | [diff] [blame] | 218 | unsigned int rate[DDIR_RWDIR_CNT]; |
| 219 | unsigned int ratemin[DDIR_RWDIR_CNT]; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 220 | unsigned int ratecycle; |
Jens Axboe | d79db12 | 2012-09-24 08:51:24 +0200 | [diff] [blame] | 221 | unsigned int rate_iops[DDIR_RWDIR_CNT]; |
| 222 | unsigned int rate_iops_min[DDIR_RWDIR_CNT]; |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 223 | |
| 224 | char *ioscheduler; |
| 225 | |
| 226 | /* |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 227 | * I/O Error handling |
| 228 | */ |
| 229 | enum error_type continue_on_error; |
| 230 | |
| 231 | /* |
| 232 | * Benchmark profile type |
| 233 | */ |
| 234 | char *profile; |
| 235 | |
| 236 | /* |
| 237 | * blkio cgroup support |
| 238 | */ |
| 239 | char *cgroup; |
| 240 | unsigned int cgroup_weight; |
| 241 | unsigned int cgroup_nodelete; |
| 242 | |
| 243 | unsigned int uid; |
| 244 | unsigned int gid; |
| 245 | |
| 246 | int flow_id; |
| 247 | int flow; |
| 248 | int flow_watermark; |
| 249 | unsigned int flow_sleep; |
| 250 | |
Jens Axboe | 6a4cf74 | 2012-03-16 14:02:54 +0100 | [diff] [blame] | 251 | unsigned long long offset_increment; |
| 252 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 253 | unsigned int sync_file_range; |
| 254 | }; |
| 255 | |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 256 | #define FIO_TOP_STR_MAX 256 |
| 257 | |
| 258 | struct thread_options_pack { |
| 259 | uint8_t description[FIO_TOP_STR_MAX]; |
| 260 | uint8_t name[FIO_TOP_STR_MAX]; |
| 261 | uint8_t directory[FIO_TOP_STR_MAX]; |
| 262 | uint8_t filename[FIO_TOP_STR_MAX]; |
Jens Axboe | 22f8045 | 2013-04-09 20:29:16 +0200 | [diff] [blame] | 263 | uint8_t filename_format[FIO_TOP_STR_MAX]; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 264 | uint8_t opendir[FIO_TOP_STR_MAX]; |
| 265 | uint8_t ioengine[FIO_TOP_STR_MAX]; |
Jens Axboe | 83ea422 | 2012-03-28 14:01:46 +0200 | [diff] [blame] | 266 | uint8_t mmapfile[FIO_TOP_STR_MAX]; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 267 | uint32_t td_ddir; |
| 268 | uint32_t rw_seq; |
| 269 | uint32_t kb_base; |
Jens Axboe | 22f8045 | 2013-04-09 20:29:16 +0200 | [diff] [blame] | 270 | uint32_t unit_base; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 271 | uint32_t ddir_seq_nr; |
| 272 | uint64_t ddir_seq_add; |
| 273 | uint32_t iodepth; |
| 274 | uint32_t iodepth_low; |
| 275 | uint32_t iodepth_batch; |
| 276 | uint32_t iodepth_batch_complete; |
| 277 | |
| 278 | uint64_t size; |
| 279 | uint32_t size_percent; |
| 280 | uint32_t fill_device; |
| 281 | uint64_t file_size_low; |
| 282 | uint64_t file_size_high; |
| 283 | uint64_t start_offset; |
| 284 | |
Jens Axboe | b999b3c | 2012-09-24 09:39:49 +0200 | [diff] [blame] | 285 | uint32_t bs[DDIR_RWDIR_CNT]; |
| 286 | uint32_t ba[DDIR_RWDIR_CNT]; |
| 287 | uint32_t min_bs[DDIR_RWDIR_CNT]; |
| 288 | uint32_t max_bs[DDIR_RWDIR_CNT]; |
| 289 | struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX]; |
| 290 | uint32_t bssplit_nr[DDIR_RWDIR_CNT]; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 291 | |
Jens Axboe | e65a950 | 2012-09-24 09:24:04 +0200 | [diff] [blame] | 292 | uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX]; |
| 293 | uint32_t ignore_error_nr[ERROR_TYPE_CNT]; |
| 294 | uint32_t error_dump; |
| 295 | |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 296 | uint32_t nr_files; |
| 297 | uint32_t open_files; |
| 298 | uint32_t file_lock_mode; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 299 | |
| 300 | uint32_t odirect; |
| 301 | uint32_t invalidate_cache; |
| 302 | uint32_t create_serialize; |
| 303 | uint32_t create_fsync; |
| 304 | uint32_t create_on_open; |
Jens Axboe | fb390e2 | 2012-05-07 09:54:41 +0200 | [diff] [blame] | 305 | uint32_t create_only; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 306 | uint32_t end_fsync; |
| 307 | uint32_t pre_read; |
| 308 | uint32_t sync_io; |
| 309 | uint32_t verify; |
| 310 | uint32_t do_verify; |
| 311 | uint32_t verifysort; |
Jens Axboe | 836fcc0 | 2013-01-24 09:08:45 -0700 | [diff] [blame] | 312 | uint32_t verifysort_nr; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 313 | uint32_t verify_interval; |
| 314 | uint32_t verify_offset; |
| 315 | uint8_t verify_pattern[MAX_PATTERN_SIZE]; |
| 316 | uint32_t verify_pattern_bytes; |
| 317 | uint32_t verify_fatal; |
| 318 | uint32_t verify_dump; |
| 319 | uint32_t verify_async; |
| 320 | uint64_t verify_backlog; |
| 321 | uint32_t verify_batch; |
Jens Axboe | 836fcc0 | 2013-01-24 09:08:45 -0700 | [diff] [blame] | 322 | uint32_t experimental_verify; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 323 | uint32_t use_thread; |
| 324 | uint32_t unlink; |
| 325 | uint32_t do_disk_util; |
| 326 | uint32_t override_sync; |
| 327 | uint32_t rand_repeatable; |
| 328 | uint32_t use_os_rand; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 329 | uint32_t log_avg_msec; |
| 330 | uint32_t norandommap; |
| 331 | uint32_t softrandommap; |
| 332 | uint32_t bs_unaligned; |
| 333 | uint32_t fsync_on_close; |
| 334 | |
Jens Axboe | 1e5324e | 2012-11-14 14:25:31 -0700 | [diff] [blame] | 335 | uint32_t random_distribution; |
| 336 | fio_fp64_t zipf_theta; |
| 337 | fio_fp64_t pareto_h; |
| 338 | |
Jens Axboe | 49758e1 | 2012-12-03 14:37:23 +0100 | [diff] [blame] | 339 | uint32_t random_generator; |
| 340 | |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 341 | uint32_t hugepage_size; |
| 342 | uint32_t rw_min_bs; |
| 343 | uint32_t thinktime; |
| 344 | uint32_t thinktime_spin; |
| 345 | uint32_t thinktime_blocks; |
| 346 | uint32_t fsync_blocks; |
| 347 | uint32_t fdatasync_blocks; |
| 348 | uint32_t barrier_blocks; |
| 349 | uint64_t start_delay; |
| 350 | uint64_t timeout; |
| 351 | uint64_t ramp_time; |
| 352 | uint32_t overwrite; |
| 353 | uint32_t bw_avg_time; |
| 354 | uint32_t iops_avg_time; |
| 355 | uint32_t loops; |
| 356 | uint64_t zone_range; |
| 357 | uint64_t zone_size; |
| 358 | uint64_t zone_skip; |
Jens Axboe | ae278f9 | 2012-03-28 20:52:55 +0200 | [diff] [blame] | 359 | uint64_t lockmem; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 360 | uint32_t mem_type; |
| 361 | uint32_t mem_align; |
| 362 | |
Jens Axboe | 1e5324e | 2012-11-14 14:25:31 -0700 | [diff] [blame] | 363 | uint32_t max_latency; |
| 364 | |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 365 | uint32_t stonewall; |
| 366 | uint32_t new_group; |
| 367 | uint32_t numjobs; |
| 368 | uint8_t cpumask[FIO_TOP_STR_MAX]; |
| 369 | uint32_t cpumask_set; |
| 370 | uint8_t verify_cpumask[FIO_TOP_STR_MAX]; |
| 371 | uint32_t verify_cpumask_set; |
| 372 | uint32_t iolog; |
| 373 | uint32_t rwmixcycle; |
| 374 | uint32_t rwmix[2]; |
| 375 | uint32_t nice; |
Jens Axboe | 28727df | 2012-03-29 08:33:15 +0200 | [diff] [blame] | 376 | uint32_t ioprio; |
| 377 | uint32_t ioprio_class; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 378 | uint32_t file_service_type; |
| 379 | uint32_t group_reporting; |
| 380 | uint32_t fadvise_hint; |
| 381 | uint32_t fallocate_mode; |
| 382 | uint32_t zero_buffers; |
| 383 | uint32_t refill_buffers; |
| 384 | uint32_t scramble_buffers; |
Jens Axboe | e476994 | 2012-03-13 14:01:11 +0100 | [diff] [blame] | 385 | unsigned int compress_percentage; |
| 386 | unsigned int compress_chunk; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 387 | uint32_t time_based; |
| 388 | uint32_t disable_lat; |
| 389 | uint32_t disable_clat; |
| 390 | uint32_t disable_slat; |
| 391 | uint32_t disable_bw; |
Jens Axboe | 95820b6 | 2013-01-31 13:23:40 +0100 | [diff] [blame] | 392 | uint32_t unified_rw_rep; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 393 | uint32_t gtod_reduce; |
| 394 | uint32_t gtod_cpu; |
| 395 | uint32_t gtod_offload; |
| 396 | uint32_t clocksource; |
| 397 | uint32_t no_stall; |
| 398 | uint32_t trim_percentage; |
| 399 | uint32_t trim_batch; |
| 400 | uint32_t trim_zero; |
| 401 | uint64_t trim_backlog; |
| 402 | uint32_t clat_percentiles; |
Jens Axboe | 9db01ef | 2013-02-07 15:45:39 +0100 | [diff] [blame] | 403 | uint32_t percentile_precision; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 404 | fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN]; |
| 405 | |
| 406 | uint8_t read_iolog_file[FIO_TOP_STR_MAX]; |
| 407 | uint8_t write_iolog_file[FIO_TOP_STR_MAX]; |
| 408 | uint8_t bw_log_file[FIO_TOP_STR_MAX]; |
| 409 | uint8_t lat_log_file[FIO_TOP_STR_MAX]; |
| 410 | uint8_t iops_log_file[FIO_TOP_STR_MAX]; |
| 411 | uint8_t replay_redirect[FIO_TOP_STR_MAX]; |
| 412 | |
| 413 | /* |
| 414 | * Pre-run and post-run shell |
| 415 | */ |
| 416 | uint8_t exec_prerun[FIO_TOP_STR_MAX]; |
| 417 | uint8_t exec_postrun[FIO_TOP_STR_MAX]; |
| 418 | |
Jens Axboe | b999b3c | 2012-09-24 09:39:49 +0200 | [diff] [blame] | 419 | uint32_t rate[DDIR_RWDIR_CNT]; |
| 420 | uint32_t ratemin[DDIR_RWDIR_CNT]; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 421 | uint32_t ratecycle; |
Jens Axboe | b999b3c | 2012-09-24 09:39:49 +0200 | [diff] [blame] | 422 | uint32_t rate_iops[DDIR_RWDIR_CNT]; |
| 423 | uint32_t rate_iops_min[DDIR_RWDIR_CNT]; |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 424 | |
| 425 | uint8_t ioscheduler[FIO_TOP_STR_MAX]; |
| 426 | |
| 427 | /* |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 428 | * I/O Error handling |
| 429 | */ |
| 430 | uint32_t continue_on_error; |
| 431 | |
| 432 | /* |
| 433 | * Benchmark profile type |
| 434 | */ |
| 435 | uint8_t profile[FIO_TOP_STR_MAX]; |
| 436 | |
| 437 | /* |
| 438 | * blkio cgroup support |
| 439 | */ |
| 440 | uint8_t cgroup[FIO_TOP_STR_MAX]; |
| 441 | uint32_t cgroup_weight; |
| 442 | uint32_t cgroup_nodelete; |
| 443 | |
| 444 | uint32_t uid; |
| 445 | uint32_t gid; |
| 446 | |
| 447 | int32_t flow_id; |
| 448 | int32_t flow; |
| 449 | int32_t flow_watermark; |
| 450 | uint32_t flow_sleep; |
| 451 | |
Jens Axboe | 6a4cf74 | 2012-03-16 14:02:54 +0100 | [diff] [blame] | 452 | uint64_t offset_increment; |
| 453 | |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 454 | uint32_t sync_file_range; |
| 455 | } __attribute__((packed)); |
| 456 | |
| 457 | extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top); |
| 458 | extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *); |
Jens Axboe | 5116779 | 2012-03-08 21:34:18 +0100 | [diff] [blame] | 459 | extern int fio_test_cconv(struct thread_options *); |
Jens Axboe | 588b7f0 | 2012-03-19 20:37:41 +0100 | [diff] [blame] | 460 | extern void options_default_fill(struct thread_options *o); |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 461 | |
Jens Axboe | ec41265 | 2012-03-08 12:37:31 +0100 | [diff] [blame] | 462 | #endif |