Emulating pmem on linux machine

22 views
Skip to first unread message

Karthik Velayutham

unread,
Mar 2, 2020, 3:56:05 PM3/2/20
to pmem
Hi all,

I have a relatively simple question once again. I was wondering if anyone knew how to properly emulate persistent memory on a linux machine? 

Thanks!

Steve Scargall

unread,
Mar 2, 2020, 6:13:39 PM3/2/20
to pmem
Hi Karthik,

  1. Use the Kernel 'memmap' boot option
  2. Use KVM & QEMU

Note 1: The performance of emulated PMem devices back by DRAM or SSD will not match the performance of physical PMem devices. It is not recommended to rely on performance data when using emulated PMem.

Note 2: Data stored on emulated PMem backed by DRAM will lose all the data when the system is power-cycled. Do not store critical data on emulated persistent memory.


Either method should work fine for development and functionality testing purposes. I hope one of those options meets your requirements.


/Steve


Reply all
Reply to author
Forward
0 new messages