[PATCH] Allow mem=mmap to also use a file backing
We have the stuff in place for huge page backed memory, so it's little
extra code to support io buffers inside mmap file backed memory.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/HOWTO b/HOWTO
index 6a7f58e..1918201 100644
--- a/HOWTO
+++ b/HOWTO
@@ -359,8 +359,10 @@
shmhuge Same as shm, but use huge pages as backing.
- mmap Use anonymous memory maps as the buffers.
- Allocated through mmap(2).
+ mmap Use mmap to allocate buffers. May either be
+ anonymous memory, or can be file backed if
+ a filename is given after the option. The
+ format is mem=mmap:/path/to/file.
mmaphuge Use a memory mapped huge file as the buffer
backing. Append filename after mmaphuge, ala