arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1505.07368cs.PL
收藏

重新审视C++中的Actor编程

Revisiting Actor Programming in C++

Dominik Charousset, Raphael Hiesgen, Thomas C. Schmidt

摘要:

计算的演员模型在过去十年中获得了显着的普及。它的高抽象层次使其对并行和分布式系统中的并发应用程序具有吸引力。然而,设计一个真实世界的演员框架,包含完整的可扩展性,强大的可靠性和高资源效率,需要许多概念和算法添加到原始模型。在本文中,我们报告的设计和建设CAF,“C++演员框架”。CAF的目标是提供一个并发和分布式的本地环境,用于扩展到非常大的,高性能的应用程序,并同样很好地缩小到小型受限系统。我们提出的关键规范和设计概念-特别是一个消息透明的体系结构,类型安全的消息接口,和模式匹配设施-使本地演员许多健壮的,弹性的,和高度分布式的开发一个可行的方法。我们证明了CAF在三种情况下的可行性:第一,弹性,升级环境,第二,包括异构硬件,如GPGPU,第三,分布式运行时系统。广泛的性能评估表明,在非常低的内存占用或GPU存在的情况下,最多64个内核的运行时行为是理想的。在这些测试中,CAF的表现一直优于Erlang、Charm++、SalsaLite、Scala、ActorFoundry甚至OpenMPI。

英文摘要:

The actor model of computation has gained significant popularity over the last decade. Its high level of abstraction makes it appealing for concurrent applications in parallel and distributed systems. However, designing a real-world actor framework that subsumes full scalability, strong reliability, and high resource efficiency requires many conceptual and algorithmic additives to the original model. In this paper, we report on designing and building CAF, the "C++ Actor Framework". CAF targets at providing a concurrent and distributed native environment for scaling up to very large, high-performance applications, and equally well down to small constrained systems. We present the key specifications and design concepts---in particular a message-transparent architecture, type-safe message interfaces, and pattern matching facilities---that make native actors a viable approach for many robust, elastic, and highly distributed developments. We demonstrate the feasibility of CAF in three scenarios: first for elastic, upscaling environments, second for including heterogeneous hardware like GPGPUs, and third for distributed runtime systems. Extensive performance evaluations indicate ideal runtime behaviour for up to 64 cores at very low memory footprint, or in the presence of GPUs. In these tests, CAF continuously outperforms the competing actor environments Erlang, Charm++, SalsaLite, Scala, ActorFoundry, and even the OpenMPI.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑