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