## Lightweight Write Detection and Checkpointing for Fine-Grained Persistence

#### Abstract

Many systems must dynamically track writes to cached data, for the purpose of reconciling those updates with respect to the permanent or global state of the data. For example, distributed systems employ coherency protocols to ensure a consistent view of shared data. Similarly, database systems log updates both for concurrency control and to ensure the resilience of those updates in the face of system failures. Here, we measure and compare the absolute performance of several alternative mechanisms for the lightweight detection of writes to cached data in a persistent system, and the relative overhead to log those writes to stable storage in the form of a checkpoint. A checkpoint defines a consistent state to which the system will be restored in the event of any subsequent failure. The efficient detection and logging of updates is critical to the performance of persistent systems that embody a fine-grained data model, since per-object overheads are typically very low. Our results reveal a wide range of performance for the alternatives, indicating that the right choice of mechanism is important. They also demonstrate that software write detection mechanisms can significantly outperform approaches that rely solely on the hardware and operating system.

@techreport{Hosking+1995TR,
author = {Hosking, Antony L. and Moss, J. Eliot B.},
title = {Lightweight Write Detection and Checkpointing for
Fine-Grained Persistence},
institution = {Purdue University},
year = {1995},
type = {Department of Computer Science Technical Report},
number = {95-084},
month = {December},
url = {http://docs.lib.purdue.edu/cstech/1256},
gscholar = {7}
}