© The Author(s) 2020
S. ScargallProgramming Persistent Memoryhttps://doi.org/10.1007/978-1-4842-4932-1_6

6. libpmem: Low-Level Persistent Memory Support

Steve Scargall1 
(1)
Santa Clara, CA, USA
 

This chapter introduces libpmem, one of the smallest libraries in PMDK. This C library is very low level, dealing with things like CPU instructions related to persistent memory, optimal ways to copy data to persistence, and file mapping. Programmers who only want completely raw access to persistent memory, without libraries to provide allocators or transactions, will likely want to use libpmem as a basis for their development.

The code in libpmem that detects the available CPU instructions, for example, is a mundane boilerplate code that you do not want to ...

Get Programming Persistent Memory: A Comprehensive Guide for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.