FaaSMem: Improving Memory Efficiency of Serverless Computing with Memory Pool Architecture

Chuhao Xu, Yiyu Liu, Zijun Li, Quan Chen, Han Zhao, Deze Zeng, Qian Peng, Xueqi Wu, Haifeng Zhao, Senbo Fu, Minyi GuoASPLOS 2024

Abstract

In serverless computing, an idle container is not recycled directly, in order to mitigate time-consuming cold container startup. These idle containers still occupy the memory, exasperating the memory shortage of today's data centers. By offloading their cold memory to remote memory pool could potentially resolve this problem. However, existing offloading policies either hurt the Quality of Service (QoS) or are too coarse-grained in serverless computing scenarios.We therefore propose FaaSMem, a dedicated memory offloading mechanism tailored for serverless computing with memory poor architecture. It is proposed based on our finding that the memory of a serverless container allocated in different stages has different usage patterns. Specifically, FaaSMem proposes Page Bucket (Pucket) to segregate the memory pages in different segments, and applies segment-wise offloading policies for them. FaaSMem also proposes a semi-warm period during keep-alive stage, to seek a sweet spot between the offloading effort and the remote access penalty. Experimental results show that FaaSMem reduces the average local memory footprint by 9.9% - 79.8% and improves the container deployment density to 108% - 218%, with negligible 95%-ile latency increase.
BibTeX
@inproceedings{xu2024faasmem,
  author = {Chuhao Xu and Yiyu Liu and Zijun Li and Quan Chen and Han Zhao and Deze Zeng and Qian Peng and Xueqi Wu and Haifeng Zhao and Senbo Fu and Minyi Guo},
  title = {{FaaSMem: Improving Memory Efficiency of Serverless Computing with Memory Pool Architecture}},
  booktitle = {ASPLOS},
  year = {2024},
  url = {https://openreview.net/forum?id=oYfWLGqqKp},
}

Loading related content...

Figure