projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Compression fixes
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 710e86730b7d82aa085eff13433dcc536df1f7f0..6c74ea6b75ddc403d0abc4b59d84de0b8c22a960 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-568,6
+568,15
@@
static int fixup_options(struct thread_data *td)
}
#endif
+ /*
+ * For fully compressible data, just zero them at init time.
+ * It's faster than repeatedly filling it.
+ */
+ if (td->o.compress_percentage == 100) {
+ td->o.zero_buffers = 1;
+ td->o.compress_percentage = 0;
+ }
+
return ret;
}