rpma: add support for File System DAX
authorWang, Long <long1.wang@intel.com>
Tue, 25 Jan 2022 09:18:14 +0000 (10:18 +0100)
committerLukasz Dorau <lukasz.dorau@intel.com>
Wed, 26 Jan 2022 14:28:05 +0000 (15:28 +0100)
commita6becc33deec29a715c3326c2286082cdc60a197
tree337ade67c6f2299dc78dad376bfb23253bdb128d
parente662bc9815de906e3498f4261ec5a28481872a18
rpma: add support for File System DAX

File System DAX is handled in a different way than Device DAX:

1) In case of File System DAX, each thread uses a separate file
from this file system and no offset is needed. In case of Device DAX,
each thread uses a separate offset within the same Device DAX.

2) File System DAX requires rpma_mr_advise(3)(ibv_advise_mr(3))
to be called for the registered memory to avoid page faults
and degraded performance.

Ref: https://github.com/axboe/fio/issues/1238

Signed-off-by: Wang, Long <long1.wang@intel.com>
engines/librpma_fio.c
engines/librpma_fio.h