Skip to content

ThreadShift: Transparent Thread-Level Offloading on Transient Cloud Resources Using MPKs

Sep 2026 · arXiv.org · Vol abs/2609.32153 · 0 citations · 100 references
Computer Science

Abstract

Transient cloud resources offer significant cost savings, but their unpredictability makes them hard to use for applications that cannot be safely restarted after reclamation. Existing approaches require application changes or rely on coarse-grained checkpointing, whose cost limits its benefits. We present ThreadShift, a system that transparently offloads compute-intensive threads of unmodified Linux applications to cheap transient resources while preserving correctness under reclamation. By operating at thread granularity, ThreadShift enables fast, fine-grained checkpointing and offloads only the threads that benefit from transient execution. The main challenge is to checkpoint individual threads despite cross-thread dependencies. ThreadShift does so by efficiently tracking memory dependencies, identifying per-thread memory writes, and maintaining coherence across machines. Three novel uses of Memory Protection Keys (MPKs) make these mechanisms efficient, enabling fast incremental checkpoints without pausing the entire application. We implement ThreadShift on x86-64 Linux and evaluate it on workloads including machine-learning inference, cryptographic tasks, and in-memory data processing. ThreadShift offloads threads in as little as 164 us, performs checkpointing up to three orders of magnitude faster than CRIU, and reduces deployment cost by up to 56% on commodity clouds.

View source

Similar papers

Preprint Nov 2026

SOMA: Transactional Migration of Live Python Sessions Across Heterogeneous Runtimes

Stateful Python workloads accumulate hours of in-memory state bound to their initial runtime. When resource needs change or a runtime is reclaimed, continuing elsewhere requires preserving or rebuilding that state. We present SOMA, a session-oriented migration abstraction for Python workloads that preserves supported a...

E. Hasanov, Ju Lin, Mohamed Fouzil Ali Syed Ali · 0 citations
Book Open access 2027

Firework: Efficient and Transparent DSM with Hardware-Coherent CXL Shared Memory

Firework is introduced, a DSM system co-designed across the runtime and OS kernel that transparently and dynamically manages page placement between local DRAM and hardware-coherent CXL memory, enabling unmodified multi-threaded C/C++ applications to execute across multiple servers.

Shu Anzai, Shi Liu, Shan Yu et al. · 0 citations
Book Open access Nov 2026

BoxD: Managing GPU Managed Memory

Performance-sensitive GPU applications require deterministic resource provisioning. NVIDIA’s Unified Virtual Memory (UVM) enables GPU memory oversubscription but relies on a device-centric, application-agnostic eviction mechanisms. While oversubscription improves co-location, global device-level evictions induce interf...

Utkarsh Tiwari, P. Kulkarni · 0 citations
Open access Oct 2026

DPSM: Fine-Grained GPU Resource Management via Kernel Interception and TPC Control

Modern deep learning workloads are increasingly co-located on a single GPU to improve hardware utilization, yet existing MPS-based sharing mechanisms expose concurrency without providing QoS-aware control. Deadline-constrained training jobs can suffer severe slowdown when co-executed with best-effort workloads, because...

De-Sheng Wang, Fu-Zhen Yong, Si-Chao Chen et al. · 0 citations
Preprint Nov 2026

Towards Runtime-Aware Observability for Java Virtual Threads

OS-level observability tools join application requests to kernel events through the OS thread ID, assuming that a unit of work occupies one OS thread until it completes. Java virtual threads break this assumption: many virtual threads are multiplexed onto a few carrier threads, so a stable thread ID hides a changing un...

Wen-Jie Ding · 0 citations
Open access Oct 2026

Adaptive Thread Scheduling and Optimization Framework for the Multi-Core CPU with Large-Capacity Cache

The continuous growth in processor speed and the persistent memory latency bottleneck make large-capacity cache critical for mitigating the “memory wall”. However, topology-oblivious OS scheduling frequently induces severe cache contention and cross-die migrations, diminishing these hardware benefits. To address this,...

Xin-Ming Song, Mei-Kang Qiu, Hong-Jun Dai · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.