ThreadShift: Transparent Thread-Level Offloading on Transient Cloud Resources Using MPKs
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.
Create a lesson
Metadata
- Categories
- cs.DC, cs.OS
Related papers
Multi-Tier Autonomic Resource Orchestration Framework for Dynamic Service Elasticity across Federated Cloud Environments
Shared title terminologycs.DCNitin Sikri
Cloud-Side Transactional Orchestration Framework for Resource-Constrained Embedded Systems
Shared title terminologycs.DCPravin Nagare, Aditya Sabbineni, Preetam Dedu et al.
RONDO: Segment-Level Continuous Batching for Multi-Tenant Flow-VLA Serving
Shared title terminologycs.DCJiahua Huang, Weiwei Lin, Wentai Wu et al.
UltraSim: Simulating Large-Scale AI Clusters at Packet Level on GPUs
Shared title terminologycs.DCMan-Kit Sit, Matej Sandor, Yi-Chieh Wang et al.
CES: A Validated, Reproducible, and Scalable Simulator for the Edge-Cloud Continuum
Shared title terminologycs.DCNam Do, Rezwan Ahmad Nayreed, Henna Kokkonen et al.
Beyond Throttling: The Case for Dynamic NIC Oversubscription in IaaS Clouds
Shared title terminologycs.DCPierre Jacquet, Camille Coti, Marcos Dias De Assunção