Crash Consistency in Encrypted Non-Volatile Main Memory Systems

被引:62
作者
Liu, Sihang [1 ]
Kolli, Aasheesh [2 ,3 ]
Ren, Jinglei [4 ]
Khan, Samira [1 ]
机构
[1] Univ Virginia, Charlottesville, VA 22903 USA
[2] VMware Res, Palo Alto, CA USA
[3] Penn State Univ, University Pk, PA 16802 USA
[4] Microsoft Res, Redmond, WA USA
来源
2018 24TH IEEE INTERNATIONAL SYMPOSIUM ON HIGH PERFORMANCE COMPUTER ARCHITECTURE (HPCA) | 2018年
基金
美国国家科学基金会;
关键词
D O I
10.1109/HPCA.2018.00035
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Non-Volatile Main Memory (NVMM) systems provide high performance by directly manipulating persistent data in memory but require crash consistency support to recover data in a consistent slate in case of a power failure or system crash. In this work, we focus on the interplay between the crash consistency mechanisms and memory encryption. Memory encryption is necessary for these systems to protect data against the attackers with physical access to the persistent main memory. As decrypting data at every memory read access can significantly degrade the performance, prior works propose to use a memory encryption technique, counter-mode encryption, that reduces the decryption overhead by performing a memory read access in parallel with the decryption process using a counter associated with each cache line. Therefore, a pair of data and counter value is needed to correctly decrypt data after a system crash. We demonstrate that counter-mode encryption does not readily extend to crash consistent NVMM systems as the system will fail to recover data in a consistent state if the encrypted data and associated counter are not written hack to memory atomically, a requirement we refer to as counter-atomicity. We show that naively enforcing counter-atomicity for all NVMM writes can serialize memory accesses and results in a significant performance degradation. In order to improve the performance, we make an observation that not all writes to NVMM need to be counter-atomic. The crash consistency mechanisms rely on versioning to keep one consistent copy of data intact while manipulating another version directly in memory As the recovery process only relies on the unmodified consistent version, it is not necessary to strictly enforce counter-atomicity for the writes that do not affect data recovery. Based on this insight, we propose selective counter atomicity that allows reordering of writes to data and associated counters when the writes to persistent memory do not alter the recoverable consistent state. We propose efficient software and hardware support to enforce selective counter atomicity. Our evaluation demonstrates that in a 1/2/4/8 core system, selective counter-atomicity improves performance by 6/11/22/40% compared to a system that enforces counter atomicity for all NVMM writes. The performance of our selective counter-atomicity design comes within 5% of an ideal NVMM system that provides crash consistency of encrypted data at no cost.
引用
收藏
页码:310 / 323
页数:14
相关论文
共 64 条
[1]  
Alameldeen A.R., 2004, ISCA
[2]  
[Anonymous], ASPLOS
[3]  
[Anonymous], 2014, P 9 EUR C COMP SYST, DOI DOI 10.1145/2592798.2592814
[4]  
[Anonymous], 2009, ISCA
[5]  
[Anonymous], 2017, ASPLOS 2017
[6]  
[Anonymous], HOMILIA HEXAEMERON
[7]  
[Anonymous], ASPLOS
[8]  
[Anonymous], 2013, ISPASS
[9]  
[Anonymous], 2015, MICRO
[10]  
[Anonymous], 2011, ASPLOS