Caculate the physical address using fd and offset in persistent memory

Skip to first unread message

yufan jia

Sep 27, 2022, 11:31:12 PMSep 27
to pmem
Hi, just as the title says, I'm wondering if I can get the physical address via fd and offset when I use PM via file mapping. Thanks!

Eduardo Berrocal

Sep 28, 2022, 11:33:05 AMSep 28
to pmem

Not sure what you are trying to do but... PM is mapped by the kernel using virtual memory. What you can get is the virtual address, but that won't help you if your server restarts since PM could be mapped in another address range.
Reply all
Reply to author
0 new messages