libvmmalloc

  • 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.