Memory and Startup Costs of Serverless Functions under Burst Workloads
Keywords:
serverless computing; cold start; burst workload; memory provisioning; queueing model; cost-latency trade-offAbstract
Serverless function platforms couple memory allocation with CPU and I/O capacity, so a memory setting intended to control price also changes execution time, initialization time, concurrency pressure, and the frequency of cold starts. Under burst workloads, these effects interact: a short surge can exhaust the warm pool, forcing a large fraction of invocations through initialization paths while the platform simultaneously bills memory for every active and cold-starting instance. This manuscript develops an analytical framework for evaluating memory and startup costs of serverless functions under burst arrivals. The model decomposes response time into queueing, startup, and execution components; represents memory-dependent execution and initialization through an effective capacity function; and defines a burst cold-start fraction from excess concurrency over warm capacity. It then formulates a cost-latency optimization problem that selects memory size and warm capacity under service-level and cold-start constraints. The analysis clarifies when larger memory reduces total cost despite a higher per-millisecond price, when prewarming is a stronger lever than memory scaling, and when neither can compensate for I/O-bound execution or scheduling-dominated startup. It also shows why memory and warm capacity are complementary for latency but partially substitutable for cost, producing distinct provisioning regimes for tight, moderate, and loose service-level targets. The resulting framework supports disciplined serverless provisioning under bursty demand without relying on platform-specific experiments.
References
1. Jonas, E., Schleier-Smith, J., Sreekanti, V., Tsai, C.-C., Khandelwal, A., Pu, Q., Shankar, S., Carreira, J., Krauth, K., Yadwadkar, N., Gonzalez, J. E., Popa, R. A., Stoica, I., & Patterson, D. A. (2019). Cloud programming simplified: A Berkeley view on serverless computing (arXiv:1902.03383). arXiv.
2. Castro, P., Ishakian, V., Muthusamy, V., & Slominski, A. (2019). The rise of serverless computing. Communications of the ACM, 62(12), 44–54. https://doi.org/10.1145/3368454
3. Lloyd, W., Ramesh, S., Chinthalapati, S., Ly, L., & Pallickara, S. (2018). Serverless computing: An investigation of factors influencing microVM cold starts. In 2018 IEEE International Conference on Cloud Engineering (IC2E) (pp. 253–263). IEEE.
4. McGrath, G., & Brenner, P. R. (2017). Serverless computing: Design, implementation, and performance. In 2017 IEEE 37th International Conference on Distributed Computing Systems Workshops (ICDCSW) (pp. 405–410). IEEE.
5. Shahrad, M., Fonseca, R., Goiri, Í., Chaudhry, G., Batum, P., Cooke, J., Laureano, E., Tresness, C., Russinovich, M., & Bianchini, R. (2020). Serverless in the wild: Characterizing and optimizing the serverless workload at a large cloud provider. In 2020 USENIX Annual Technical Conference (USENIX ATC 20) (pp. 205–218). USENIX Association.
6. Wang, L., Li, M., Zhang, Y., Ristenpart, T., & Swift, M. (2018). Peeking behind the curtains of serverless platforms. In 2018 USENIX Annual Technical Conference (USENIX ATC 18) (pp. 133–146). USENIX Association.
7. Hellerstein, J. M., Faleiro, J., Gonzalez, J. E., Schleier-Smith, J., Sreekanti, V., Tumanov, A., & Wu, C. (2019). Serverless computing: One step forward, two steps back. In 9th Biennial Conference on Innovative Data Systems Research (CIDR 2019).
8. Baldini, I., Castro, P., Chang, K., Cheng, P., Fink, S., Ishakian, V., Mitchell, N., Muthusamy, V., Rabbah, R., Slominski, A., & Suter, P. (2017). Serverless computing: Current trends and open problems. In Research Advances in Cloud Computing (pp. 1–20). Springer.
9. Oakes, E., Yang, L., Zhou, D., Houck, K., Harter, T., Arpaci-Dusseau, A., & Arpaci-Dusseau, R. (2018). SOCK: Rapid task provisioning with serverless-optimized containers. In 2018 USENIX Annual Technical Conference (USENIX ATC 18) (pp. 57–70). USENIX Association.
10. Du, D., Yu, T., Xia, Y., Zang, B., Yan, G., Qin, C., Wu, Q., & Chen, H. (2020). Catalyzer: Sub-millisecond startup for serverless computing with initialization-less booting. In Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS '20) (pp. 467–481). ACM.
11. Scheuner, J., & Leitner, P. (2020). Function-as-a-Service performance evaluation: A multivocal literature review. Journal of Systems and Software, 170, 110732. https://doi.org/10.1016/j.jss.2020.110732
12. Manner, J., Endreß, M., Heckel, T., & Wirtz, G. (2018). Cold start influencing factors in function as a service. In 2018 IEEE/ACM International Conference on Utility and Cloud Computing Companion (UCC Companion) (pp. 181–188). IEEE.
13. Lee, H., Satyam, K., & Fox, G. (2018). Evaluation of production serverless computing environments. In 2018 IEEE 11th International Conference on Cloud Computing (CLOUD) (pp. 442–450). IEEE.
14. Malawski, M., Gajek, A., Zima, A., Balis, B., & Figiela, K. (2020). Serverless execution of scientific workflows: Experiments with HyperFlow, AWS Lambda and Google Cloud Functions. Future Generation Computer Systems, 110, 502–514.
15. Sreekanti, V., Wu, C., Lin, X. C., Schleier-Smith, J., Faleiro, J. M., Gonzalez, J. E., Hellerstein, J. M., & Tumanov, A. (2020). Cloudburst: Stateful functions-as-a-service. Proceedings of the VLDB Endowment, 13(12), 2438–2452.
16. Kleinrock, L. (1975). Queueing systems, Volume 1: Theory. Wiley.
17. Little, J. D. C. (1961). A proof for the queuing formula: L = λW. Operations Research, 9(3), 383–387.
18. Amazon Web Services. (2021). AWS Lambda pricing. https://aws.amazon.com/lambda/pricing/
19. Microsoft Azure. (2021). Azure Functions pricing. https://azure.microsoft.com/en-us/pricing/details/functions/
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Artificial Intelligence and Machine Learning Systems

This work is licensed under a Creative Commons Attribution 4.0 International License.