summaryrefslogtreecommitdiff
path: root/thread_options.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-07-15 09:54:03 -0600
committerJens Axboe <axboe@kernel.dk>2021-07-15 09:54:03 -0600
commitae5c7cdd710dfa97705d965dcf001a96504e5f31 (patch)
treeaf6159f11a6d31c1373884b83878e822a4f286b4 /thread_options.h
parentaaedde68bfb2d15c3a444df496ba26ac0956445c (diff)
parent0d71aa983a4dce75a088b3a4831d5b217df066fb (diff)
downloadfio-ae5c7cdd710dfa97705d965dcf001a96504e5f31.tar.gz
fio-ae5c7cdd710dfa97705d965dcf001a96504e5f31.tar.bz2
Merge branch 'dedupe_workset' of https://github.com/bardavid/fio
* 'dedupe_workset' of https://github.com/bardavid/fio: dedupe: allow to generate dedupe buffers from working set
Diffstat (limited to 'thread_options.h')
-rw-r--r--thread_options.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/thread_options.h b/thread_options.h
index 05c2d138..4b4ecfe1 100644
--- a/thread_options.h
+++ b/thread_options.h
@@ -31,6 +31,14 @@ enum fio_memtype {
MEM_CUDA_MALLOC,/* use GPU memory */
};
+/*
+ * What mode to use for deduped data generation
+ */
+enum dedupe_mode {
+ DEDUPE_MODE_REPEAT = 0,
+ DEDUPE_MODE_WORKING_SET = 1,
+};
+
#define ERROR_STR_MAX 128
#define BSSPLIT_MAX 64
@@ -243,6 +251,8 @@ struct thread_options {
unsigned int compress_percentage;
unsigned int compress_chunk;
unsigned int dedupe_percentage;
+ unsigned int dedupe_mode;
+ unsigned int dedupe_working_set_percentage;
unsigned int time_based;
unsigned int disable_lat;
unsigned int disable_clat;
@@ -549,6 +559,8 @@ struct thread_options_pack {
uint32_t compress_percentage;
uint32_t compress_chunk;
uint32_t dedupe_percentage;
+ uint32_t dedupe_mode;
+ uint32_t dedupe_working_set_percentage;
uint32_t time_based;
uint32_t disable_lat;
uint32_t disable_clat;