Async-Fork: Mitigating Query Latency Spikes Incurred by the Fork-based Snapshot Mechanism from the OS Level

Author:

Pang Pu1,Deng Gang2,Bai Kaihao1,Chen Quan3,Sun Shixuan4,Liu Bo3,Xu Yu2,Yao Hongbo2,Wang Zhengheng2,Wang Xiyu2,Liu Zheng2,Song Zhuo5,Yang Yong2,Ma Tao2,Guo Minyi3

Affiliation:

1. Shanghai Jiao Tong University, Alibaba Group

2. Alibaba Group

3. Shanghai Jiao Tong University

4. National University of Singapore

5. Alibaba Group, SJTU

Abstract

In-memory key-value stores (IMKVSes) serve many online applications. They generally adopt the fork-based snapshot mechanism to support data backup. However, this method can result in query latency spikes because the engine is out-of-service for queries during the snapshot. In contrast to existing research optimizing snapshot algorithms, we address the problem from the operating system (OS) level, while keeping the data persistent mechanism in IMKVSes unchanged. Specifically, we first study the impact of the fork operation on query latency. Based on findings in the study, we propose Async-fork, which performs the fork operation asynchronously to reduce the out-of-service time of the engine. Async-fork is implemented in the Linux kernel and deployed into the online Redis database in public clouds. Our experiment results show that Async-fork can significantly reduce the tail latency of queries during the snapshot.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference59 articles.

1. [n.d.]. fork(2). https://linux.die.net/man/2/fork. [n.d.]. fork(2). https://linux.die.net/man/2/fork.

2. 2022. BPF Compiler Collection (BCC). https://github.com/iovisor/bcc. 2022. BPF Compiler Collection (BCC). https://github.com/iovisor/bcc.

3. Reto Achermann , Ashish Panwar , Abhishek Bhattacharjee , Timothy Roscoe , and Jayneel Gandhi . 2020 . Mitosis: Transparently self-replicating page-tables for large-memory machines . In Proceedings of the 25th International Conference on Architectural Support for Programming Languages and Operating Systems. 283--300 . Reto Achermann, Ashish Panwar, Abhishek Bhattacharjee, Timothy Roscoe, and Jayneel Gandhi. 2020. Mitosis: Transparently self-replicating page-tables for large-memory machines. In Proceedings of the 25th International Conference on Architectural Support for Programming Languages and Operating Systems. 283--300.

4. Antirez. [n.d.]. Redis persistence demystified. http://antirez.com/post/redispersistence-demystified.html. Antirez. [n.d.]. Redis persistence demystified. http://antirez.com/post/redispersistence-demystified.html.

5. Vlastimil Babka. 2016. mm compaction: introduce kcompactd. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=698b1b30642f1ff0ea10ef1de9745ab633031377. Vlastimil Babka. 2016. mm compaction: introduce kcompactd. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=698b1b30642f1ff0ea10ef1de9745ab633031377.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. PMR: Priority Memory Reclaim to Improve the Performance of Latency-Critical Services;2023 IEEE 29th International Conference on Parallel and Distributed Systems (ICPADS);2023-12-17

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3