bonnie/bonnie-fix-o_direct.diff
David Sterba 517b063933 Accepting request 667059 from home:garloff:branches:benchmark
- bonnie-fix-o_direct.diff: Don't use O_DIRECT for character input,
  as newer kernels don't allow this.

- Update to bonnie-1.6:
  * Use 16 threads by default
  * Smaller 4k reads (seeking)
  * Larger blocks in intelligent read/write
  * Smaller I/O size for char in/out
  * More digits for formatting.

OBS-URL: https://build.opensuse.org/request/show/667059
OBS-URL: https://build.opensuse.org/package/show/benchmark/bonnie?expand=0&rev=6
2019-01-20 21:12:54 +00:00

28 lines
939 B
Diff

? bonnie2
Index: Bonnie.c
===================================================================
RCS file: /share/MD0_DATA/cvsroot/C/bonnie/Bonnie.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- Bonnie.c 17 Feb 2016 13:09:47 -0000 1.5
+++ Bonnie.c 23 Nov 2018 09:45:08 -0000 1.6
@@ -64,7 +64,7 @@
* or consequential damage, loss, costs or fees or expenses of any
* nature or kind.
*/
-/* $Id: Bonnie.c,v 1.5 2016/02/17 13:09:47 garloff Exp $ */
+/* $Id: Bonnie.c,v 1.6 2018/11/23 09:45:08 garloff Exp $ */
#include <unistd.h>
#include <stdio.h>
@@ -449,7 +449,7 @@ int main(
/* read them all back with getc() */
for(volcnt = 0; volcnt < volumes; volcnt++)
- newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, o_direct);
+ newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, 0/*+o_direct*/);
for (words = 0; words < 256; words++)
chars[words] = 0;
off_t gsz = size/8;