# Security, Performance and Energy Trade-offs of Hardware-assisted Memory   Protection Mechanisms

**Authors:** Christian G\"ottel, Rafael Pires, Isabelly Rocha, S\'ebastien Vaucher,, Pascal Felber, Marcelo Pasin, Valerio Schiavoni

arXiv: 1903.04203 · 2019-06-27

## TL;DR

This paper evaluates the performance, energy, and security trade-offs of AMD SEV and Intel SGX hardware-assisted memory protection mechanisms in a publish-subscribe system, highlighting practical limitations and insights for real-world deployment.

## Contribution

It provides a practical assessment of SEV and SGX in a real-world publish/subscribe system, revealing their performance and energy trade-offs and technical limitations.

## Key findings

- SEV and SGX introduce latency and throughput impacts.
- Technical limitations affect system scalability and efficiency.
- Trade-offs vary depending on workload and configuration.

## Abstract

The deployment of large-scale distributed systems, e.g., publish-subscribe platforms, that operate over sensitive data using the infrastructure of public cloud providers, is nowadays heavily hindered by the surging lack of trust toward the cloud operators. Although purely software-based solutions exist to protect the confidentiality of data and the processing itself, such as homomorphic encryption schemes, their performance is far from being practical under real-world workloads.   The performance trade-offs of two novel hardware-assisted memory protection mechanisms, namely AMD SEV and Intel SGX - currently available on the market to tackle this problem, are described in this practical experience.   Specifically, we implement and evaluate a publish/subscribe use-case and evaluate the impact of the memory protection mechanisms and the resulting performance. This paper reports on the experience gained while building this system, in particular when having to cope with the technical limitations imposed by SEV and SGX.   Several trade-offs that provide valuable insights in terms of latency, throughput, processing time and energy requirements are exhibited by means of micro- and macro-benchmarks.

---
Source: https://tomesphere.com/paper/1903.04203