阿姆达尔定律

Strong scaling is a measure of how, for a fixed overall problem size, the time to solution decreases as more processors are added to a system. An application that exhibits linear strong scaling has a speedup equal to the number of processors used.

Strong scaling is usually equated with Amdahl's Law, which specifies the maximum speedup that can be expected by parallelizing portions of a serial program. Essentially, it states that the maximum speedup S of a program is:

S =1(1 -P)+PN

Here P is the fraction of the total serial execution time taken by the portion of code that can be parallelized and N is the number of processors over which the parallel portion of the code runs.

The larger N is(that is, the greater the number of processors), the smaller the P/N fraction. It can be simpler to view N as a very large number, which essentially transforms the equation into S=1/ (1-P). Now, if 3/4 of the running time of a sequential program is parallelized, the maximum speedup over serial code is 1 / (1 - 3/4) = 4.

In reality, most applications do not exhibit perfectly linear strong scaling, even if they do exhibit some degree of strong scaling. For most purposes, the key point is that the larger the parallelizable portion P is, the greater the potential speedup. Conversely, if P is a small number (meaning that the application is not substantially parallelizable), increasing the number of processors N does little to improve performance. Therefore, to get the largest speedup for a fixed problem size, it is worthwhile to spend effort on increasing P, maximizing the amount of code that can be parallelized.

并行计算中的加速比是用并行前的执行速度和并行后的执行速度之比来表示的,它表示了在并行化之后的效率提升情况。

阿姆达尔定律固定负载(计算总量不变时)时的量化标准。可用公式:来表示。式中分别表示问题规模的串行分量(问题中不能并行化的那一部分)和并行分量,p表示处理器数量。

Read more at: http://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#ixzz322tn7J9x

Follow us: @GPUComputing on Twitter | NVIDIA on Facebook

Gustafson's Law

Gustafson's Law (also known as Gustafson–Barsis' law) is a law in computer science which says that computations involving arbitrarily large data sets can be efficiently parallelized. Gustafson's Law provides a counterpoint to Amdahl's law, which describes a limit on the speed-up that parallelization can provide, given a fixed data set size. Gustafson's law was first described [1] by John L. Gustafson and his colleague Edwin H. Barsis:

where P is the number of processors, S is the speedup, and  the non-parallelizable fraction of any parallel process.

两者的形象的解释

Amdahl's Law approximately suggests:

Suppose a car is traveling between two cities 60 miles apart, and has already spent one hour traveling half the distance at 30 mph. No matter how fast you drive the last half, it is impossible to achieve 90 mph average before reaching the second city. Since it has already taken you 1 hour and you only have a distance of 60 miles total; going infinitely fast you would only achieve 60 mph.

Gustafson's Law approximately states:

Suppose a car has already been traveling for some time at less than 90mph. Given enough time and distance to travel, the car's average speed can always eventually reach 90mph, no matter how long or how slowly it has already traveled. For example, if the car spent one hour at 30 mph, it could achieve this by driving at 120 mph for two additional hours, or at 150 mph for an hour, and so on.

阿姆达尔定律和Gustafson law相关推荐

  1. 阿姆达尔定律(Amdahl’s Law)

    阿姆达尔定律是一个计算机科学界的经验法则,因IBM公司计算机架构师吉恩·阿姆达尔而得名.吉恩·阿姆达尔在1967年发表的论文中提出了这个重要定律. 阿姆达尔定律主要用于发现仅仅系统的部分得到改进,整体 ...

  2. 并行计算系列-阿姆达尔定律(Amdahl‘s Law)

    阿姆达尔定律是一个计算机科学界的经验法则,因IBM公司计算机架构师吉恩·阿姆达尔而得名.吉恩·阿姆达尔在1967年发表的论文中提出了这个重要定律. 阿姆达尔定律主要用于发现仅仅系统的部分得到改进,整体 ...

  3. 论文:Amdahl(阿姆达尔定律)与Gustafson(古斯塔夫森定律)。

    在高并发程序设计中有两个非常重要的定律: Amdahl(阿姆达尔定律) Gustafson定律(古斯塔夫森定律) 这两个定律从不同的角度诠释了加速比与系统串行化程度.cpu核心数之间的关系,它们是我们 ...

  4. Amdahl(阿姆达尔定律) Law

    推导 局限性 串行程序的优化 和边际收益递减规律的关系 举例 阿姆达尔定律给出了任务在固定负载的情况下,随着系统资源的提升,执行速度的理论上限.以计算机科学家Gene Amdahl命名. Slaten ...

  5. 阿姆达尔定律(Amdahl's law)

    首先给出阿姆达尔定律的数学公式描述: S(N)=1(1−p)+pN S(N)=\frac1{(1-p)+\frac pN} pp:程序中可并行部分的程序在单核上执行时间的占比: NN:处理器的数目(总 ...

  6. 阿姆达尔定律和古斯塔夫森定律

    摘要 构建软件的并行版本可使应用在更短的时间内运行指定的数据集,在固定时间内运行多个数据集,或运行非线程软件禁止运行的大型数据集. 并行化的成功通常通过测量并行版本的加速(相对于串行版本)来进行量化. ...

  7. 阿姆达尔定律 是什么 Amdahl 并行效率计算经验法则

    阿姆达尔定律(Amdahl) 是计算机界的一个经验法则.是以计算机科学家吉恩·阿姆达尔来命名的. 它表示串行执行的计算机程序在并行执行后效率的 提升. 它给 出了使用并行处理理论上能带来的效率提高. ...

  8. 摩尔定律与阿姆达尔定律

    摩尔定律 当价格不变时,集成电路上可容纳的元器件的数目,约每隔18-24个月便会增加一倍,性能也将提升一倍 CPU长期都是以指数型快速提高,但是近年来,CPU主频始终保持在4G赫兹左右,无法再进一步提 ...

  9. Amdahl’s law (阿姆达尔定律)的演化和思考

    G.M.Amdahl在1967年提出了Amdahl's law,针对并行处理的scalability给出了一个模型,指出使用并行处理的提速由问题的可并行的部分所决定.这个模型为并行计算系统的设计者提供 ...

最新文章

  1. DIKW体系(Data-Information-Knowlege-Wisdom)
  2. 绿色版mysql安装步骤
  3. XSS漏洞自动化攻击工具XSSer
  4. python setup用法_python的构建工具setup.py的方法使用示例
  5. EMC与地之重新认识地
  6. linux安装主从mysql,mysql8.0安装以及主从复制搭建(linux)
  7. 用了虚拟机Linux不能上网,虚拟机Linux不能上网怎么办
  8. PHP路径realpath __FILE__ __DIR__ dirname
  9. eclipse 连接mysql_eclipse连接MySQL
  10. HTTPS连接的前几毫秒发生了什么
  11. Qt-VS开发:解决VS中使用带有信号槽的导出对象库时,信号槽不工作的问题
  12. (47)fs创建多级目录
  13. kafka + storm 错误 Async loop died
  14. 北京大学生物信息学学习(7)NGS 分析
  15. 剑指offe——61序列化二叉树(Python)
  16. Ajax学习一 创建Ajax对象(高洛峰)
  17. corosync/openais+pacemaker+drbd+web实现web服务高可用集群
  18. 机器学习-预剪枝和后剪枝
  19. arduino烧写报错:can‘t open device “\\.\COM1“
  20. 年轻的战场--(抢了一个大沙发,老衲笑而不语,哈哈。。)

热门文章

  1. 商标被抢注的坑,自媒体人如何主动避开?
  2. R以国民CPI数据为例绘制箱尾/条状/星相/饼图
  3. 关于 移动硬盘 接入有反应却无 磁盘
  4. 压力测试工具WCAT
  5. 计算机系统硬盘拷贝,不用互助,轻松搞定新旧电脑间系统完整复制或硬盘更换!...
  6. 金融业务-金融市场的分类以及重要性
  7. android studio 使用Mocklocation虚拟定位总结
  8. Linux系统与Windows系统之间共享文件资源
  9. 视频剪辑学习 pr 中视频
  10. 读书心得《男人来自火星,女人来自金星》