A simple program which converts virtual addresses to physical addresses using the pagemap. You will need "sudo" to read the pagemap file.
$ make
$ sudo ./virtual_to_physical
Virtual address of a: 0x7ffd20829f30
Virtual address of b: 0x7ffd20829f34
Physical address of a: 1f01f9f30
Physical address of b: 1f01f9f34