OS-Augmented Oversubscription of Opportunistic Memory with a User-Assisted OOM Killer
Authors:
Open Access
- 9 December 2019
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 28-40
Abstract
Exploiting opportunistic memory by oversubscription is an appealing approach to improving cluster utilization and throughput. In this paper, we find the efficacy of memory oversubscription depends on whether or not the oversubscribed tasks can be killed by an OutOf Memory (OOM) killer in a timely manner to avoid significant memory thrashing upon memory pressure. However, current approaches in modern cluster schedulers are actually unable to unleash the power of opportunistic memory because their user space OOM killers are unable to timely deliver a task killing signal to terminate the oversubscribed tasks. Our experiments observe that a user space OOM killer fails to do that because of lacking the memory pressure knowledge from OS while the kernel space Linux OOM killer is too conservative to relieve memory pressure. In this paper, we design a user-assisted OOM killer (namely UA killer) in kernel space, an OS augmentation for accurate thrashing detection and agile task killing. To identify a thrashing task, UA killer features a novel mechanism, constraint thrashing. Upon UA killer, we develop Charon, a cluster scheduler for oversubscription of opportunistic memory in an on-demand manner. We implement Charon upon Mercury, a state-of-the-art opportunistic cluster scheduler. Extensive experiments with a Google trace in a 26-node cluster show that Charon can: (1) achieve agile task killing, (2) improve the best-effort job throughput by 3.5X over Mercury while prioritizing the production jobs, and (3) improve the 90th job completion time of production jobs over Kubernetes opportunistic scheduler by 62%.Keywords
Funding Information
- National Science Foundation (SHF-1816859)
This publication has 25 references indexed in Scilit:
- Elastic job bundling2015
- Interruptible tasks2015
- Bidding for Highly Available Services with Low Price in Spot Instance Market2015
- Large-scale cluster management at Google with Borg2015
- NumaGiC2015
- Sparrow2013
- Apache Hadoop YARN2013
- Program locality analysis using reuse distanceACM Transactions on Programming Languages and Systems, 2009
- Dynamic tracking of page miss ratio curve for memory management2004
- The working set model for program behaviorCommunications of the ACM, 1968