Add buffer_compress_percentage
[fio.git] / options.c
index d777efc7efe8293320ed3ff2f529f31047af21a2..8034cd7dad755b58c5f546e64fb083be79ec49a4 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2013,6 +2013,14 @@ static struct fio_option options[FIO_MAX_OPTS] = {
                .help   = "Slightly scramble buffers on every IO submit",
                .def    = "1",
        },
                .help   = "Slightly scramble buffers on every IO submit",
                .def    = "1",
        },
+       {
+               .name   = "buffer_compress_percentage",
+               .type   = FIO_OPT_INT,
+               .off1   = td_var_offset(compress_percentage),
+               .maxval = 100,
+               .minval = 1,
+               .help   = "How compressible the buffer is (approximately)",
+       },
        {
                .name   = "clat_percentiles",
                .type   = FIO_OPT_BOOL,
        {
                .name   = "clat_percentiles",
                .type   = FIO_OPT_BOOL,