How to break the “memory wall” that slows down high-performance systems

How to break the “memory wall” that slows down high-performance systems
2 min read

In a contribution published by The Next Platform, technical analyst Cristian Vasile presents a theoretical architecture designed to mitigate the “memory wall,” the bottleneck that slows down server processors. His idea involves replacing the linear addressing of RAM with a Z-Order address format, also known as Morton layout, which preserves the spatial proximity of data. The analysis is based on the AMD “Turin” Epyc 9005 processor, featuring 128 cores distributed across 16 CCX modules.

According to the author, cores often spend idle time waiting for data from RAM. Requests target 64-byte cache lines scattered in memory, and cache coherence imposes millions of verification requests broadcast over the internal bus. To illustrate the problem, he compares data to a Rubik’s Cube that the processor would flatten into a single line of addresses, then have to reassemble through numerous searches.

An address that preserves the shape of the data

The principle relies on rearranging address bits. The hardware removes the 6 least significant bits, which correspond to the offset within a cache line, then splits the remainder into two windows of equal size. The bits from the right window are placed on even positions, those from the left window on odd positions. This conversion, integrated into the memory management unit (MMU), would add a latency penalty of one clock cycle (1T), with the inverse operation performed during exchanges with RAM.

Caches and filters at the heart of the silicon

In this model, the 512 MB L3 cache fetches data in 4 KB blocks, called “mini-pages,” while the L1 and L2 caches retain 64-byte lines. The author also proposes doubling the L2 cache capacity to 2 MB per core, with an additional 2T latency, and aligning it with Linux’s 2 MB “Huge Pages.” A 4-bit counting Bloom filter, distributed across the on-chip network routers, would avoid some coherence requests. It would be divided into 16 segments of 32 KB each, totaling 512 KB.

Range filters, based on the Tropf-Hertzog algorithm published in 1981, would allow skipping data intervals outside the query. According to the author, they would reject 95% of unnecessary requests in 1T. He states that this double barrier would also reduce power consumption, as the large cache memories would only be activated when a hit is highly probable.

Announced gains for network cards and CXL memory

For SmartNIC cards, the author argues that direct access to these filters would avoid core interrupts, with 0% pipeline stalls. For shared memory via the CXL protocol, he estimates the filter could discard requests before they leave the chip and save about 250 nanoseconds of latency.

The author cites targeted sectors: seismic processing, oil and gas exploration, The AI / news and machine learning, distributed SQL engines, scientific computing, engineering simulations, aerospace, defense, and space. He finally claims to have “definitively” broken through the memory wall, an assertion the contribution presents as an analysis conducted at a theoretical level.

S’abonner
Notification pour
guest

0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
0
Nous aimerions avoir votre avis, veuillez laisser un commentaire.x