Sockets, Caches and Cores, Oh My!
A reader asks: 'I have been thinking about upgrading the CPU in my desktop, because it's a slow, cheap computer I bought three years ago. But the jargon is getting me down! Can you demystify all this talk of sockets, cores, clock speed, cache, etc?' Read on to learn more about the 'engine' under your computer's hood, and what upgrades make sense for your computer...
What's in a CPU?
When buying a car, what’s under the hood may matter a lot to you; or it may not. Some people don’t care how many cylinders an engine has as long as the car has leather seats, remote start, and the test drive is satisfactory. The same is true when buying any computerized device, be it a desktop PC, notebook, tablet, smartphone, or digital wristwatch.
This article is for readers who like to know what’s under the hood. We’re going to look at what a CPU is, what’s in it, and what really matters when comparing specs instead of hands-on performance.
The “engine” of a computer is its CPU, which stands for “central processing unit.” Physically, a CPU is a circuit board loaded with electronic components that talk to each other and, through hardwired channels, to other parts of the device. Each component is in a CPU for the same reason pistons and timing chains are in a car’s engine: they work best when they’re as close to each other as possible.
Two typical CPU components are the Arithmetic Logic Unit (ALU) and the Control Unit (CU). An ALU does the simple math that is the foundation of all digital computing: it adds and subtracts, that’s all. Combinations of many such simple operations, executed at lightning speed, yield multiplication, division, exponentiation, and even more complex computations. The CU inserts “math problems” into the ALU and extracts solutions that are passed to other components.
The Clock is Ticking…
The clock or “timer” provides an electrical signal that regulates the speed and timing of data flow and computations. To avoid errors, it is essential that data arrive at the point where it is to be manipulated at the right time; you don’t want to start calculating the square root of a number before the number arrives. (Yes, computers are dumb enough to try that, if unregulated). Regulating the clock speed also prevents overheating; the faster a CPU works the more waste heat it generates.
When comparing CPUs, you'll see clock speeds measured in GHz (gigahertz), and ranging from about 2.0 GHz to 5.0 GHz. Back in the day, you could assume that a higher clock speed (more gigahertz) meant a faster CPU. But because there are two major chip vendors (Intel and AMD), and multiple CPU families offered by each (such as Intel's Xeon, Intel Core i3/i5/i7/i9; AMD's Ryzen, Athlon and FX), you can't assume that any longer.
However, if you're comparing CPUs within a family, clock speed numbers have more meaning. A 5.00 GHz Intel Core i9 should outperform a 4.4 GHz Intel Core i9. But you should make no such assumption when comparing (for example) an AMD Ryzen 9 3950X (3.5 GHZ) to an Intel Xeon W-2235 (3.80GHz). Check out my article on CPU Benchmarking to learn more about how to compare the different CPU models.
Down to the Core
So far we've discussed the three essential components that comprise a basic CPU: the ALU, the CU and the timer. This bundle is often called a “core processor” or simply a “core.”
Today, many devices contain multiple cores. Each works on one part of a computational job and feeds its result to another component which combines results from all cores to produce a whole solution. This process is called multi-processing, and it’s de rigueur in modern devices.
Generally speaking, the more cores the better. You can buy CPUs with two, four, six, eight, sixteen or (if you're really rich) thirty-two cores. But to continue with the car metaphor, you don’t need a 16-cylinder race car for runs to the grocery store! Most desktop users will be quite satisfied with a 4-core CPU, such as those in the Intel Core i3 series. The Intel Core i5 CPUs can sport six processor cores, and the Core i9 can have up to eight processors. AMD's Ryzen series has 4, 6, 8, 16 and 32-core models.
Unfortunately, not all software applications that can take full advantage of multi-core technology. Such software must be "multi-threaded," meaning it's written to process data in multiple parallel sets of operations simultaneously, each thread using one core. Operating systems such as Windows 7, Windows 10, Mac OS X and Linux can take advantage of multiple cores, but if your application software is single-threaded it will use only one core even if multiple cores are present in your CPU. Video games and video editing software typically take good advantage of multi-core systems.
Cache vs. Cash
The “cache” of a CPU is a block of RAM (random access memory) used to speed up data access. Ideally, it stores the most frequently accessed data stored in the "main memory" RAM chips that are separate from the CPU. Cache memory is used to minimize the amount of time required to copy memory from RAM to the CPU. Those tiny fractions of a second add up when you’re doing billions of calculations per second.
Faster and larger cache memory is always better, but the amount of cache memory that you need depends on how much data is typically moved at one time. A Word document isn’t nearly as big as an HD video file. Handling email doesn't require the lightning speed that a gamer wants.
When comparing CPUs, you may see mentions of L1, L2, L3 Cache. L1 cache is always tiny, ranging from 32 to 640 KB (not megabytes or gigabytes). L2 and L3 cache numbers are more important. Honestly, I've never paid much attention to these figures, because I'm not crunching numbers for NASA or killing armies of invading zombies. But if you want to build a hot rod, look for L2/L3 cache numbers that are 10 MB or higher. Interestingly, Intel's web pages describing the latest processors don't even mention cache levels. Instead, they speak of Intel® Smart Cache, with figures ranging from 12MB to 16MB. Just be aware that more cache will mean more cash, and you probably won't be able to tell the difference in most cases.
Socket To Me
All the data that moves in and out of a CPU needs a road to travel on. Actually, there are many roads consisting of short, thin wires sticking out of the bottom of a CPU. These wires plug into sockets in the motherboard, completing connections that allow data to flow to different components (graphic processor, hard drive controller, etc.).
Various socket configurations have arisen over the years that improved data flow in different ways. You would have seen names like Socket 1 through Socket 7 on 486 computers in the early 1990s. Since then, an alphabet soup of socket names and numbers have arisen. You'll only care about the socket type if you plan to upgrade your motherboard with a bigger, badder CPU. You'll need a CPU that's compatible with the socket on your motherboard, unless you plan to swap them both.
Bottom line, clock speed, the number of cores, and the amount of cache memory are all factors to consider when choosing a CPU. But so is price, and the intended use of your computer. And remember that those numbers should only be compared within a processor family.
Will you be able to tell the difference between an Intel Core i7 and an i9 while you're on Facebook or watching cat videos? Will an 8-core AMD Ryzen beat the pants off a six-core Intel Core i9 while playing World of Warcraft? My best guess is maybe to both. This article was meant to help you understand the jargon involved. See my article on CPU Benchmarking if you want to dig a little deeper.
And of course your thoughts on this topic are welcome! Post your comment or question below...
This article was posted by Bob Rankin on 25 Nov 2019
|For Fun: Buy Bob a Snickers.|
How Hackable is Your Password?
The Top Twenty
Here's How to Get The Lowest Airfares Online
Post your Comments, Questions or Suggestions
Free Tech Support -- Ask Bob Rankin
Subscribe to AskBobRankin Updates: Free Newsletter
Copyright © 2005 - Bob Rankin - All Rights Reserved
Article information: AskBobRankin -- Sockets, Caches and Cores, Oh My! (Posted: 25 Nov 2019)
Copyright © 2005 - Bob Rankin - All Rights Reserved
Most recent comments on "Sockets, Caches and Cores, Oh My!"
25 Nov 2019
"Will an 8-core AMD Ryzen beat the pants off a six-core Intel Core i9 while playing World of Warcraft? My best guess is maybe to both."
Actually, for MMO (Massively Multiplayer Online) games such as World of Warcraft, network speed is more important than PC clock speed. Processor speed will give you a better resolution of the landscape, but when somebody else's Horde Troll attacks my Alliance Human, a slow network will get me killed even though my high-end PC is faster.
25 Nov 2019
I think that before upgrading your CPU you should consider more RAM or changing the hard drive to a SSD. Both of these will give you more bang for your buck than changing the CPU.
25 Nov 2019
A reminder for users who would compare different CPU measuring the "Bogomips": remember that Bogomips speed is for only ONE core.
So you your CPU has n cores, remember to multiply the Bogomips by n to make the comparison ;-3)
Ernest N. Wilcox
25 Nov 2019
I have an older home brewed system with an AMD Athlon II x2 CPU with 2 cores and 8GB of RAM. I recently replaced my 1/2 TB Standard SATA Hard Drive with a 1 TB SATA Hybrid drive. The improvement in performance is impressive!
Where there was a noticeable pause when loading applications before the change, now any pause is barely noticeable. My system boot time has improved from minutes loading to seconds!
I suggest that any one who needs to improve their system performance look at all the parts of their system. For example, if a program loads slowly, but then after loading it runs well, your issue may be disk access time rather than CPU performance. Using Bob's car engine analogy, even if you have a very powerful engine in your vehicle, if the transmission and rear end are set up for power instead of for speed, you will still have a slow car.
25 Nov 2019
The comment by Denis about upgrading a CPU should be taken into account.Adding more RAM (memory)or a SSD can improve the performance of your computer.I would do that before changing out a CPU.
I think today's article would be for the homebrewers among us who are not afraid to touch anything inside a computer case.
26 Nov 2019
Unfortunately, too many persons get sucked into "bigger (or faster) CPU is "better", without considering their real-world usage, when buying a computer. For the average person, just using a computer for sending and receiving email, watching videos on YouTube, writing letters or documents on Word or XL, or shopping on Amazon, an Intel i3 or i5 chip, (or AMD Ryzen equivalent) is more than able to handle those tasks, without breaking a sweat.
Workers in business, working with intense data manipulation or spreadsheets or graphics might well get by with an i5 or i7 (or, again, an AMD equivalent), depending on volume of documents needed. and heavy gamers or video animation producers might probably need an i7 or i9 CPU.
Back in the day, when I was selling computers for a national retailer, I always told the customer to think of the CPU series as the equivalent of engines in cars. An i3 would be like a 4 cylinder engine, an i5, like a V6, an i7, a V8, and the newest i9, probably like a V12.
The vast majority of users do not need a V12 Mercedes-Benz AMG sedan or a V12 Ferrari just to go to the supermarket for milk and bread, or visits to the doctor, when a 4 or 6 cylinder vehicle would serve them nicely.
As Denis says, getting 8 megabytes, or more, of RAM, or a new SSD, will get one a bit more speed, but, in reality, only seconds faster, at most, unless one is comparing it to a 10-year old computer with a Pentium 4 chip running Windows 7, at which point the money would be better spent buying a new computer with all the newest features (USB 4) and Windows 10, and a warranty, to boot.
26 Nov 2019
It's easy to compare two CPUs with benchmarking, but only if one has access to both in equivalent systems. And that's nearly impossible. So what one would like is benchmarking independent of systems.
Say one wants to compare a 2nd gen Core i5 with an 6th gen Core i3 - which is faster? I know of two sites that publish benchmarking figures for lots and lots of CPUs: CPUBoss and PassMark.
http://cpuboss.com/cpus/Intel-Core-i5-2500K-vs-Intel-Core-i3-6320 or https://www.cpubenchmark.net. (the latter of which has more cpus tested, but very slow right now.)