Emulating pmem on Windows with PMEM_NO_FLUSH

24 views
Skip to first unread message

SeanW

unread,
Jul 5, 2019, 6:23:13 PM7/5/19
to pmem
Regarding this feature proposal in PMDK - https://github.com/pmem/issues/issues/1072 ... Would this help better emulate pmem on Windows? For example -

1. Create a RAM disk and open the pool file there, or open the pool file with FILE_ATTRIBUTE_TEMPORARY and FILE_FLAG_DELETE_ON_CLOSE flags. The second option keeps the file in memory unless the system experiences low memory
2. Enable PMEM_NO_FLUSH=2 as suggested in the issue above.

Alternatively, could setting PMEM_IS_PMEM and opening the file on a ramdisk or with the attributes above achieve something similar already?

Cheers
Sean


Reply all
Reply to author
Forward
0 new messages