Skip to main content

Black or White? How to Develop an AutoTuner for Memory-based Analytics

Publication ,  Conference
Kunjir, M; Babu, S
Published in: Proceedings of the ACM SIGMOD International Conference on Management of Data
June 14, 2020

There is a lot of interest today in building autonomous (or, self-driving) data processing systems. An emerging school of thought is to leverage AI-driven "black box" algorithms for this purpose. In this paper, we present a contrarian view. We study the problem of autotuning the memory allocation for applications running on modern distributed data processing systems. We show that an empirically-driven "white-box" algorithm, called RelM, that we have developed provides a close-to-optimal tuning at a fraction of the overheads compared to state-of-the-art AI-driven "black box" algorithms, namely, Bayesian Optimization (BO) and Deep Distributed Policy Gradient (DDPG). The main reason for RelM's superior performance is that the memory management in modern memory-based data analytics systems is an interplay of algorithms at multiple levels: (i) at the resource-management level across various containers allocated by resource managers like Kubernetes and YARN, (ii) at the container level among the OS, pods, and processes such as the Java Virtual Machine (JVM), (iii) at the application level for caching, aggregation, data shuffles, and application data structures, and (iv) at the JVM level across various pools such as the Young and Old Generation. RelM understands these interactions and uses them in building an analytical solution to autotune the memory management knobs. In another contribution, called Guided-BO (GBO), we use RelM's analytical models to speed up BO. Through an evaluation based on Apache Spark, we showcase that the RelM's recommendations are significantly better than what commonly-used Spark deployments provide, and are close to the ones obtained by brute-force exploration; while GBO provides optimality guarantees for a higher, but still significantly lower cost overhead compared to the state-of-the-art AI-driven policies.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings of the ACM SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

June 14, 2020

Start / End Page

1667 / 1683
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Kunjir, M., & Babu, S. (2020). Black or White? How to Develop an AutoTuner for Memory-based Analytics. In Proceedings of the ACM SIGMOD International Conference on Management of Data (pp. 1667–1683). https://doi.org/10.1145/3318464.3380591
Kunjir, M., and S. Babu. “Black or White? How to Develop an AutoTuner for Memory-based Analytics.” In Proceedings of the ACM SIGMOD International Conference on Management of Data, 1667–83, 2020. https://doi.org/10.1145/3318464.3380591.
Kunjir M, Babu S. Black or White? How to Develop an AutoTuner for Memory-based Analytics. In: Proceedings of the ACM SIGMOD International Conference on Management of Data. 2020. p. 1667–83.
Kunjir, M., and S. Babu. “Black or White? How to Develop an AutoTuner for Memory-based Analytics.” Proceedings of the ACM SIGMOD International Conference on Management of Data, 2020, pp. 1667–83. Scopus, doi:10.1145/3318464.3380591.
Kunjir M, Babu S. Black or White? How to Develop an AutoTuner for Memory-based Analytics. Proceedings of the ACM SIGMOD International Conference on Management of Data. 2020. p. 1667–1683.

Published In

Proceedings of the ACM SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

June 14, 2020

Start / End Page

1667 / 1683