SOCK: rapid task provisioning with serverless-optimized containers

Edward Oakes, Leon Yang, Dennis Zhou, Kevin Houck, Tyler Harter, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-Dusseau

2018 · 192 citations · 19 references

Concepts

TL;DR

Serverless computing promises cost savings and extreme elasticity, but slow application and container initialization can hurt common‑case latency. The study aims to analyze Linux container primitives to identify scalability bottlenecks related to storage and network isolation and to develop a container system optimized for serverless workloads. The authors analyze Linux container primitives, identify bottlenecks, and implement the SOCK container system optimized for serverless workloads. The authors find that importing many popular libraries adds ~100 ms to startup, and that SOCK achieves an 18× speedup over Docker, a further 3× with generalized‑Zygote provisioning, and a 45× speedup over SOCK without Zygotes, while reducing platform overheads by 2.8× and 5.3× relative to AWS Lambda and OpenWhisk in an image‑processing case study.

Abstract

Serverless computing promises to provide applications with cost savings and extreme elasticity. Unfortunately, slow application and container initialization can hurt common-case latency on serverless platforms. In this work, we analyze Linux container primitives, identifying scalability bottlenecks related to storage and network isolation. We also analyze Python applications from GitHub and show that importing many popular libraries adds about 100 ms to startup. Based on these findings, we implement SOCK, a container system optimized for serverless workloads. Careful avoidance of kernel scalability bottlenecks gives SOCK an 18× speedup over Docker. A generalized-Zygote provisioning strategy yields an additional 3× speedup. A more sophisticated three-tier caching strategy based on Zygotes provides a 45× speedup over SOCK without Zygotes. Relative to AWS Lambda and OpenWhisk, OpenLambda with SOCK reduces platform overheads by 2.8× and 5.3× respectively in an image processing case study.

References

19