[PATCH] Add hugepage-size option
We default to 4MiB, but export the setting so it can be changed.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index 8a4a44d..f046b0c 100644
--- a/fio.c
+++ b/fio.c
@@ -510,7 +510,7 @@
td->orig_buffer_size = max_bs * max_units;
if (td->mem_type == MEM_SHMHUGE || td->mem_type == MEM_MMAPHUGE)
- td->orig_buffer_size = (td->orig_buffer_size + FIO_HUGE_PAGE - 1) & ~(FIO_HUGE_PAGE - 1);
+ td->orig_buffer_size = (td->orig_buffer_size + td->hugepage_size - 1) & ~(td->hugepage_size - 1);
else
td->orig_buffer_size += MASK;