summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorRobert Elliott <elliott@hpe.com>2016-12-22 14:50:40 -0600
committerJens Axboe <axboe@fb.com>2017-01-02 18:19:49 -0700
commit2b9136a34158e891091488bbf5799558c2534639 (patch)
treee3e97fca0f10a4380869dc6e670ece193d10cf76 /profiles
parent5f5ad7afb8702eddd1c1e2f5466481f728c00e67 (diff)
Avoid using units in option defaults
Change option defaults and some generated option strings to specify the number of bytes without units, so they are immune to the interpretation of the units (e.g. is 1M interpreted as 1048576 or 1000000). Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/act.c6
-rw-r--r--profiles/tiobench.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/profiles/act.c b/profiles/act.c
index 3e9238b..58ae7af 100644
--- a/profiles/act.c
+++ b/profiles/act.c
@@ -144,7 +144,7 @@ static struct fio_option options[] = {
.type = FIO_OPT_INT,
.off1 = offsetof(struct act_options, write_size),
.help = "Size of large block ops (writes)",
- .def = "128k",
+ .def = "131072",
.category = FIO_OPT_C_PROFILE,
.group = FIO_OPT_G_ACT,
},
@@ -220,7 +220,7 @@ static int act_add_dev_prep(const char *dev)
return 1;
if (act_add_opt("filename=%s", dev))
return 1;
- if (act_add_opt("bs=1M"))
+ if (act_add_opt("bs=1048576"))
return 1;
if (act_add_opt("zero_buffers"))
return 1;
@@ -234,7 +234,7 @@ static int act_add_dev_prep(const char *dev)
return 1;
if (act_add_opt("filename=%s", dev))
return 1;
- if (act_add_opt("bs=4k"))
+ if (act_add_opt("bs=4096"))
return 1;
if (act_add_opt("ioengine=libaio"))
return 1;
diff --git a/profiles/tiobench.c b/profiles/tiobench.c
index 8af6f4e..17229b9 100644
--- a/profiles/tiobench.c
+++ b/profiles/tiobench.c
@@ -49,7 +49,7 @@ static struct fio_option options[] = {
.type = FIO_OPT_INT,
.off1 = offsetof(struct tiobench_options, bs),
.help = "Block size in bytes",
- .def = "4k",
+ .def = "4096",
.category = FIO_OPT_C_PROFILE,
.group = FIO_OPT_G_TIOBENCH,
},