In computer architecture, Amdahl's law (or Amdahl's argument[1]) is a formula that shows how much faster a task can be completed when you add more resources to the system.
The law can be stated as:
"the overall performance improvement gained by optimizing a single part of a system is limited by the fraction of time that the improved part is actually used".[2]
Amdahl's law is often used in parallel computing to predict the theoretical speedup when using multiple processors.
Definition
In the context of Amdahl's law, speedup can be defined as: [3]
Amdahl's law can be formulated in the following way: [4]
where
represents the total speedup of a program
represents time spent on the code where parallelism is used
represents the extent of the improvement
The is frequently much lower than one might expect. For instance, if a programmer enhances a part of the code that represents 10% of the total execution time (i.e. of 0.10) and achieves a of 10,000, then becomes 1.11 which means only 11% improvement in total speedup of the program. So, despite a massive improvement in one section, the overall benefit is quite small. In another example, if the programmer optimizes a section that accounts for 99% of the execution time (i.e. of 0.99) with a speedup factor of 100 (i.e. of 100), the only reaches 50. This indicates that half of the potential performance gain ( will reach 100 if 100% of the execution time is covered) is lost due to the remaining 1% of execution time that was not improved. [4]
Implications
Followings are implications of Amdahl's law: [5][6]
Balance efforts between improving both parallelizable and non-parallelizable parts of a tasks to get the best overall performance improvement.
Diminishing Returns: Adding more processors gives diminishing returns. Beyond a certain point, adding more processors doesn't significantly increase speedup.
Limited Speedup: Even with many processors, there's a limit to how much faster a task can be completed due to parts of the task that cannot be parallelized.
Limitations
Followings are limitations of Amdahl's law: [7][3][8]
Assumption of Fixed Workload: Amdahl's Law assumes that the workload remains constant. It doesn't account for dynamic or increasing workloads, which can impact the effectiveness of parallel processing.
Neglecting extrinsic factors: Amdahl's Law addresses computational parallelism, neglecting extrinsic factors such as data persistence, I/O operations, and memory access overheads, and assumes idealized conditions.
Scalability Issues: While it highlights the limits of parallel speedup, it doesn't address practical scalability issues, such as the cost and complexity of adding more processors.
Non-Parallelizable Work: Amdahl's Law emphasizes the non-parallelizable portion of the task as a bottleneck but doesn’t provide solutions for reducing or optimizing this portion.
Assumes Homogeneous Processors: It assumes that all processors are identical and contribute equally to speedup, which may not be the case in heterogeneous computing environments.
Amdahl's law applies only to the cases where the problem size is fixed. In practice, as more computing resources become available, they tend to get used on larger problems (larger datasets), and the time spent in the parallelizable part often grows much faster than the inherently serial work. In this case, Gustafson's law gives a less pessimistic and more realistic assessment of the parallel performance.[10]
A task executed by a system whose resources are improved compared to an initial similar system can be split up into two parts:
a part that does not benefit from the improvement of the resources of the system;
a part that benefits from the improvement of the resources of the system.
An example is a computer program that processes files. A part of that program may scan the directory of the disk and create a list of files internally in memory. After that, another part of the program passes each file to a separate thread for processing. The part that scans the directory and creates the file list cannot be sped up on a parallel computer, but the part that processes the files can.
The execution time of the whole task before the improvement of the resources of the system is denoted as . It includes the execution time of the part that would not benefit from the improvement of the resources and the execution time of the one that would benefit from it. The fraction of the execution time of the task that would benefit from the improvement of the resources is denoted by . The one concerning the part that would not benefit from it is therefore . Then:
It is the execution of the part that benefits from the improvement of the resources that is accelerated by the factor after the improvement of the resources. Consequently, the execution time of the part that does not benefit from it remains the same, while the part that benefits from it becomes:
The theoretical execution time of the whole task after the improvement of the resources is then:
Amdahl's law gives the theoretical speedup in latency of the execution of the whole task at fixed workload , which yields
Parallel programs
If 30% of the execution time may be the subject of a speedup, p will be 0.3; if the improvement makes the affected part twice as fast, s will be 2. Amdahl's law states that the overall speedup of applying the improvement will be:
For example, assume that we are given a serial task which is split into four consecutive parts, whose percentages of execution time are p1 = 0.11, p2 = 0.18, p3 = 0.23, and p4 = 0.48 respectively. Then we are told that the 1st part is not sped up, so s1 = 1, while the 2nd part is sped up 5 times, so s2 = 5, the 3rd part is sped up 20 times, so s3 = 20, and the 4th part is sped up 1.6 times, so s4 = 1.6. By using Amdahl's law, the overall speedup is
Notice how the 5 times and 20 times speedup on the 2nd and 3rd parts respectively don't have much effect on the overall speedup when the 4th part (48% of the execution time) is accelerated by only 1.6 times.
Serial programs
For example, with a serial program in two parts A and B for which TA = 3 s and TB = 1 s,
if part B is made to run 5 times faster, that is s = 5 and p = TB/(TA + TB) = 0.25, then
if part A is made to run 2 times faster, that is s = 2 and p = TA/(TA + TB) = 0.75, then
Therefore, making part A to run 2 times faster is better than making part B to run 5 times faster. The percentage improvement in speed can be calculated as
Improving part A by a factor of 2 will increase overall program speed by a factor of 1.60, which makes it 37.5% faster than the original computation.
However, improving part B by a factor of 5, which presumably requires more effort, will achieve an overall speedup factor of 1.25 only, which makes it 20% faster.
Optimizing the sequential part of parallel programs
If the non-parallelizable part is optimized by a factor of , then
It follows from Amdahl's law that the speedup due to parallelism is given by
When , we have , meaning that the speedup is
measured with respect to the execution time after the non-parallelizable part is optimized.
When ,
If , and , then:
Transforming sequential parts of parallel programs into parallelizable
Next, we consider the case wherein the non-parallelizable part is reduced by a factor of , and the parallelizable part is correspondingly increased. Then
It follows from Amdahl's law that the speedup due to parallelism is given by
Relation to the law of diminishing returns
Amdahl's law is often conflated with the law of diminishing returns, whereas only a special case of applying Amdahl's law demonstrates law of diminishing returns. If one picks optimally (in terms of the achieved speedup) what is to be improved, then one will see monotonically decreasing improvements as one improves. If, however, one picks non-optimally, after improving a sub-optimal component and moving on to improve a more optimal component, one can see an increase in the return. Note that it is often rational to improve a system in an order that is "non-optimal" in this sense, given that some improvements are more difficult or require larger development time than others.
Amdahl's law does represent the law of diminishing returns if one is considering what sort of return one gets by adding more processors to a machine, if one is running a fixed-size computation that will use all available processors to their capacity. Each new processor added to the system will add less usable power than the previous one. Each time one doubles the number of processors the speedup ratio will diminish, as the total throughput heads toward the limit of 1/(1 − p).
This analysis neglects other potential bottlenecks such as memory bandwidth and I/O bandwidth. If these resources do not scale with the number of processors, then merely adding processors provides even lower returns.
An implication of Amdahl's law is that to speed up real applications which have both serial and parallel portions, heterogeneous computing techniques are required.[12] There are novel speedup and energy consumption models based on a more general representation of heterogeneity, referred to as the normal form heterogeneity, that support a wide range of heterogeneous many-core architectures. These modelling methods aim to predict system power efficiency and performance ranges, and facilitates research and development at the hardware and system software levels.[13][14]
Artikel ini perlu diwikifikasi agar memenuhi standar kualitas Wikipedia. Anda dapat memberikan bantuan berupa penambahan pranala dalam, atau dengan merapikan tata letak dari artikel ini. Untuk keterangan lebih lanjut, klik [tampil] di bagian kanan. Mengganti markah HTML dengan markah wiki bila dimungkinkan. Tambahkan pranala wiki. Bila dirasa perlu, buatlah pautan ke artikel wiki lainnya dengan cara menambahkan [[ dan ]] pada kata yang bersangkutan (lihat WP:LINK untuk keterangan lebih lanjut...
Radio station in Sioux City, Iowa KMNSSioux City, IowaUnited StatesFrequency620 kHzBrandingFox Sports Radio 620ProgrammingFormatSportsAffiliationsFox Sports RadioMinnesota VikingsSioux City MusketeersOwnershipOwneriHeartMedia, Inc.(iHM Licenses, LLC)Sister stationsKGLI, KSEZ, KSFT-FM, KWSLHistoryFirst air dateMay 1, 1949 (1949-05-01)Former call signsKCOM (1949–1954)Call sign meaningMusic, News and Sports[1]Technical information[2]Licensing authorityFCCFacility...
Stratovolcano in the state of Alaska Mount GriggsNW view from west rim of Katmai caldera, July 1990Highest pointElevation7,602 ft (2,317 m)[1]Prominence7,300 ft (2,200 m)ListingNorth America prominent 60thNorth America isolated 91stCoordinates58°21′26″N 155°06′13″W / 58.3572°N 155.1037°W / 58.3572; -155.1037[2]GeographyMount GriggsAlaska LocationKatmai National Park and Preserve, Lake and Peninsula Borough, Alaska, U...
Mount Sinai Phillips School of NursingTypePrivate, NonprofitEstablished1902Parent institutionMount Sinai Health SystemAccreditation1904Students~300Address148 East 126th Street, New York, NY, New York City, New York, United StatesCampusUrbanWebsitehttps://www.mountsinai.org/locations/mount-sinai/pson Mount Sinai Phillips School of Nursing (PSON) is the school of nursing is a private nonprofit in the Mount Sinai Health System in New York City. Founded in 1902 as the Beth Israel School of Nursin...
Post-classical Chinese philosophy bringing together Taoist and Confucian beliefs Xuanxue (simplified Chinese: 玄学; traditional Chinese: 玄學; pinyin: Xuánxué; Wade–Giles: Hsüan2-hsüeh2), sometimes called Neo-Daoism (Neo-Taoism), is a metaphysical post-classical Chinese philosophy from the Six Dynasties (222-589), bringing together Taoist and Confucian beliefs through revision and discussion. The movement found its scriptural support both in Taoist and drastically re...
Newspaper from Ecuador El ComercioTypeDaily newspaperFormatBroadsheetOwner(s)Grupo El Comercio C. A.Editor-in-chiefNoneEditorNoneFounded1906Political alignmentCenter-rightConservativeLanguageSpanishHeadquartersAvenida Pedro Vicente Maldonado 11515. Quito, EcuadorCirculation40.000 Daily 78.000 SundayWebsiteelcomercio.com El Comercio was a daily Ecuadorian newspaper in Quito. It covers news from inside and outside the country, although its focus is primarily on the former, especially on Quito, ...
This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this article by introducing more precise citations. (November 2019) (Learn how and when to remove this message) The Lazio Pigeon Shooting Stand was a temporary firing range built near the Olympic village in Rome. It was used for the trap shooting event for the 1960 Summer Olympics. References 1960 Summer Olympics official report....
Demography of the Population of Panama Demographics of PanamaPopulation pyramid of Panama in 2020Population4,337,768 (2022 est.)Growth rate1.53% (2022 est.)Birth rate14.5 births/1,000 population (2022)Death rate5.2 deaths/1,000 population (2022)Life expectancy77.62 years • male74.76 years • female80.66 yearsFertility rate1.92 children per woman (2022)Infant mortality rate16.44 deaths/1,000 live birthsNet migration rate3.42 migrant(s)/1,000 populationAge structure0...
Cet article est une ébauche concernant l’art et une chronologie ou une date. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Chronologies Données clés 1830 1831 1832 1833 1834 1835 1836Décennies :1800 1810 1820 1830 1840 1850 1860Siècles :XVIIe XVIIIe XIXe XXe XXIeMillénaires :-Ier Ier IIe IIIe Chronologies géographiques Afrique Afrique du S...
Flying discat the 2001 World GamesAkita Prefectural Central ParkVenuesAkita Prefectural Central Park Disc Golf Course (disc golf)Akita Prefectural Central Park Football Studiume (ultimate)Dates17–21 August 2001Competitors72 from 8 nations← 19972005 → The flying disc events at the 2001 World Games in Akita was played between 17 and 21 August.[1] 72 athletes, from 8 nations, participated in the tournament. The competition took place at Akita Prefectura...
Wilderness area in the Willamette National Forest Opal Creek WildernessIUCN category Ib (wilderness area)Old growth in Opal Creek WildernessLocationMarion / Clackamas counties, Oregon, United States[1]Nearest cityDetroit, OregonCoordinates44°50′48.14″N 122°12′32.79″W / 44.8467056°N 122.2091083°W / 44.8467056; -122.2091083Area20,746 acres (8,396 ha)[2]EstablishedSeptember 30, 1996Governing bodyUnited States Forest Service Cabin...
Children's baseball tournament 2018 Little League World SeriesTournament detailsDatesAugust 16–August 26Teams16Final positionsChampions Honolulu Little League, Honolulu, HawaiiRunner-up South Seoul Little League, Seoul, South Korea← 20172019 → The 2018 Little League World Series was held from August 16 to August 26 at the Little League headquarters complex in South Williamsport, Pennsylvania. Eight teams from the United States and eight teams from around the world comp...
State park in Virginia, USA Sailor's Creek Battlefield Historical State Park (Prince Edward County, Virginia), Rice, Virginia, U.S.A.Entry sign, with the Overton-Hillsman House in the backgroundLocation of Sailor's Creek Battlefield Historical State Park (Battle of Sayler's Creek - April 6th, 1865)Show map of VirginiaSailor's Creek Battlefield Historical State Park (the United States)Show map of the United StatesLocation6541 Saylers Creek Road, (Prince Edward County), Rice, Virginia 23966Coor...
Pour les articles homonymes, voir Cap Finisterre et Penn-ar-Bed. Pour les articles ayant des titres homophones, voir Finistair et Finisterre. Finistère Administration Pays France Région Bretagne Création du département 4 mars 1790 Chef-lieu(Préfecture) Quimper Sous-préfectures BrestChâteaulinMorlaix Président duconseil départemental Maël de Calan (SL) Préfet Alain Espinasse[1] Code Insee 29 Code ISO 3166-2 FR-29 Code Eurostat NUTS-3 FR522 Démographie Gentilé Finistérien Populat...
لمعانٍ أخرى، طالع باريس (توضيح). باريس الإحداثيات 39°28′49″N 92°00′04″W / 39.4803°N 92.0011°W / 39.4803; -92.0011 [1] تاريخ التأسيس 1831 تقسيم إداري البلد الولايات المتحدة[2][3] التقسيم الأعلى مقاطعة مونرو عاصمة لـ مقاطعة مونرو خصائص جغراف�...
American prospector and businessman This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Obadiah Bush – news · newspapers · books · scholar · JSTOR (October 2015) (Learn how and when to remove this message) Obadiah BushBornObadiah Newcomb Bush(1797-01-28)January 28, 1797Penfield, New York, U.S.DiedFebruary 9, 185...
Canadian actor (1935–2024) Donald SutherlandCCSutherland in 2013Born(1935-07-17)17 July 1935Saint John, New Brunswick, CanadaDied20 June 2024(2024-06-20) (aged 88)Miami, Florida, U.S.Alma mater Victoria University, Toronto London Academy of Music and Dramatic Art OccupationActorYears active1963–2023Notable workFilmographySpouses Lois May Hardwick (m. 1959; div. 1966) Shirley Douglas (m. 1966;...