Memory Subsystem: TinyMemBench

We doublechecked our LMBench numbers with Andrei's custom memory latency test.

The latency tool also measures bandwidth and it became clear than once we move beyond 16 MB, DRAM is accessed. When Andrei compared with our Ryzen 9 3900x numbers, he noted: 

The prefetchers on the Rome platform don't look nearly as aggressive as on the Ryzen unit on the L2 and L3

It would appear that parts of the prefetchers are adjusted for Rome compared to Ryzen 3000. In effect, the prefetchers are less aggressive than on the consumer parts, and we believe that AMD has made this choice by the fact that quite a few applications (Java and HPC) suffer a bit if the prefetchers take up too much bandwidth. By making the prefetchers less aggressive in Rome, it could aid performance in those tests. 

While we could not retest all our servers with Andrei's memory latency test by the deadline (see the "Murphy's Law" section on page 5), we turned to our open source TinyMemBench benchmark results. The source was compiled for x86 with GCC and the optimization level was set to "-O3". The measurement is described well by the manual of TinyMemBench:

Average time is measured for random memory accesses in the buffers of different sizes. The larger the buffer, the more significant the relative contributions of TLB, L1/L2 cache misses, and DRAM accesses become. All the numbers represent extra time, which needs to be added to L1 cache latency (4 cycles).

We tested with dual random read, as we wanted to see how the memory system coped with multiple read requests. 

The graph shows how the larger L3 cache of the EPYC 7742 resulting in a much lower latency between 4 and 16 MB, compared to the EPYC 7601. The L3 cache inside the CCX is also very fast (2-8 MB) compared to Intel's Mesh (8280) and Ring topologies (E5). 

However, once we access more than 16 MB, Intel has a clear advantage due to the slower but much larger shared L3 cache. When we tested the new EPYC CPUs in a more advanced NUMA setting (with NPS = 4 setting, meaning 4 nodes per socket), latency at 64 MB lowered from 129 to 119. We quote AMD's engineering:

In NPS4, the NUMA domains are reported to software in such a way as it chiplets always access the near (2 channels) DRAM. In NPS1 the 8ch are hardware-interleaved and there is more latency to get to further ones. It varies by pairs of DRAM channels, with the furthest one being ~20-25ns (depending on the various speeds) further away than the nearest.  Generally, the latencies are +~6-8ns, +~8-10ns, +~20-25ns in pairs of channels vs the physically nearest ones."

So that also explains why AMD states that select workloads achieve better performance with NPS = 4. 

Memory Subsystem: Latency Single-Thread SPEC CPU2006
Comments Locked

180 Comments

View All Comments

  • steepedrostee - Thursday, August 8, 2019 - link

    if i had to guess who is more full of crapola, i would think you
  • Smell This - Thursday, August 8, 2019 - link


    Pooper Lake?

    Cascade is obviously, The Mistake By The Lake

    Chipzillah will certainly strike back but it reminds me of the old 'virgin' joke. "My first wife was an OB/GYN, and all she wanted to do was look at it. My second wife was a psychiatrist, and all she wanted to do was talk about it, and ...

    My third wife was an Intel Fan Girl, and all she could say was, "Wait until next year!"

    HA!
  • RSAUser - Thursday, August 8, 2019 - link

    Do we finally have a contender to run Crysis on max?
  • Tunnah - Thursday, August 8, 2019 - link

    I'd normally just ignore this but this really needs proofreading, There's multiple mistakes on every page, becomes a bit difficult to follow.
  • cerealspiller - Thursday, August 8, 2019 - link

    Well, 50% of the sentences in your post have a grammatical error, so I will just try to ignore it.
  • GreenReaper - Friday, August 9, 2019 - link

    He's a reader, not a writer. ;-)
  • Oliseo - Thursday, August 8, 2019 - link

    Pot. Meet Kettle.
  • steepedrostee - Thursday, August 8, 2019 - link

    wow amd !
  • umano - Thursday, August 8, 2019 - link

    Intel people will welcome "Rome" like gladiators "Ave, Caesar, morituri te salutant"
    I am really happy for Amd and I really hope their sells will be a lot more than they could ever dream.
    Because they become more than competitive with the most rightful strategy, just deliver an awesome product. The fact they think that they will just double their shares shows how sick the market(s) are. The epyc is faster, greener and way way cheaper.
  • 29a - Thursday, August 8, 2019 - link

    "AMD does not blow fuses on cheaper SKUs to create artificial 'value' for buying more expensive SKUs"

    I like this guy, more reviews from him. He's not afraid to bite the hand that feeds him.

Log in

Don't have an account? Sign up now