path: root/thread_options.h
diff options
authorJens Axboe <>2013-07-25 10:20:45 -0600
committerJens Axboe <>2013-07-25 10:20:45 -0600
commitd94722713ebd7bbdbf8b284b7563f2dd17964e24 (patch)
treee965806f37c09f6abdbe5596a61f74f7ed20e958 /thread_options.h
parent954cd73a9a93102c24afa869fbe67ac38af6e416 (diff)
Add support for randomness of any IO direction
sequential_random used to be applied to all of the IO directions, with no possibility of having different settings for reads, writes, and trims. Now it supports setting each of them individually. By default, if you do: sequential_random=50 it will still apply to all three. If you do: sequential_random=10,90,80 you would get reads 10% random, writes 90% random, and trims 80% random. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'thread_options.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_options.h b/thread_options.h
index 45e22ae4..32677e2e 100644
--- a/thread_options.h
+++ b/thread_options.h
@@ -113,7 +113,7 @@ struct thread_options {
unsigned int random_generator;
- unsigned int perc_rand;
+ unsigned int perc_rand[DDIR_RWDIR_CNT];
unsigned int hugepage_size;
unsigned int rw_min_bs;
@@ -324,7 +324,7 @@ struct thread_options_pack {
uint32_t random_generator;
- uint32_t perc_rand;
+ uint32_t perc_rand[DDIR_RWDIR_CNT];
uint32_t hugepage_size;
uint32_t rw_min_bs;