skip to main content
10.1145/3493651.3493672acmconferencesArticle/Chapter ViewAbstractPublication PagesmiddlewareConference Proceedingsconference-collections
short-paper

Towards Demystifying Intra-Function Parallelism in Serverless Computing

Authors Info & Claims
Published:06 December 2021Publication History

ABSTRACT

Serverless computing offers a pay-per-use model with high elasticity and automatic scaling for a wide range of applications. Since cloud providers abstract most of the underlying infrastructure, these services work similarly to black-boxes. As a result, users can influence the resources allocated to their functions, but might not be aware that they have to parallelize them to profit from the additionally allocated virtual CPUs (vCPUs). In this paper, we analyze the impact of parallelization within a single function and container instance for AWS Lambda, Google Cloud Functions (GCF), and Google Cloud Run (GCR). We focus on compute-intensive workloads since they benefit greatly from parallelization. Furthermore, we investigate the correlation between the number of allocated CPU cores and vCPUs in serverless environments. Our results show that the number of available cores to a function/container instance does not always equal the number of allocated vCPUs. By parallelizing serverless workloads, we observed cost savings up to 81% for AWS Lambda, 49% for GCF, and 69.8% for GCR.

References

  1. [n.d.]. MPI: A Message-Passing Interface Standard. https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report.pdfGoogle ScholarGoogle Scholar
  2. AWS. 2020. AWS Step Functions I AWS. https://aws.amazon.com/step-functions/Google ScholarGoogle Scholar
  3. Azure. 2020. Azure Durable Functions | Azure. https://docs.microsoft.com/en-us/azure/azure-functions/durable/Google ScholarGoogle Scholar
  4. Daniel Barcelona-Pons, Pedro García-López, Álvaro Ruiz, Amanda Gómez-Gómez, Gerard París, and Marc Sánchez-Artigas. 2019. FaaS Orchestration of Parallel Workloads. In Proceedings of the 5th International Workshop on Serverless Computing (Davis, CA, USA) (WOSC '19). Association for Computing Machinery, New York, NY, USA, 25--30. https://doi.org/10.1145/3366623.3368137Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Daniel Barcelona-Pons, Marc Sánchez-Artigas, Gerard París, Pierre Sutra, and Pedro García-López. 2019. On the FaaS Track: Building Stateful Distributed Applications with Serverless Architectures. In Proceedings of the 20th International Middleware Conference (Davis, CA, USA) (Middleware '19). Association for Computing Machinery, New York, NY, USA, 41--54. https://doi.org/10.1145/3361525.3361535Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Joao Carreira, Pedro Fonseca, Alexey Tumanov, Andrew Zhang, and Randy Katz. 2019. Cirrus: A serverless framework for end-to-end ml workflows. In Proceedings of the ACM Symposium on Cloud Computing. 13--24.Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Mohak Chadha, Anshul Jindal, and Michael Gerndt. 2020. Towards Federated Learning Using FaaS Fabric. In Proceedings of the 2020 Sixth International Workshop on Serverless Computing (WoSC'20). Association for Computing Machinery, New York, NY, USA, 49--54. https://doi.org/10.1145/3429880.3430100Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Mohak Chadha, Anshul Jindal, and Michael Gerndt. 2021. Architecture-Specific Performance Optimization of Compute-Intensive FaaS Functions. arXiv preprint arXiv:2107.10008 (2021).Google ScholarGoogle Scholar
  9. Ryan Chard, Yadu Babuji, Zhuozhao Li, Tyler Skluzacek, Anna Woodard, Ben Blaiszik, Ian Foster, and Kyle Chard. 2020. FuncX: A Federated Function Serving Fabric for Science. In Proceedings of the 29th International Symposium on High-Performance Parallel and Distributed Computing (Stockholm, Sweden) (HPDC '20). Association for Computing Machinery, New York, NY, USA, 65--76. https://doi.org/10.1145/3369583.3392683Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Robert Cordingly, Navid Heydari, Hanfei Yu, Varik Hoang, Zohreh Sadeghi, and Wes Lloyd. 2021. Enhancing Observability of Server-less Computing with the Serverless Application Analytics Framework. In Companion of the ACM/SPEC International Conference on Performance Engineering (Virtual Event, France) (ICPE '21). Association for Computing Machinery, New York, NY, USA, 161--164. https://doi.org/10.1145/3447545.3451173Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Susan J Eggers, Joel S Emer, Henry M Levy, Jack L Lo, Rebecca L Stamm, and Dean M Tullsen. 1997. Simultaneous multithreading: A platform for next-generation processors. IEEE micro 17, 5 (1997), 12--19.Google ScholarGoogle Scholar
  12. NPBench Github. 2021. https://github.com/spcl/npbench. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  13. Pyperformance Github. 2021. https://github.com/python/pyperformance. Accessed: 09/09/2021.Google ScholarGoogle Scholar
  14. Piotr Grzesik and Dariusz Mrozek. 2021. Serverless Nanopore Base-calling with AWS Lambda. In Computational Science - ICCS 2021, Maciej Paszynski, Dieter Kranzlmüller, Valeria V. Krzhizhanovskaya, Jack J. Dongarra, and Peter M. A. Sloot (Eds.). Springer International Publishing, Cham, 578--586.Google ScholarGoogle Scholar
  15. Jiawei Jiang, Shaoduo Gan, Yue Liu, Fanlin Wang, Gustavo Alonso, Ana Klimovic, Ankit Singla, Wentao Wu, and Ce Zhang. 2021. Towards Demystifying Serverless Machine Learning Training. Proceedings of the 2021 International Conference on Management of Data (Jun 2021). https://doi.org/10.1145/3448016.3459240Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Anshul Jindal, Mohak Chadha, Michael Gerndt, Julian Frielinghaus, Vladimir Podolskiy, and Pengfei Chen. 2021. Poster: Function Delivery Network: Extending Serverless to Heterogeneous Computing. In 2021 IEEE 41st International Conference on Distributed Computing Systems (ICDCS). 1128--1129. https://doi.org/10.1109/ICDCS51616.2021.00120Google ScholarGoogle ScholarCross RefCross Ref
  17. Anshul Jindal, Michael Gerndt, Mohak Chadha, Vladimir Podolskiy, and Pengfei Chen. 2021. Function delivery network: Extending server-less computing for heterogeneous platforms. Software: Practice and Experience 51, 9 (2021), 1936--1963. https://doi.org/10.1002/spe.2966 arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1002/spe.2966Google ScholarGoogle ScholarCross RefCross Ref
  18. D. Kelly, F. Glavin, and E. Barrett. 2020. Serverless Computing: Behind the Scenes of Major Platforms. In 2020 IEEE 13th International Conference on Cloud Computing (CLOUD). 304--312. https://doi.org/10.1109/CLOUD49709.2020.00050Google ScholarGoogle Scholar
  19. Michael Kiener. 2021. Towards Demystifying Intra-Function Parallelism in Serverless Computing. Masterarbeit. Technische Universität München.Google ScholarGoogle Scholar
  20. Knative. [n.d.]. https://knative.dev/docs/. Accessed 09/24/2020.Google ScholarGoogle Scholar
  21. Siu Kwan Lam, Antoine Pitrou, and Stanley Seibert. 2015. Numba: A LLVM-Based Python JIT Compiler. In Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC (Austin, Texas) (LLVM 15). Association for Computing Machinery, New York, NY, USA, Article 7, 6 pages. https://doi.org/10.1145/2833157.2833162Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. OpenWhisk Composer. 2020. OpenWhisk Composer | OpenWhisk. https://github.com/apache/openwhisk-composerGoogle ScholarGoogle Scholar
  23. Google Cloud Platform. 2021. https://cloud.google.com/functions/pricing. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  24. Google Cloud Platform. 2021. https://cloud.google.com/run/. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  25. Google Cloud Platform. 2021. https://cloud.google.com/run/docs/configuring/cpu. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  26. Google Cloud Platform. 2021. https://cloud.google.com/run/pricing. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  27. Danilo Poccia. [n.d.]. https://aws.amazon.com/blogs/aws/new-for-aws-lambda-use-any-programming-language-and-share-common-components/. accessed: 08/25/2021.Google ScholarGoogle Scholar
  28. Danilo Poccia. [n.d.]. https://github.com/awslabs/aws-lambda-cpp. accessed: 08/25/2021.Google ScholarGoogle Scholar
  29. Amazon Web Services. 2021. https://aws.amazon.com/lambda/pricing/. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  30. Amazon Web Services. 2021. https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html. Accessed: 09/06/2021.Google ScholarGoogle Scholar
  31. Vaishaal Shankar, Karl Krauth, Kailas Vodrahalli, Qifan Pu, Benjamin Recht, Ion Stoica, Jonathan Ragan-Kelley, Eric Jonas, and Shivaram Venkataraman. 2020. Serverless Linear Algebra. In Proceedings of the 11th ACM Symposium on Cloud Computing (Virtual Event, USA) (SoCC '20). Association for Computing Machinery, New York, NY, USA, 281--295. https://doi.org/10.1145/3419111.3421287Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. Guillermo L. Taboada, Juan Touriño, and Ramón Doallo. 2009. Java for High Performance Computing: Assessment of Current Research and Practice. In Proceedings of the 7th International Conference on Principles and Practice of Programming in Java (Calgary, Alberta, Canada) (PPPJ '09). Association for Computing Machinery, New York, NY, USA, 30--39. https://doi.org/10.1145/1596655.1596661Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. Alexandros Nikolaos Ziogas, Tal Ben-Nun, Timo Schneider, and Torsten Hoefler. 2021. NPBench: a benchmarking suite for high-performance NumPy. In Proceedings of the ACM International Conference on Supercomputing. 63--74.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Towards Demystifying Intra-Function Parallelism in Serverless Computing

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      WoSC '21: Proceedings of the Seventh International Workshop on Serverless Computing (WoSC7) 2021
      December 2021
      55 pages
      ISBN:9781450391726
      DOI:10.1145/3493651

      Copyright © 2021 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 6 December 2021

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • short-paper
      • Research
      • Refereed limited

      Upcoming Conference

      MIDDLEWARE '24
      25th International Middleware Conference
      December 2 - 6, 2024
      Hong Kong , Hong Kong

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader