1 #ifndef FIO_THREAD_OPTIONS_H
2 #define FIO_THREAD_OPTIONS_H
10 * What type of allocation to use for io buffers
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 */
21 * What type of errors to continue on when continue_on_error is used
25 ERROR_TYPE_READ = 1 << 0,
26 ERROR_TYPE_WRITE = 1 << 1,
27 ERROR_TYPE_VERIFY = 1 << 2,
28 ERROR_TYPE_ANY = 0xffff,
36 struct thread_options {
47 unsigned int ddir_seq_nr;
50 unsigned int iodepth_low;
51 unsigned int iodepth_batch;
52 unsigned int iodepth_batch_complete;
54 unsigned long long size;
55 unsigned int size_percent;
56 unsigned int fill_device;
57 unsigned long long file_size_low;
58 unsigned long long file_size_high;
59 unsigned long long start_offset;
63 unsigned int min_bs[2];
64 unsigned int max_bs[2];
65 struct bssplit *bssplit[2];
66 unsigned int bssplit_nr[2];
68 unsigned int nr_files;
69 unsigned int open_files;
70 enum file_lock_mode file_lock_mode;
71 unsigned int lockfile_batch;
74 unsigned int invalidate_cache;
75 unsigned int create_serialize;
76 unsigned int create_fsync;
77 unsigned int create_on_open;
78 unsigned int end_fsync;
79 unsigned int pre_read;
82 unsigned int do_verify;
83 unsigned int verifysort;
84 unsigned int verify_interval;
85 unsigned int verify_offset;
86 char verify_pattern[MAX_PATTERN_SIZE];
87 unsigned int verify_pattern_bytes;
88 unsigned int verify_fatal;
89 unsigned int verify_dump;
90 unsigned int verify_async;
91 unsigned long long verify_backlog;
92 unsigned int verify_batch;
93 unsigned int use_thread;
95 unsigned int do_disk_util;
96 unsigned int override_sync;
97 unsigned int rand_repeatable;
98 unsigned int use_os_rand;
99 unsigned int write_lat_log;
100 unsigned int write_bw_log;
101 unsigned int write_iops_log;
102 unsigned int log_avg_msec;
103 unsigned int norandommap;
104 unsigned int softrandommap;
105 unsigned int bs_unaligned;
106 unsigned int fsync_on_close;
108 unsigned int hugepage_size;
109 unsigned int rw_min_bs;
110 unsigned int thinktime;
111 unsigned int thinktime_spin;
112 unsigned int thinktime_blocks;
113 unsigned int fsync_blocks;
114 unsigned int fdatasync_blocks;
115 unsigned int barrier_blocks;
116 unsigned long long start_delay;
117 unsigned long long timeout;
118 unsigned long long ramp_time;
119 unsigned int overwrite;
120 unsigned int bw_avg_time;
121 unsigned int iops_avg_time;
123 unsigned long long zone_range;
124 unsigned long long zone_size;
125 unsigned long long zone_skip;
126 enum fio_memtype mem_type;
127 unsigned int mem_align;
129 unsigned int stonewall;
130 unsigned int new_group;
131 unsigned int numjobs;
132 os_cpu_mask_t cpumask;
133 unsigned int cpumask_set;
134 os_cpu_mask_t verify_cpumask;
135 unsigned int verify_cpumask_set;
137 unsigned int rwmixcycle;
138 unsigned int rwmix[2];
140 unsigned int file_service_type;
141 unsigned int group_reporting;
142 unsigned int fadvise_hint;
143 enum fio_fallocate_mode fallocate_mode;
144 unsigned int zero_buffers;
145 unsigned int refill_buffers;
146 unsigned int scramble_buffers;
147 unsigned int time_based;
148 unsigned int disable_lat;
149 unsigned int disable_clat;
150 unsigned int disable_slat;
151 unsigned int disable_bw;
152 unsigned int gtod_reduce;
153 unsigned int gtod_cpu;
154 unsigned int gtod_offload;
155 enum fio_cs clocksource;
156 unsigned int no_stall;
157 unsigned int trim_percentage;
158 unsigned int trim_batch;
159 unsigned int trim_zero;
160 unsigned long long trim_backlog;
161 unsigned int clat_percentiles;
162 unsigned int overwrite_plist;
163 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
165 char *read_iolog_file;
166 char *write_iolog_file;
170 char *replay_redirect;
173 * Pre-run and post-run shell
178 unsigned int rate[2];
179 unsigned int ratemin[2];
180 unsigned int ratecycle;
181 unsigned int rate_iops[2];
182 unsigned int rate_iops_min[2];
187 * CPU "io" cycle burner
189 unsigned int cpuload;
190 unsigned int cpucycle;
195 enum error_type continue_on_error;
198 * Benchmark profile type
203 * blkio cgroup support
206 unsigned int cgroup_weight;
207 unsigned int cgroup_nodelete;
215 unsigned int flow_sleep;
217 unsigned int sync_file_range;