Title
Regaining Lost Cycles with HotCalls: A Fast Interface for SGX Secure Enclaves.
Abstract
Intel's SGX secure execution technology allows running computations on secret data using untrusted servers. While recent work showed how to port applications and large-scale computations to run under SGX, the performance implications of using the technology remains an open question. We present the first comprehensive quantitative study to evaluate the performance of SGX. We show that straightforward use of SGX library primitives for calling functions add between 8,200 - 17,000 cycles overhead, compared to 150 cycles of a typical system call. We quantify the performance impact of these library calls and show that in applications with high system calls frequency, such as memcached, openVPN, and lighttpd, which all have high bandwidth network requirements, the performance degradation may be as high as 79%. We investigate the sources of this performance degradation by leveraging a new set of microbenchmarks for SGX-specific operations such as enclave entry-calls and out-calls, and encrypted memory I/O accesses. We leverage the insights we gain from these analyses to design a new SGX interface framework HotCalls. HotCalls are based on a synchronization spin-lock mechanism and provide a 13-27x speedup over the default interface. It can easily be integrated into existing code, making it a practical solution. Compared to a baseline SGX implementation of memcached, openVPN, and lighttpd - we show that using the new interface boosts the throughput by 2.6-3.7x, and reduces application latency by 62-74%.
Year
DOI
Venue
2017
10.1145/3079856.3080208
ISCA
Keywords
Field
DocType
SGX, Hardware security, Performance optimization
Hardware security module,Computer science,Cryptography,Parallel computing,Server,Encryption,Real-time computing,System call,Throughput,Operating system,Cloud computing,Speedup
Conference
ISBN
Citations 
PageRank 
978-1-5090-5901-0
14
0.62
References 
Authors
24
3
Name
Order
Citations
PageRank
Ofir Weisse1533.99
Valeria Bertacco2136586.93
Todd Austin3635.17