pkgsrc/benchmarks/blogbench/patches/patch-aa
xtraeme 8ed9453827 Add patches to support a new flag:
--directio or -o (if enabled uses O_DIRECT in open(2)).

Useful to test performance of Direct I/O implementation on NetBSD.

Bump PKGREVISION.
2006-10-15 12:53:04 +00:00

12 lines
396 B
Text

$NetBSD: patch-aa,v 1.1 2006/10/15 12:53:04 xtraeme Exp $
--- src/globals.h.orig 2006-10-15 13:01:57.000000000 +0200
+++ src/globals.h 2006-10-15 13:02:42.000000000 +0200
@@ -41,4 +41,7 @@
GLOBAL(unsigned int sleep_stats, DEFAULT_SLEEP_STATS);
GLOBAL(unsigned int nb_writers, DEFAULT_NB_WRITERS);
+/* O_DIRECT aka Direct I/O */
+GLOBAL(unsigned int do_directio, DEFAULT_DIRECTIO);
+
#endif