Back to search

University of Toronto

Protecting Persistent Data with Run-time Invariant Checking

Abstract

dc:description.abstract

This thesis describes how we use run-time invariant checking to protect data from corruption originating at high levels in the storage stack. In concert with existing techniques for protection against corruption in the lower levels of the storage stack, we make guarantees of data structure consistency in file systems and other storage applications. We address the when, what, and how of run-time invariant checking. The fundamental requirement is that the application is crash consistent, ensuring there is a suitable point in logical time when it is safe to check the invariants. The consistency point provides us a point in time when we can check invariants, and an opportunity to check the invariants before the corrupt writes take effect. Every file system, database, or other storage application has its own data structures, and hence its own consistency invariants. We emphasize checking incrementally because of the scale of data in persistent storage. Our systems check updates for consistency using differential invariants, which are derived from global invariants. Differential invariants compare the old and new states to determine precisely what needs to be checked so the global invariants are not violated by the update. They rely on the consistency of the previous state, so our checking relies on storage systems using other mechanisms to ensure checked data is preserved. In addition to consistency invariants, we also check the atomicity and durability invariants of file system crash consistency mechanisms. Our evaluation shows the overheads of incremental checking are reasonable. For the Ext3 and Btrfs file systems, the performance overhead of runtime consistency checking is largely masked by device latency. For persistent memory, we see a more substantial overhead, from 10%-50% in our Redis benchmarks. These numbers are also significantly affected by the choice of persistent memory framework adopted, and this is an opportunity for future improvement as more efficient frameworks are developed.

Degree

thesis:*
Department dc:contributor.department
Computer Science
Year dc:date.issued
2019

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Fryer, Daniel
Advisors dc:contributor.advisor
  • Goel, Ashvin
  • Demke Brown, Angela

Subjects

dc:subject × 6

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1807/95848

Chain of custody

source
Harvested from
University of Toronto
Base URL
utoronto.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Fryer, Daniel. Protecting Persistent Data with Run-time Invariant Checking. 2019. https://hdl.handle.net/1807/95848