Skip to main content
QUICK REVIEW

[Paper Review] Canvas: Isolated and Adaptive Swapping for Multi-Applications on Remote Memory

Chenxi Wang, Yifan Qiao|arXiv (Cornell University)|Mar 17, 2022
Cloud Computing and Resource ManagementComputer Science6 citations
TL;DR

This paper proposes \tool, a novel swap system that isolates swap resources—such as swap partitions, cache, and RDMA bandwidth—across multiple remote-memory applications to eliminate performance interference. By enabling application-specific optimizations like adaptive entry allocation, semantics-aware prefetching, and two-dimensional RDMA scheduling, \tool reduces performance variation and achieves up to 6× speedup in co-located workloads compared to shared swap systems.

ABSTRACT

Remote memory techniques for datacenter applications have recently gained a great deal of popularity. Existing remote memory techniques focus on the efficiency of a single application setting only. However, when multiple applications co-run on a remote-memory system, significant interference could occur, resulting in unexpected slowdowns even if the same amounts of physical resources are granted to each application. This slowdown stems from massive sharing in applications' swap data paths. Canvas is a redesigned swap system that fully isolates swap paths for remote-memory applications. Canvas allows each application to possess its dedicated swap partition, swap cache, prefetcher, and RDMA bandwidth. Swap isolation lays a foundation for adaptive optimization techniques based on each application's own access patterns and needs. We develop three such techniques: (1) adaptive swap entry allocation, (2) semantics-aware prefetching, and (3) two-dimensional RDMA scheduling. A thorough evaluation with a set of widely-deployed applications demonstrates that Canvas minimizes performance variation and dramatically reduces performance degradation.

Motivation & Objective

  • Address severe performance interference caused by shared swap resources in multi-application remote-memory systems.
  • Identify that existing swap systems suffer from lock contention, uncontrolled RDMA usage, and ineffective prefetching due to cross-application interference.
  • Design a holistic isolation mechanism for swap cache, swap partition, and RDMA bandwidth to enable application-specific optimizations.
  • Develop adaptive optimization techniques tailored to individual applications' access patterns and resource needs.
  • Demonstrate that isolated and adaptive swapping significantly reduces performance degradation in co-located workloads on remote memory systems.

Proposed method

  • Redesign the kernel swap subsystem to assign dedicated swap partitions, swap caches, and RDMA bandwidth per application.
  • Implement application-level swap entry allocation with per-application accounting to reduce lock contention.
  • Introduce a two-tier prefetcher that combines low-level access pattern detection with semantic analysis to improve prefetching accuracy.
  • Design a two-dimensional RDMA scheduler that separates and prioritizes demand and prefetching requests based on timing sensitivity.
  • Integrate horizontal scheduling to reduce latency of asynchronous prefetching requests by prioritizing timeliness over fairness.
  • Leverage cgroup-based resource accounting to enforce isolation and enable application-aware optimization decisions.

Experimental results

Research questions

  • RQ1How does shared swap resource usage cause performance interference in multi-application remote-memory systems?
  • RQ2To what extent does lock contention in shared swap entry allocation degrade system throughput and RDMA utilization?
  • RQ3Can application-specific prefetching strategies improve effectiveness in high-throughput remote memory environments?
  • RQ4How does RDMA scheduling impact the latency and success rate of prefetching in co-located workloads?
  • RQ5What is the performance impact of isolating swap resources and applying adaptive optimizations across diverse workloads?

Key findings

  • With the same CPU and local memory resources, co-running applications on a shared swap system experience up to 6× slowdown due to resource contention.
  • Swap entry allocation alone consumes up to 70% of time in high-access windows, indicating severe lock contention in shared systems.
  • The two-tier prefetcher in \tool improves prefetching contribution by 10.7% and accuracy by 5.5% on GraphX-CC through reduced latency.
  • Horizontal scheduling reduces 90th percentile prefetching latency by ~5%, leading to a 7-12% overall performance improvement with the two-tier prefetcher.
  • The combination of isolation and adaptive optimizations reduces performance variation and maintains high RDMA utilization across diverse workloads.
  • Even with the Leap prefetcher, horizontal scheduling achieves up to 9× latency reduction, demonstrating its effectiveness in latency-sensitive scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.