Practical Memory Performance Attacks in Multi-Tenant Cloud Environments


Student Name: Amin Mamandipoor
Defense Date:
Location: Eaton Hall, Room 2001B
Chair: Heechul Yun

Esam El-Araby

Tamzidul Hoque

Prasad Kulkarni

Elaina Sutley

Abstract:

Cloud providers co-locate tenants on the same physical machines to improve utilization. Although virtualization provides software isolation between tenants, they still share the underlying hardware, including main memory. To meet service-level objectives (SLOs), providers use mechanisms such as per-core memory bandwidth regulation to limit interference among tenants. These mechanisms assume that tenants consuming more memory bandwidth cause more interference. We show that this assumption does not always hold. Even with cache partitioning and memory bandwidth regulation in place, an attacker consuming little memory bandwidth can severely slow down a co-running workload.

 

Modern DRAM systems achieve high aggregate bandwidth mainly through parallelism across channels and banks, while the service rate of an individual bank remains limited. A single bank can therefore be saturated even when total memory bandwidth consumption is low. We first present the Single-Bank Attack (SBA), a practical memory performance denial-of-service attack that runs entirely in unprivileged user space and does not require knowledge of the physical address mapping used by DRAM. SBA finds addresses that map to the same DRAM bank and repeatedly generates row-conflicting accesses to that bank. We evaluate SBA on a range of Intel and AMD server and desktop platforms. Across these systems, SBA causes severe slowdowns for co-running workloads while consuming less than 1 GB/s memory bandwidth.

 

We next use hardware performance counters to investigate why such a low-bandwidth attack causes severe interference. We find that SBA injects requests faster than the targeted bank can service them, filling the memory controller’s queues. The resulting backlog propagates into shared last-level cache (LLC) and coherency structures, where it stalls requests from other cores, including requests to other banks. These results show that bandwidth consumption alone does not capture the interference caused by requests accumulating in the memory hierarchy. On the Intel platform we tested, the bandwidth controls provided by Intel Memory Bandwidth Allocation (MBA) were too coarse-grained to contain SBA. The co-running workloads remained vulnerable at every MBA setting we tested. To address this limitation, we propose a lightweight, software-based memory bandwidth regulator that uses microarchitectural signals to detect sustained queue contention and selectively throttle the core responsible.

Together, these results show why memory bandwidth alone is an incomplete basis for performance isolation in multi-tenant clouds. Protecting co-located tenants from this interference calls for hardware and software mechanisms that detect and limit contention for shared memory hierarchy.

Degree: PhD Comprehensive Defense (CS)
Degree Type: PhD Comprehensive Defense
Degree Field: Computer Science