Regaining Lost Cycles with HotCalls
Authors:
Open Access
- 24 June 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 81-93
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%.Keywords
This publication has 19 references indexed in Scilit:
- ARM Virtualization: Performance and Architectural Implications2016
- Shielding Applications from an Untrusted Cloud with HavenACM Transactions on Computer Systems, 2015
- Controlled-Channel Attacks: Deterministic Side Channels for Untrusted Operating Systems2015
- VC3: Trustworthy Data Analytics in the Cloud Using SGX2015
- The Matter of Heartbleed2014
- Using innovative instructions to create trustworthy software solutions2013
- Lest we rememberCommunications of the ACM, 2009
- Overshadow2008
- SPEC CPU2006 benchmark descriptionsACM SIGARCH Computer Architecture News, 2006
- IntelŴVirtualization Technology: Hardware Support for Efficient Processor VirtualizationIntel Technology Journal, 2006