libvmmalloc

The PMDK repository on GitHub is the ultimate source of information on PMDK from release 2.0! For all questions and to submit eventual issues please follow to that repository. The PMDK documentation collected here should be valid up to the 1.13.1 release but is maintained only on a best-effort basis and may not reflect the latest state of the art.
  • WINDOWS

The libvmmalloc library

libvmmalloc interposes the traditional malloc/free interfaces and, in a way fully transparent to the program, substitutes the system heap with a volatile memory pool built on memory-mapped file. Such memory pool works in a similar manner as the memory pools provided by libvmem, except that it is created and destroyed automatically for each process that uses libvmmalloc.

The typical usage of libvmmalloc is to load it before all other libraries by setting the environment variable LD_PRELOAD.

Man pages that contains a list of the Linux interfaces provided:

libvmmalloc Examples

More Detail Coming Soon

37
38
39
40
export VMMALLOC_POOL_SIZE=$((16*1024*1024))
export VMMALLOC_POOL_DIR="/pmem-fs"

LD_PRELOAD=libvmmalloc.so.1 grep "pmem" /proc/mounts

The contents of this web site and the associated GitHub repositories are BSD-licensed open source.