Wire up pmemblk
authorJens Axboe <axboe@fb.com>
Fri, 6 May 2016 20:01:26 +0000 (14:01 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 20:01:26 +0000 (14:01 -0600)
Add it to our options, and to the documentation.

Signed-off-by: Jens Axboe <axboe@fb.com>
HOWTO
fio.1
options.c

diff --git a/HOWTO b/HOWTO
index 1f523d384ad85f64b38889aa364a4b0f150fec66..6952c84e84b141fb81b6c649ec0fb054d8bcc248 100644 (file)
--- a/HOWTO
+++ b/HOWTO
@@ -798,6 +798,9 @@ ioengine=str        Defines how the job issues io to the file. The following
                                overwriting. The writetrim mode works well
                                for this constraint.
 
+                       pmemblk Read and write through the NVML libpmemblk
+                               interface.
+
                        external Prefix to specify loading an external
                                IO engine object file. Append the engine
                                filename, eg ioengine=external:/tmp/foo.o
diff --git a/fio.1 b/fio.1
index 73fdee643af5ec3904064f1edf1015508eaba392..48a3e96edce9b4deb562497704e88950be17a27f 100644 (file)
--- a/fio.1
+++ b/fio.1
@@ -700,6 +700,9 @@ treated as erases. Depending on the underlying device type, the I/O may have
 to go in a certain pattern, e.g., on NAND, writing sequentially to erase blocks
 and discarding before overwriting. The writetrim mode works well for this
 constraint.
+.TP
+.B pmemblk
+Read and write through the NVML libpmemblk interface.
 .RE
 .P
 .RE
index b6c980eef834270db3d677c39391d9c9ec934b3d..980b7e5e48d23a8cad051c197ea00b8664235666 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1568,6 +1568,12 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
                          { .ival = "libhdfs",
                            .help = "Hadoop Distributed Filesystem (HDFS) engine"
                          },
+#endif
+#ifdef CONFIG_PMEMBLK
+                         { .ival = "pmemblk",
+                           .help = "NVML libpmemblk based IO engine",
+                         },
+
 #endif
                          { .ival = "external",
                            .help = "Load external engine (append name)",