Multi-core processor explained

A multi-core processor (MCP) is a microprocessor on a single integrated circuit (IC) with two or more separate central processing units (CPUs), called cores to emphasize their multiplicity (for example, dual-core or quad-core). Each core reads and executes program instructions,[1] specifically ordinary CPU instructions (such as add, move data, and branch). However, the MCP can run instructions on separate cores at the same time, increasing overall speed for programs that support multithreading or other parallel computing techniques.[2] Manufacturers typically integrate the cores onto a single IC die, known as a chip multiprocessor (CMP), or onto multiple dies in a single chip package. As of 2024, the microprocessors used in almost all new personal computers are multi-core.

A multi-core processor implements multiprocessing in a single physical package. Designers may couple cores in a multi-core device tightly or loosely. For example, cores may or may not share caches, and they may implement message passing or shared-memory inter-core communication methods. Common network topologies used to interconnect cores include bus, ring, two-dimensional mesh, and crossbar. Homogeneous multi-core systems include only identical cores; heterogeneous multi-core systems have cores that are not identical (e.g. big.LITTLE have heterogeneous cores that share the same instruction set, while AMD Accelerated Processing Units have cores that do not share the same instruction set). Just as with single-processor systems, cores in multi-core systems may implement architectures such as VLIW, superscalar, vector, or multithreading.

Multi-core processors are widely used across many application domains, including general-purpose, embedded, network, digital signal processing (DSP), and graphics (GPU). Core count goes up to even dozens, and for specialized chips over 10,000, and in supercomputers (i.e. clusters of chips) the count can go over 10 million (and in one case up to 20 million processing elements total in addition to host processors).[3]

The improvement in performance gained by the use of a multi-core processor depends very much on the software algorithms used and their implementation. In particular, possible gains are limited by the fraction of the software that can run in parallel simultaneously on multiple cores; this effect is described by Amdahl's law. In the best case, so-called embarrassingly parallel problems may realize speedup factors near the number of cores, or even more if the problem is split up enough to fit within each core's cache(s), avoiding use of much slower main-system memory. Most applications, however, are not accelerated as much unless programmers invest effort in refactoring.[4]

The parallelization of software is a significant ongoing topic of research. Cointegration of multiprocessor applications provides flexibility in network architecture design. Adaptability within parallel models is an additional feature of systems utilizing these protocols.[5]

In the consumer market, dual-core processors (that is, microprocessors with two units) started becoming commonplace on personal computers in the late 2000s.[6] Quad-core processors were also being adopted in that era for higher-end systems before becoming standard. In the late 2010s, hexa-core (six cores) started entering the mainstream[7] and since the early 2020s has overtaken quad-core in many spaces.[8]

Terminology

The terms multi-core and dual-core most commonly refer to some sort of central processing unit (CPU), but are sometimes also applied to digital signal processors (DSP) and system on a chip (SoC). The terms are generally used only to refer to multi-core microprocessors that are manufactured on the same integrated circuit die; separate microprocessor dies in the same package are generally referred to by another name, such as multi-chip module. This article uses the terms "multi-core" and "dual-core" for CPUs manufactured on the same integrated circuit, unless otherwise noted.

In contrast to multi-core systems, the term multi-CPU refers to multiple physically separate processing-units (which often contain special circuitry to facilitate communication between each other).

The terms many-core and massively multi-core are sometimes used to describe multi-core architectures with an especially high number of cores (tens to thousands[9]).[10]

Some systems use many soft microprocessor cores placed on a single FPGA. Each "core" can be considered a "semiconductor intellectual property core" as well as a CPU core.

Development

While manufacturing technology improves, reducing the size of individual gates, physical limits of semiconductor-based microelectronics have become a major design concern. These physical limitations can cause significant heat dissipation and data synchronization problems. Various other methods are used to improve CPU performance. Some instruction-level parallelism (ILP) methods such as superscalar pipelining are suitable for many applications, but are inefficient for others that contain difficult-to-predict code. Many applications are better suited to thread-level parallelism (TLP) methods, and multiple independent CPUs are commonly used to increase a system's overall TLP. A combination of increased available space (due to refined manufacturing processes) and the demand for increased TLP led to the development of multi-core CPUs.

Commercial incentives

Several business motives drive the development of multi-core architectures. For decades, it was possible to improve performance of a CPU by shrinking the area of the integrated circuit (IC), which reduced the cost per device on the IC. Alternatively, for the same circuit area, more transistors could be used in the design, which increased functionality, especially for complex instruction set computing (CISC) architectures. Clock rates also increased by orders of magnitude in the decades of the late 20th century, from several megahertz in the 1980s to several gigahertz in the early 2000s.

As the rate of clock speed improvements slowed, increased use of parallel computing in the form of multi-core processors has been pursued to improve overall processing performance. Multiple cores were used on the same CPU chip, which could then lead to better sales of CPU chips with two or more cores. For example, Intel has produced a 48-core processor for research in cloud computing; each core has an x86 architecture.[11] [12]

Technical factors

Since computer manufacturers have long implemented symmetric multiprocessing (SMP) designs using discrete CPUs, the issues regarding implementing multi-core processor architecture and supporting it with software are well known.

Additionally:

In order to continue delivering regular performance improvements for general-purpose processors, manufacturers such as Intel and AMD have turned to multi-core designs, sacrificing lower manufacturing-costs for higher performance in some applications and systems. Multi-core architectures are being developed, but so are the alternatives. An especially strong contender for established markets is the further integration of peripheral functions into the chip.

Advantages

The proximity of multiple CPU cores on the same die allows the cache coherency circuitry to operate at a much higher clock rate than what is possible if the signals have to travel off-chip. Combining equivalent CPUs on a single die significantly improves the performance of cache snoop (alternative: Bus snooping) operations. Put simply, this means that signals between different CPUs travel shorter distances, and therefore those signals degrade less. These higher-quality signals allow more data to be sent in a given time period, since individual signals can be shorter and do not need to be repeated as often.

Assuming that the die can physically fit into the package, multi-core CPU designs require much less printed circuit board (PCB) space than do multi-chip SMP designs. Also, a dual-core processor uses slightly less power than two coupled single-core processors, principally because of the decreased power required to drive signals external to the chip. Furthermore, the cores share some circuitry, like the L2 cache and the interface to the front-side bus (FSB). In terms of competing technologies for the available silicon die area, multi-core design can make use of proven CPU core library designs and produce a product with lower risk of design error than devising a new wider-core design. Also, adding more cache suffers from diminishing returns.

Multi-core chips also allow higher performance at lower energy. This can be a big factor in mobile devices that operate on batteries. Since each core in a multi-core CPU is generally more energy-efficient, the chip becomes more efficient than having a single large monolithic core. This allows higher performance with less energy. A challenge in this, however, is the additional overhead of writing parallel code.[14]

Disadvantages

Maximizing the usage of the computing resources provided by multi-core processors requires adjustments both to the operating system (OS) support and to existing application software. Also, the ability of multi-core processors to increase application performance depends on the use of multiple threads within applications.

Integration of a multi-core chip can lower the chip production yields. They are also more difficult to manage thermally than lower-density single-core designs. Intel has partially countered this first problem by creating its quad-core designs by combining two dual-core ones on a single die with a unified cache, hence any two working dual-core dies can be used, as opposed to producing four cores on a single die and requiring all four to work to produce a quad-core CPU. From an architectural point of view, ultimately, single CPU designs may make better use of the silicon surface area than multiprocessing cores, so a development commitment to this architecture may carry the risk of obsolescence. Finally, raw processing power is not the only constraint on system performance. Two processing cores sharing the same system bus and memory bandwidth limits the real-world performance advantage.

Hardware

Trends

The trend in processor development has been towards an ever-increasing number of cores, as processors with hundreds or even thousands of cores become theoretically possible.[15] In addition, multi-core chips mixed with simultaneous multithreading, memory-on-chip, and special-purpose "heterogeneous" (or asymmetric) cores promise further performance and efficiency gains, especially in processing multimedia, recognition and networking applications. For example, a big.LITTLE core includes a high-performance core (called 'big') and a low-power core (called 'LITTLE'). There is also a trend towards improving energy-efficiency by focusing on performance-per-watt with advanced fine-grain or ultra fine-grain power management and dynamic voltage and frequency scaling (i.e. laptop computers and portable media players).

Chips designed from the outset for a large number of cores (rather than having evolved from single core designs) are sometimes referred to as manycore designs, emphasising qualitative differences.

Architecture

The composition and balance of the cores in multi-core architecture show great variety. Some architectures use one core design repeated consistently ("homogeneous"), while others use a mixture of different cores, each optimized for a different, "heterogeneous" role.

How multiple cores are implemented and integrated significantly affects both the developer's programming skills and the consumer's expectations of apps and interactivity versus the device.[16] A device advertised as being octa-core will only have independent cores if advertised as True Octa-core, or similar styling, as opposed to being merely two sets of quad-cores each with fixed clock speeds.[17] [18]

The article "CPU designers debate multi-core future" by Rick Merritt, EE Times 2008,[19] includes these comments:

Software effects

An outdated version of an anti-virus application may create a new thread for a scan process, while its GUI thread waits for commands from the user (e.g. cancel the scan). In such cases, a multi-core architecture is of little benefit for the application itself due to the single thread doing all the heavy lifting and the inability to balance the work evenly across multiple cores. Programming truly multithreaded code often requires complex co-ordination of threads and can easily introduce subtle and difficult-to-find bugs due to the interweaving of processing on data shared between threads (see thread-safety). Consequently, such code is much more difficult to debug than single-threaded code when it breaks. There has been a perceived lack of motivation for writing consumer-level threaded applications because of the relative rarity of consumer-level demand for maximum use of computer hardware. Also, serial tasks like decoding the entropy encoding algorithms used in video codecs are impossible to parallelize because each result generated is used to help create the next result of the entropy decoding algorithm.

Given the increasing emphasis on multi-core chip design, stemming from the grave thermal and power consumption problems posed by any further significant increase in processor clock speeds, the extent to which software can be multithreaded to take advantage of these new chips is likely to be the single greatest constraint on computer performance in the future. If developers are unable to design software to fully exploit the resources provided by multiple cores, then they will ultimately reach an insurmountable performance ceiling.

The telecommunications market had been one of the first that needed a new design of parallel datapath packet processing because there was a very quick adoption of these multiple-core processors for the datapath and the control plane. These MPUs are going to replace[20] the traditional Network Processors that were based on proprietary microcode or picocode.

Parallel programming techniques can benefit from multiple cores directly. Some existing parallel programming models such as Cilk Plus, OpenMP, OpenHMPP, FastFlow, Skandium, MPI, and Erlang can be used on multi-core platforms. Intel introduced a new abstraction for C++ parallelism called TBB. Other research efforts include the Codeplay Sieve System, Cray's Chapel, Sun's Fortress, and IBM's X10.

Multi-core processing has also affected the ability of modern computational software development. Developers programming in newer languages might find that their modern languages do not support multi-core functionality. This then requires the use of numerical libraries to access code written in languages like C and Fortran, which perform math computations faster than newer languages like C#. Intel's MKL and AMD's ACML are written in these native languages and take advantage of multi-core processing. Balancing the application workload across processors can be problematic, especially if they have different performance characteristics. There are different conceptual models to deal with the problem, for example using a coordination language and program building blocks (programming libraries or higher-order functions). Each block can have a different native implementation for each processor type. Users simply program using these abstractions and an intelligent compiler chooses the best implementation based on the context.[21]

Managing concurrency acquires a central role in developing parallel applications. The basic steps in designing parallel applications are:

Partitioning : The partitioning stage of a design is intended to expose opportunities for parallel execution. Hence, the focus is on defining a large number of small tasks in order to yield what is termed a fine-grained decomposition of a problem.
Communication : The tasks generated by a partition are intended to execute concurrently but cannot, in general, execute independently. The computation to be performed in one task will typically require data associated with another task. Data must then be transferred between tasks so as to allow computation to proceed. This information flow is specified in the communication phase of a design.
Agglomeration : In the third stage, development moves from the abstract toward the concrete. Developers revisit decisions made in the partitioning and communication phases with a view to obtaining an algorithm that will execute efficiently on some class of parallel computer. In particular, developers consider whether it is useful to combine, or agglomerate, tasks identified by the partitioning phase, so as to provide a smaller number of tasks, each of greater size. They also determine whether it is worthwhile to replicate data and computation.
Mapping : In the fourth and final stage of the design of parallel algorithms, the developers specify where each task is to execute. This mapping problem does not arise on uniprocessors or on shared-memory computers that provide automatic task scheduling.

On the other hand, on the server side, multi-core processors are ideal because they allow many users to connect to a site simultaneously and have independent threads of execution. This allows for Web servers and application servers that have much better throughput.

Licensing

Vendors may license some software "per processor". This can give rise to ambiguity, because a "processor" may consist either of a single core or of a combination of cores.

Embedded applications

Embedded computing operates in an area of processor technology distinct from that of "mainstream" PCs. The same technological drives towards multi-core apply here too. Indeed, in many cases the application is a "natural" fit for multi-core technologies, if the task can easily be partitioned between the different processors.

In addition, embedded software is typically developed for a specific hardware release, making issues of software portability, legacy code or supporting independent developers less critical than is the case for PC or enterprise computing. As a result, it is easier for developers to adopt new technologies and as a result there is a greater variety of multi-core processing architectures and suppliers.

Network processors

, multi-core network processors have become mainstream, with companies such as Freescale Semiconductor, Cavium Networks, Wintegra and Broadcom all manufacturing products with eight processors. For the system developer, a key challenge is how to exploit all the cores in these devices to achieve maximum networking performance at the system level, despite the performance limitations inherent in a symmetric multiprocessing (SMP) operating system. Companies such as 6WIND provide portable packet processing software designed so that the networking data plane runs in a fast path environment outside the operating system of the network device.[24]

Digital signal processing

In digital signal processing the same trend applies: Texas Instruments has the three-core TMS320C6488 and four-core TMS320C5441, Freescale the four-core MSC8144 and six-core MSC8156 (and both have stated they are working on eight-core successors). Newer entries include the Storm-1 family from Stream Processors, Inc with 40 and 80 general purpose ALUs per chip, all programmable in C as a SIMD engine and Picochip with 300 processors on a single die, focused on communication applications.

Heterogeneous systems

In heterogeneous computing, where a system uses more than one kind of processor or cores, multi-core solutions are becoming more common: Xilinx Zynq UltraScale+ MPSoC has a quad-core ARM Cortex-A53 and dual-core ARM Cortex-R5. Software solutions such as OpenAMP are being used to help with inter-processor communication.

Mobile devices may use the ARM big.LITTLE architecture.

Hardware examples

Commercial

Free

Academic

Benchmarks

The research and development of multicore processors often compares many options, and benchmarks are developed to help such evaluations. Existing benchmarks include SPLASH-2, PARSEC, and COSMIC for heterogeneous systems.[49]

See also

Notes

  1. Digital signal processors (DSPs) have used multi-core architectures for much longer than high-end general-purpose processors. A typical example of a DSP-specific implementation would be a combination of a RISC CPU and a DSP MPU. This allows for the design of products that require a general-purpose processor for user interfaces and a DSP for real-time data processing; this type of design is common in mobile phones. In other applications, a growing number of companies have developed multi-core DSPs with very large numbers of processors.
  2. Two types of operating systems are able to use a dual-CPU multiprocessor: partitioned multiprocessing and symmetric multiprocessing (SMP). In a partitioned architecture, each CPU boots into separate segments of physical memory and operate independently; in an SMP OS, processors work in a shared space, executing threads within the OS independently.

Further reading

External links

Notes and References

  1. Web site: Definition: multi-core processor. TechTarget. Rouse. Margaret. March 27, 2007. March 6, 2013. dead. https://web.archive.org/web/20100805052158/http://searchdatacenter.techtarget.com/sDefinition/0,,sid80_gci1015740,00.html. August 5, 2010.
  2. Web site: Multicore Processors – A Necessity. Schauer. Bryan. https://web.archive.org/web/20111125035151/http://www.csa.com/discoveryguides/multicore/review.pdf. 2011-11-25. dead.
  3. Web site: Sunway TaihuLight - Sunway MPP, Sunway SW26010 260C 1.45GHz, Sunway TOP500. 2020-09-15. www.top500.org.
  4. Web site: What makes parallel programming hard? . https://web.archive.org/web/20110529133159/http://www.futurechips.org/tips-for-power-coders/parallel-programming.html . dead . May 29, 2011 . FutureChips . Suleman . Aater . May 20, 2011 . March 6, 2013.
  5. Duran . A . Ompss: a proposal for programming heterogeneous multi-core architectures . Parallel Processing Letters . 2011 . 21 . 2. 173–193 . 10.1142/S0129626411000151 .
  6. Web site: Definition of dual core . 2023-10-27 . PCMAG . en.
  7. Web site: Intel taking its six-core processors mainstream in 2018 with Coffee Lake family . 2023-10-27 . ZDNET . en.
  8. News: Alan Dexter . 2022-04-05 . Six-core CPUs are now more popular than quad-core chips on Steam . 2024-05-22 . PC Gamer . en.
  9. Web site: The 2,048-core PEZY-SC2 sets a Green500 record. Schor. David. WikiChip. November 2017.
  10. Book: Vajda, András. Programming Many-Core Chips. 3. Springer. 978-1-4419-9739-5. 2011-06-10.
  11. Web site: Intel Shows 48-core x86 Processor as Single-chip Cloud Computer. Shrout. Ryan. December 2, 2009. May 17, 2015. live. https://web.archive.org/web/20160105080008/http://www.pcper.com/reviews/Processors/Intel-Shows-48-core-x86-Processor-Single-chip-Cloud-Computer. January 5, 2016.
  12. News: Intel unveils 48-core cloud computing silicon chip. BBC. December 3, 2009. March 6, 2013. live. https://web.archive.org/web/20121206054225/http://news.bbc.co.uk/2/hi/technology/8392392.stm. December 6, 2012.
  13. Patterson, David A. "Future of computer architecture." Berkeley EECS Annual Research Symposium (BEARS), College of Engineering, UC Berkeley, US. 2006.
  14. Web site: Q & A: Do multicores save energy? Not really.. Suleman. Aater. May 19, 2011. March 6, 2013. dead. https://web.archive.org/web/20121216051010/http://www.futurechips.org/chip-design-for-all/a-multicore-save-energy.html. December 16, 2012.
  15. Web site: Clark. Jack. Intel: Why a 1,000-core chip is feasible. ZDNet. 6 August 2015. live. https://web.archive.org/web/20150806181915/http://www.zdnet.com/article/intel-why-a-1000-core-chip-is-feasible/. 6 August 2015.
  16. Web site: These 5 Myths About the Octa-Core Phones Are Actually True . Giz Bot . Chakri . Kudikala . Aug 27, 2016 .
  17. MediaTek Launches MT6592 True Octa-Core Mobile Platform . November 20, 2013 . MediaTek . https://web.archive.org/web/20201029195636/https://www.mediatek.com/news-events/press-releases/mediatek-launches-mt6592-true-octa-core-mobile-platform . October 29, 2020 . dead.
  18. Web site: What is an Octa-core processor . Samsung . Galaxy smartphones run on either Octa-core (2.3GHz Quad + 1.6GHz Quad) or Quad-core (2.15GHz + 1.6GHz Dual) processors .
  19. Web site: CPU designers debate multi-core future. Merritt. Rick. EE Times. February 6, 2008. October 21, 2023.
  20. Web site: Multicore Packet Processing Forum. https://web.archive.org/web/20091221035434/http://www.multicorepacketprocessing.com/. 2009-12-21.
  21. John Darlinton . Moustafa Ghanem . Yike Guo . Hing Wing To . 1996 . Guided Resource Organisation in Heterogeneous Parallel Computing . Journal of High Performance Computing . 4 . 1 . 13–23 . 10.1.1.37.4309 .
  22. Web site: Peter. Bright. Windows Server 2016 moving to per core, not per socket, licensing. Ars Technica. Condé Nast. 5 December 2015. 4 December 2015. live. https://web.archive.org/web/20151204182323/http://arstechnica.com/information-technology/2015/12/windows-server-2016-moving-to-per-core-not-per-socket-licensing/. 4 December 2015.
  23. Compare:Web site: The Licensing Of Oracle Technology Products . OMT-CO Operations Management Technology Consulting GmbH . 2014-03-04 . live . https://web.archive.org/web/20140321021743/http://omtco.eu/references/oracle/the-licensing-of-oracle-technology-products-compliance-metrics-licensing-restrictions/ . 2014-03-21.
  24. Web site: 6WINDGATE Software: Network Optimization Software – SDN Software – Control Plane Software 6WIND.
  25. Web site: Sempron™ 3850 APU with Radeon™ R3 Series AMD. AMD. https://web.archive.org/web/20190504174559/https://www.amd.com/en/product/5911. 4 May 2019. live. 5 May 2019.
  26. Web site: Intel® Atom™ Processor C Series Product Specifications. ark.intel.com. en. 2019-05-04.
  27. Web site: Intel® Atom™ Processor Z Series Product Specifications. ark.intel.com. en. 2019-05-04.
  28. News: Intel Preps Dual-Core Celeron Processors. October 11, 2007. November 12, 2007. dead. https://web.archive.org/web/20071104025126/http://www.xbitlabs.com/news/cpu/display/20071011171900.html. November 4, 2007. dmy-all.
  29. Web site: Intel® Celeron® Processor J Series Product Specifications. ark.intel.com. en. 2019-05-04.
  30. Web site: Products formerly Yonah. ark.intel.com. 2019-05-04.
  31. Web site: Products formerly Conroe. ark.intel.com. 2019-05-04.
  32. Web site: Products formerly Kentsfield. ark.intel.com. 2019-05-04.
  33. Web site: Intel® Core™ X-series Processors Product Specifications. ark.intel.com. en. 2019-05-04.
  34. Web site: Intel® Itanium® Processor Product Specifications. ark.intel.com. en. 2019-05-04.
  35. Web site: Intel® Pentium® Processor D Series Product Specifications. ark.intel.com. en. 2019-05-04.
  36. Web site: Intel: 80 Cores by 2011. Zazaian. Mike. September 26, 2006. dead. https://web.archive.org/web/20061109031744/http://techfreep.com/intel-80-cores-by-2011.htm. 2006-11-09. 2006-09-28.
  37. Web site: Intel releases 15-core Xeon E7 v2 processor. Kowaliski. Cyril. February 18, 2014. live. https://web.archive.org/web/20141011023442/http://techreport.com/news/26056/intel-releases-15-core-xeon-e7-v2-processor. 2014-10-11.
  38. Web site: Intel Xeon Processor E7 v3 Family. Intel. live. https://web.archive.org/web/20150707122129/http://ark.intel.com/products/family/78585/Intel-Xeon-Processor-E7-v3-Family. 2015-07-07.
  39. Web site: Intel Xeon Processor E7 v2 Family. Intel. live. https://web.archive.org/web/20150707120021/http://ark.intel.com/products/family/78584/Intel-Xeon-Processor-E7-v2-Family. 2015-07-07.
  40. Web site: Intel Xeon Processor E3 v2 Family. Intel. live. https://web.archive.org/web/20150707120142/http://ark.intel.com/products/family/78580/Intel-Xeon-Processor-E3-v2-Family. 2015-07-07.
  41. Web site: Intel shows off Xeon Platinum CPU with up to 56 cores and 112 threads. TechSpot. 2 April 2019 . en-US. 2019-05-04.
  42. Web site: 2nd Gen Intel® Xeon® Scalable Processors Brief. PDF. Download. Intel. en. 2019-05-04.
  43. Web site: Intel® Xeon Phi™ x100 Product Family Product Specifications. ark.intel.com. en. 2019-05-04.
  44. Web site: Intel® Xeon Phi™ 72x5 Processor Family Product Specifications. ark.intel.com. en. 2019-05-04.
  45. Web site: 40-core processor with Forth-based IDE tools unveiled. Cole. Bernard. September 24, 2008.
  46. Web site: Smith. Ryan. NVIDIA Announces the GeForce RTX 30 Series: Ampere For Gaming, Starting With RTX 3080 & RTX 3090. 2020-09-15. www.anandtech.com.
  47. Hammond . Lance . The Stanford Hydra CMP . Hot Chips . 1999 . 27 June 2023 . etal.
  48. Web site: Meet KiloCore, a 1,000-core processor so efficient it could run on a AA battery. Chacos. Brad. June 20, 2016. PC World. live. https://web.archive.org/web/20160623105026/http://www.pcworld.com/article/3085502/components-processors/meet-kilocore-a-1000-core-processor-so-efficient-it-could-run-on-a-aa-battery.html. June 23, 2016.
  49. Web site: COSMIC Heterogeneous Multiprocessor Benchmark Suite. https://web.archive.org/web/20150703123808/http://www.ece.ust.hk/~eexu/COSMIC.html. 2015-07-03.