Clock speed, turbo and why GHz is not speed
Video 020 of 140 in Virtualization Foundations, in the unit “CPUs: sockets, cores, threads and caches”. 3:32, with English and Hindi audio.
A processor is sold with a clock speed, such as 2.4 gigahertz. That number sounds like a measure of speed, but it counts only one thing: the ticks of the chip's internal clock. How much work gets done depends on what each tick achieves and on how hard the chip is working at the time. This article explains those parts, so you can judge a host by its real work rather than by one number on a spec sheet.
What you will learn
- Gigahertz counts the ticks of a chip's internal clock: one gigahertz is one billion ticks each second.
- Speed of work comes from the clock and from how much work each tick completes.
- Turbo boost is a bonus when the chip has heat and power room. It is not a promise.
- Compare chips with a benchmark that copies your own kind of work, not by gigahertz alone.
What a gigahertz figure counts inside the chip
Inside the chip, a clock signal ticks steadily, like a metronome. The time between two ticks is one cycle. In each cycle, the chip can do a small piece of work. One gigahertz means one billion cycles every second, so 2.4 gigahertz means 2.4 billion cycles every second.
The clock tells you how many slots the chip has each second. It does not tell you how much each slot achieves. Two chips can run at the same clock and still differ, because one may finish three instructions in a tick and the other only one.
Why the same clock can give different speeds
The speed of work comes from two things: the clock, multiplied by the work done in each tick. The second part depends on the chip's design. A newer design at a lower clock can therefore finish more work than an older chip at a higher clock.
Consider a real buying decision. Harbor Point Logistics is choosing new hosts for its database. The spec sheet lists gigahertz for each chip. The team does not buy on that number alone. It runs a benchmark that copies its own database work on each candidate chip, then compares the results with core counts and memory before it chooses.
Note: The most common mistake is to compare chips by gigahertz alone. Use a benchmark that matches your own work.
Turbo boost and throttling under load
- Base clock: the steady speed the maker publishes for the chip.
- Turbo boost: a higher speed the chip may use when it has heat and power room.
- Throttling: a chip that slows itself to stay cool, or that heat and power limits slow down, so the same job takes longer.
Boost is not a promise. When many cores are busy, the chip may slow back down, so the speed you see depends on the load. A job that slows down on the same host, with no change to its software, can mean that heat or power limits are at work. Check the temperature and power alongside the clock when that happens.
How to read the clock range on Linux
On Linux, you can read the speed range that the system reports for the processor. Filter the lscpu output for the MHz lines.
lscpu | grep -i mhzNote: The CPU max MHz and CPU min MHz lines show the range of speeds the chip may use. They are limits the system reports, not a promise of speed.
Terms
- Clock speed
- The rate of ticks that a processor's internal clock produces, usually given in gigahertz.
- Cycle
- The time between two ticks of a processor's clock, in which the chip can do a small piece of work.
- Turbo boost
- A higher speed that a processor may use for a while when it has heat and power room.
- Throttling
- A processor slowing itself down, to stay cool or within its power limit, so the same work takes longer.
Check yourself
What does one gigahertz mean?
One billion cycles every second, where each cycle is one tick of the chip's internal clock.
Why can a chip with a lower clock finish work faster?
It may complete more work in each tick, because of its design, so its total speed of work can be higher.
What is throttling, and what does it do to a job?
A chip slows itself down to stay cool or within its power limit, so the same job takes longer to finish.
Previous: Hyper-threading: what the second thread is worth. Next: CPU caches: small, fast memory kept close.