Java在函数即服务计算中的性能

Qinzhe Wu, L. John
{"title":"Java在函数即服务计算中的性能","authors":"Qinzhe Wu, L. John","doi":"10.1109/UCC56403.2022.00047","DOIUrl":null,"url":null,"abstract":"One of the newest forms of serverless computing is Function-as-a-Service (FaaS). FaaS provides a framework to execute modular pieces of code in response to events (e.g., clicking a link in a web application). The FaaS platform takes care of provisioning and managing servers, allowing the developers to focus on their business logic. Additionally, all resource management is event-driven, and developers are only charged for the execution time of their functions. Despite so many apparent benefits, there are some concerns regarding the performance of FaaS. Past work has shown that cold starts typically have a negative effect on response latency (e.g., the initialization could add more than 10× execution time to short Python FaaS functions). However, the magnitude of the slowdown is subject to varying from language to language. This paper investigates how containerization and cold starts impact the performance of Java FaaS functions, and compares with the findings from the prior Python study.We find that containerization overhead slows Java FaaS functions from native execution by 4.42× on average (geometrical mean), ranging from 1.69× up to 15.43×. Comparing with Python in warm containers, Java has more overhead on three of the functions, but faster on the other functions (up to 27.08× faster). The container initialization time for Java is consistently less than half that of Python. However, Java has the additional overhead due to Java Virtual Machine (JVM) warmup which contributes varying amount of latency to the execution depending on the Java function properties. Overall, Java has about 2.60×(2.65×) speedup across seven FaaS functions over Python in cold (warm) start scenarios, respectively.","PeriodicalId":203244,"journal":{"name":"2022 IEEE/ACM 15th International Conference on Utility and Cloud Computing (UCC)","volume":"57 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Performance of Java in Function-as-a-Service Computing\",\"authors\":\"Qinzhe Wu, L. John\",\"doi\":\"10.1109/UCC56403.2022.00047\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"One of the newest forms of serverless computing is Function-as-a-Service (FaaS). FaaS provides a framework to execute modular pieces of code in response to events (e.g., clicking a link in a web application). The FaaS platform takes care of provisioning and managing servers, allowing the developers to focus on their business logic. Additionally, all resource management is event-driven, and developers are only charged for the execution time of their functions. Despite so many apparent benefits, there are some concerns regarding the performance of FaaS. Past work has shown that cold starts typically have a negative effect on response latency (e.g., the initialization could add more than 10× execution time to short Python FaaS functions). However, the magnitude of the slowdown is subject to varying from language to language. This paper investigates how containerization and cold starts impact the performance of Java FaaS functions, and compares with the findings from the prior Python study.We find that containerization overhead slows Java FaaS functions from native execution by 4.42× on average (geometrical mean), ranging from 1.69× up to 15.43×. Comparing with Python in warm containers, Java has more overhead on three of the functions, but faster on the other functions (up to 27.08× faster). The container initialization time for Java is consistently less than half that of Python. However, Java has the additional overhead due to Java Virtual Machine (JVM) warmup which contributes varying amount of latency to the execution depending on the Java function properties. Overall, Java has about 2.60×(2.65×) speedup across seven FaaS functions over Python in cold (warm) start scenarios, respectively.\",\"PeriodicalId\":203244,\"journal\":{\"name\":\"2022 IEEE/ACM 15th International Conference on Utility and Cloud Computing (UCC)\",\"volume\":\"57 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-12-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE/ACM 15th International Conference on Utility and Cloud Computing (UCC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/UCC56403.2022.00047\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE/ACM 15th International Conference on Utility and Cloud Computing (UCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/UCC56403.2022.00047","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

无服务器计算的最新形式之一是功能即服务(FaaS)。FaaS提供了一个框架来执行响应事件的模块化代码片段(例如,点击web应用程序中的链接)。FaaS平台负责服务器的供应和管理,允许开发人员专注于他们的业务逻辑。此外,所有的资源管理都是事件驱动的,开发人员只需要为其功能的执行时间付费。尽管有这么多明显的好处,但是FaaS的性能仍然存在一些问题。过去的工作表明,冷启动通常对响应延迟有负面影响(例如,初始化可能会为短Python FaaS函数增加超过10倍的执行时间)。然而,语速下降的幅度因语言而异。本文研究了容器化和冷启动如何影响Java FaaS函数的性能,并与先前Python研究的结果进行了比较。我们发现,容器化开销使Java FaaS函数的本地执行速度平均降低了4.42倍(几何平均值),从1.69倍到15.43倍不等。与使用热容器的Python相比,Java在三个函数上有更多的开销,但在其他函数上更快(快27.08倍)。Java的容器初始化时间始终少于Python的一半。但是,由于Java虚拟机(JVM)预热,Java有额外的开销,这会根据Java函数属性对执行造成不同程度的延迟。总的来说,在冷启动(热启动)场景下,Java在7个FaaS函数上的速度分别比Python提高了2.60倍(2.65倍)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Performance of Java in Function-as-a-Service Computing
One of the newest forms of serverless computing is Function-as-a-Service (FaaS). FaaS provides a framework to execute modular pieces of code in response to events (e.g., clicking a link in a web application). The FaaS platform takes care of provisioning and managing servers, allowing the developers to focus on their business logic. Additionally, all resource management is event-driven, and developers are only charged for the execution time of their functions. Despite so many apparent benefits, there are some concerns regarding the performance of FaaS. Past work has shown that cold starts typically have a negative effect on response latency (e.g., the initialization could add more than 10× execution time to short Python FaaS functions). However, the magnitude of the slowdown is subject to varying from language to language. This paper investigates how containerization and cold starts impact the performance of Java FaaS functions, and compares with the findings from the prior Python study.We find that containerization overhead slows Java FaaS functions from native execution by 4.42× on average (geometrical mean), ranging from 1.69× up to 15.43×. Comparing with Python in warm containers, Java has more overhead on three of the functions, but faster on the other functions (up to 27.08× faster). The container initialization time for Java is consistently less than half that of Python. However, Java has the additional overhead due to Java Virtual Machine (JVM) warmup which contributes varying amount of latency to the execution depending on the Java function properties. Overall, Java has about 2.60×(2.65×) speedup across seven FaaS functions over Python in cold (warm) start scenarios, respectively.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信