Caculate the physical address using fd and offset in persistent memory

30 views
Skip to first unread message

yufan jia

unread,
Sep 27, 2022, 11:31:12 PM9/27/22
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

unread,
Sep 28, 2022, 11:33:05 AM9/28/22
to pmem
Hi!,

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
Forward
0 new messages