71
When to use it?
The pmemcheck utility is useful when developing an application using libpmemobj,
libpmemobj-cpp, or libpmem because it can help you find bugs that are common in
persistent applications. We suggest running error-checking tools early in the lifetime of a
codebase to avoid a pileup of hard-to-debug problems. The PMDK developers integrate
pmemcheck tests into the continuous integration pipeline of PMDK, and we recommend
the same for any persistent applications.
pmreorder
What is it?
The pmreorder utility helps detect data structure consistency problems of persistent
applications in the presence of failures. It does this by first recording and then replaying
the persistent state of the application while verifying consistency of the application’s
data structures at any possible intermediate state. Chapter 12 describes this utility in
detail.
When to use it?
Just like pmemcheck, pmreorder is an essential tool for finding hard-to-debug
persistent problems and should be integrated into the development and testing cycle of
any persistent memory application.
Summary
This chapter provides a brief listing of the libraries and tools available in PMDK
and when to use them. You now have enough information to know what is possible.
Throughout the rest of this book, you will learn how to create software using these
libraries and tools.
The next chapter introduces libpmem and describes how to use it to create simple
persistent applications.
Chapter 5 IntroduCIng the persIstent MeMory developMent KIt
Précédent

- 99/457

Suivant