首页> 外文期刊>Concurrency, practice and experience >Accurate counting algorithmforhigh-speed parallel applications
【24h】

Accurate counting algorithmforhigh-speed parallel applications

机译:高速并行应用的精确计数算法

获取原文
获取原文并翻译 | 示例

摘要

Statistical counter offers the appeal of an efficient and scalable counting mechanism on multi-core architectures where parallelism has been increasing sharply. Statistical counter has been widely used in practice (eg, in high-end network devices to count the number of packets received) despite the truth that it can only provide weak consistency guarantee on the counting results it returns, that is, statistical counter could miscount and the returned results may be inaccurate. As hardware and its parallelism advances, the miscount issue has raised concerns in both industry and academy. This paper is motivated by this real-world miscount issue that we were facing when building a high-speed intrusion detection system on a commercial multi-core server with 40Gbps NICs. To tackle the problem, we first systematically analyze the miscount issue and quantify themiscounts in counting results. Then, we present a novel counting algorithm that (1) is competitive to statistical counter in performance on multi-core architectures and (2) provides strong consistency guarantee on counting results returned. Experiments show that it takes the new counting algorithm 10ns and 1,500ns to perform an update and a read operation, respectively. Moreover, the counting results returned are accurate.
机译:统计计数器在并行度急剧增加的多核体系结构上提供了一种高效且可扩展的计数机制。尽管统计计数器只能为返回的计数结果提供较弱的一致性保证这一事实,但实际上统计计数器已在实践中被广泛使用(例如,在高端网络设备中对接收到的数据包的数量进行计数),也就是说,统计计数器可能会误计数并且返回的结果可能不正确。随着硬件及其并行性的发展,错误计数问题引起了业界和学术界的关注。本文的灵感来自我们在具有40Gbps NIC的商用多核服务器上构建高速入侵检测系统时遇到的现实错误计数问题。为了解决这个问题,我们首先系统地分析错误计数问题,并对计数结果中的错误计数进行量化。然后,我们提出了一种新颖的计数算法,该算法(1)在多核体系结构上的性能在统计计数器方面具有竞争力,并且(2)在返回的计数结果上提供强大的一致性保证。实验表明,新的计数算法分别需要10ns和1,500ns来执行更新和读取操作。而且,返回的计数结果是准确的。

著录项

  • 来源
    《Concurrency, practice and experience》 |2019年第13期|e5090.1-e5090.16|共16页
  • 作者

    Junchang Wang; Tao Li; Xiong Fu;

  • 作者单位

    School of Computer Science, Nanjing University of Posts and Telecommunications, Jiangsu, China,Jiangsu Key Laboratory of Big Data Security and Intelligent Processing, Nanjing University of Posts and Telecommunications, Jiangsu, China;

    School of Computer Science, Nanjing University of Posts and Telecommunications, Jiangsu, China,Jiangsu Key Laboratory of Big Data Security and Intelligent Processing, Nanjing University of Posts and Telecommunications, Jiangsu, China;

    School of Computer Science, Nanjing University of Posts and Telecommunications, Jiangsu, China,Jiangsu Key Laboratory of Big Data Security and Intelligent Processing, Nanjing University of Posts and Telecommunications, Jiangsu, China;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    counting algorithm; lock-free data structure; multi-core; strong consistency;

    机译:计数算法;无锁数据结构;多核;强一致性;

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号