Windows Help and Advice - USA (2019-06)

(Antfer) #1

Windows 10


Undderstanding CPUs


In the summer of 2017, two
security vulnerabilities were
discovered, which went
public in January 2018, and
FDXVHGVRPHWKLQJRIDSDQLF
0HOWGRZQDQG6SHFWUHDV
they were dubbed, did
VRPHWKLQJUHDOO\QDVW\7KH
loopholes were in the very
fabric of the micro-
architecture, built right into
whole families of processors,
including every Intel one
VLQFH PRVWO\ $
nightmare for the chip
PDNHUV%RWKYXOQHUDELOLWLHV
exploit speculative
execution, including branch
prediction, which is as it
sounds, where the processor
works on data it hasn’t been
asked to yet, in the
DQWLFLSDWLRQWKDWLWZLOO
Meltdown works because,
as part of the speculative
execution, pre-fetch cache


data is not checked for
SHUPLVVLRQV7KLVRSHQVWKH
door to malicious code
getting executed, leading to
cache data being open to be
read – your password, for
H[DPSOH6SHFWUHZRUNVLQD
similar way, enabling data
within a speculative
H[HFXWLRQWREHUHDG
(VVHQWLDOO\WKH\HQDEOH
‘god mode’: access to the
NHUQHOPHPRU\
Have these two ever
actually been used in the
ZLOG"1RWUHDOO\$IHZ‘proof
of concept’ code snippets
have surfaced, and not much
PRUH$QRUJDQLsed and
targeted attack has yet to
materialisH7KDWGRHVQ·W
matter – LWKDVWREHIL[HG
6RIWZDUHDQG%,26SDWFKHV
ZHUHTXLFNO\GHSOR\HG7KH
first Intel patches proved
troublesome, causing crashes

and, ironically, damage that
the vulnerabilities hadn’t
PDQDJHG+RZHYHUHDUO\
reports of huge performance
losses with patches have
proved to beXQIRXQGHG
7 here is a cost, though,
depending on the task, of a
percentage point or three,
SDUWLFXODUO\RQVHUYHUV
However well the patches
have worked, and they are
getting better, this isn’t

JRLQJWRJRDZD\1HZ
variations of Meltdown
and 6SHFWUHKDYHEHHQ
discovered, too – we are
up WRLQDOO
7 he only real cure is a
microarchitecture that
SURSHUO\VHDOVWKHORRSKROH
Intel’s 9th Generation chips
have such modifications, as
will AMD’s forthcoming Zen
 6SHFWUHRQO\DVLWVFKLSV
DUHLPPXQHWR0HOWGRZQ 

technical frighteningly quickly. Intel has
its SmartCache feature, which enables
unused cores to share their L2 cache.
Another technique is worth a mention
here: pre-fetching. This is where data
that is expected to be needed is copied
into the cache before it has been
requested. Clever stuff. Unfortunately, it
recently came unstuck, which required
changes to the microarchitecture (see
‘Ghosts in the machine’ below).
Applications that run in tight circles hit
the cache a lot, and a bigger one is a
relatively easy way to squeeze more
performance out of a design.
Memory controllers now live on the
processor die, which makes sense, as
the two are closely tied together. You
can play around getting faster modules
to work, assuming motherboard
support. Some games appreciate the
extra. But when extensive testing puts
the gains in the order of one percent,


you can spend your money elsewhere
to better effect. However, it is worth
getting the fastest officially supported
memory speed, and look for a low CL
(CAS latency, a measure of internal
latency in accessing specific memory
locations; lower is better) if you want to
squeeze out some extra. Unless you
plan to overclock the bus, faster is
generally a waste.

Changing channels
What about channels? This is old tech.
Memory started struggling to supply
enough data way back in the 1960s.
These days, memory is so much faster
that much of the benefit has faded
away unless you are shifting huge

amounts of data. A dual-channel
controller adds another 64-bit bus to
the memory, doubling the bandwidth.
Each channel can be accessed
separately by the processor, and
requires matching modules: configured
speed (modules can run at a number of
speeds, not just the headline one) and
capacity. However, both slots need not
be populated, so you can run a
three-DIMM dual-channel system if you
put them in the right slots.
Intel’s Coffee Lake and AMD’s Zen+
both offer dual-channel memory.
Triple-channel is found in a couple of
Intel’s older i7s, while quad-channel
appears on Threadripper and
Skylake-X. High memory bandwidth

AMD’s Ryzen came as something of a shock. It was
better than we expected, and Intel had some solid
competition at last.


Intel’s high-end desktop chip, the Skylake-X. If you need those chip-side PCIe lanes, this is what you
want. Or if you really need 18 cores.

Ghosts in the machine

Free download pdf