Book Description
Beginning and experienced programmers will use this comprehensive guide to persistent memory programming. You will understand how persistent memory brings together several new software/hardware requirements, and offers great promise for better performance and faster application startup times - a huge leap forward in byte-addressable capacity compared with current DRAM offerings.
This revolutionary new technology gives applications significant performance and capacity improvements over existing technologies. It requires a new way of thinking and developing, which makes this highly disruptive to the IT/computing industry. The full spectrum of industry sectors that will benefit from this technology include, but are not limited to, in-memory and traditional databases, AI, analytics, HPC, virtualization, and big data.
Programming Persistent Memory describes the technology and why it is exciting the industry. It covers the operating system and hardware requirements as well as how to create development environments using emulated or real persistent memory hardware. The book explains fundamental concepts; provides an introduction to persistent memory programming APIs for C, C++, JavaScript, and other languages; discusses RMDA with persistent memory; reviews security features; and presents many examples. Source code and examples that you can run on your own systems are included.
What You'll Learn: Understand what persistent memory is, what it does, and the value it brings to the industry; Become familiar with the operating system and hardware requirements to use persistent memory; Know the fundamentals of persistent memory programming: why it is different from current programming methods, and what developers need to keep in mind when programming for persistence; Look at persistent memory application development by example using the Persistent Memory Development Kit (PMDK); Design and optimize data structures for persistent memory; Study how real-world applications are modified to leverage persistent memory; Utilize the tools available for persistent memory programming, application performance profiling, and debugging.
This open book is licensed under a Creative Commons License (CC BY). You can download Programming Persistent Memory ebook for free in PDF format (9.2 MB).
Table of Contents
About the Author
xiii
About the Technical Reviewer
xv
About the Contributors
xvii
Acknowledgments
xxi
Preface
xxiii
Chapter 1
Introduction to Persistent Memory Programming
1
Chapter 2
Persistent Memory Architecture
11
Chapter 3
Operating System Support for Persistent Memory
31
Chapter 4
Fundamental Concepts of Persistent Memory Programming
55
Chapter 5
Introducing the Persistent Memory Development Kit
63
Chapter 6
libpmem: Low-Level Persistent Memory Support
73
Chapter 7
libpmemobj: A Native Transactional Object Store
81
Chapter 8
libpmemobj-cpp: The Adaptable Language - C++ and
Chapter 9
pmemkv: A Persistent In-ÂMemory Key-Value Store
141
Chapter 10
Volatile Use of Persistent Memory
155
Chapter 11
Designing Data Structures for Persistent Memory
187
Chapter 12
Debugging Persistent Memory Applications
207
Chapter 13
Enabling Persistence Using a Real-World Application
261
Chapter 14
Concurrency and Persistent Memory
277
Chapter 15
Profiling and Performance
295
Chapter 16
PMDK Internals: Important Algorithms and Data Structures
313
Chapter 17
Reliability, Availability, and Serviceability (RAS)
333
Chapter 18
Remote Persistent Memory
347
Chapter 19
Advanced Topics
373
Appendix A
How to Install NDCTL and DAXCTL on Linux
389
Appendix B
How to Install the Persistent Memory Development Kit (PMDK)
395
Appendix C
How to Install IPMCTL on Linux and Windows
403
Appendix D
Java for Persistent Memory
411
Appendix E
The Future of Remote Persistent Memory Replication
421
Glossary
425
Index
429