{"id":{"repo_id":"toronto-retro","oai_identifier":"oai:utoronto.scholaris.ca:1807/95848"},"canonical_url":"https://search.ndltd.org/etd/toronto-retro/oai:utoronto.scholaris.ca:1807/95848","repository":{"repo_id":"toronto-retro","name":"University of Toronto","base_url":"https://utoronto.scholaris.ca/server/oai/request"},"display":{"title":"Protecting Persistent Data with Run-time Invariant Checking","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Fryer, Daniel"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Goel, Ashvin","Demke Brown, Angela"],"committee_chairs":[],"committee_members":[],"year":2019,"date_issued":"2019-06","date_published":"2019-06","updated_at":"2026-11-19T09:40:00Z","subjects":["atomicity","consistency","data corruption","integrity checking","operating systems","storage systems"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1807/95848","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1807/95848","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Atoronto-retro%3Aoai%3Autoronto.scholaris.ca%3A1807%2F95848","prefix":"oai_dc"},"source_record":{"url":"https://utoronto.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Autoronto.scholaris.ca%3A1807%2F95848","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Goel, Ashvin","Demke Brown, Angela"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science"]},{"key":"dc:creator","label":"Author","values":["Fryer, Daniel"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2019-06"]},{"key":"dc:date.accepted","label":"Dc Date Accepted","values":["2019-06"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2019-07-23T14:00:30Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2019-07-23T14:00:30Z"]},{"key":"dc:date.issued","label":"Date","values":["2019-06"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_date","label":"Thesis Degree Date","values":["2019-06"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["atomicity","consistency","data corruption","integrity checking","operating systems","storage systems"]},{"key":"dc:subject.classification","label":"Dc Subject Classification","values":["0984"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/1807/95848"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Ph.D."]},{"key":"dc:title","label":"Title","values":["Protecting Persistent Data with Run-time Invariant Checking"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Goel, Ashvin","Demke Brown, Angela"],"dc:contributor.department":["Computer Science"],"dc:creator":["Fryer, Daniel"],"dc:date":["2019-06"],"dc:date.accepted":["2019-06"],"dc:date.accessioned":["2019-07-23T14:00:30Z"],"dc:date.available":["2019-07-23T14:00:30Z"],"dc:date.issued":["2019-06"],"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."],"dc:description.degree":["Ph.D."],"dc:identifier.uri":["http://hdl.handle.net/1807/95848"],"dc:subject":["atomicity","consistency","data corruption","integrity checking","operating systems","storage systems"],"dc:subject.classification":["0984"],"dc:title":["Protecting Persistent Data with Run-time Invariant Checking"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_date":["2019-06"]},"updated_at":"2026-11-19T09:40:00Z"}