fio: Add advise THP option to mmap engine
authorKeith Busch <keith.busch@intel.com>
Thu, 18 Apr 2019 16:25:56 +0000 (10:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Apr 2019 16:46:19 +0000 (10:46 -0600)
commitff547caad147b437f654881717fedc750c0c9b17
treedd2f7cf864ae34fe2add0990f80adfaa44484712
parent96416da576d47c01dd3c9481b03e969908b3ff74
fio: Add advise THP option to mmap engine

The Linux specific transparent hugepage memory advisory has potentially
significant implications for how the memory management behaves. If the
platform supports it, add a new mmap ioengine specific option that advises
HUGEPAGE on an mmap'ed range. The option availability is detected during
configure. If the option is set, fio can test THP when used with private
anonymous memory (i.e. mmap /dev/zero).

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure
engines/mmap.c
optgroup.h