9 ms·
SK Hynix Reveals DDR5 MCR DIMM, Up to DDR5-8000 Speeds for HPC
- api 4y agoWe seem to be getting to the point that CPUs are no longer I/O bound. This is sort of the end of an era, since starting as early as the 2000s we entered a time when I/O (RAM, disk, network) was the main bottleneck for most forms of compute.
- gpderetta 4y agoRAM latency is still an issue though and often the actual bottleneck.
- drewg123 4y agoI disagree. RAM is still a huge bottleneck. Even when there is sufficient bandwidth, latency is a performance killer. I just spent most of the weekend trying to optimize a hash table lookup which is one of our biggest sources of cache misses (and CPU stalls). The CPI (cycles per instruction) in that function started as 13.9 and I have it down to 7.5 by re-ordering a few fields and cacheline-aligning the struct (so as to have 1 cache miss per iteration, rather than 2). Now I need to figure out what's wrong with the hash function, as the table should be big enough to hold everything without much pointer chasing on average, but I'm seeing we do at least one pointer deref on average before we find the entry we're looking for.
- NovemberWhiskey 4y agoSDRAM latency is definitely not keeping up with improvements in throughput: if you go back to the time of the PC100 SDRAM standard (late 90s?) it was not uncommon to see RAM with CAS latency of 2 clocks and overall timings compatible with a latency of around 20-25ns; now with DDR5-4800, CL 34 is standard and latencies have only come down to about 15ns. This despite the number of MT/s increasing 48-fold.
- iamchp 4y agoComputer architects use the term 'memory wall' to refer to this latency problem. CPU microarchitectures are constantly improved to improve IPC, Die technology helps increase CPU frequency, but memory access latency is not keeping up with the CPU improvements.
- NovemberWhiskey 4y agoRight - I think, at this point, that L1 cache latency is worse than main-memory latency on a 'per CPU clock' basis than it was in the late 1990s!
- rbanffy 4y agoMakes sense for a larger cache to take longer to decode an address.
- deleted 4y ago[deleted]
- kstrauser 4y agoI've had a devil of a time looking this up. Perhaps you'd know: Back in the Amiga days, 60ns SIMMs were common. Some CPU accelerator boards could run faster if you upgraded to 50ns SIMMs instead. What did those numbers refer to? Latency? Time to fetch a byte? Something else? I'd be interested in an apples-to-apples comparison of the old hardware with the new.
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- colejohnson66 4y agoThose times referred to the speed of the actual ICs on the PCB. A “60 ns” SRAM IC takes up to 60 nanoseconds from the (input) address lines going stable to the (output) data lines going stable. If you sampled the data bus during those 60 nanoseconds, you might get incomplete data. Swapping for 50 ns modules means the ICs were verified to take less time for the data bus to be valid. It’s a bit like overclocking your memory nowadays. Basically, the 50 and 60 nanosecond parts might be the same silicon, but the 50 ns ones were validated to perform at that speed. Today, a 3200 MT/s DDR4 module doesn’t mean it won’t run at 3600 MT/s; just that it was only verified to run at the former. --- The big difference between the two memory formats, however, is that DDR is pipelined. In the old days, you would present an address on the bus, hold it, and then wait for the data to come back. Only after sampling the data could you request a new address. DDR, being pipelined, allows you to request an address, and, before the data comes back, request a new address. After a while, the data from the first address would come back, followed by the data from the second. That alone makes apples-to-apples comparisons hard.
- deleted 4y ago[deleted]
- adgjlsfhk1 4y agoAny chance you can switch the hash table to use probing rather than chaining? Probing is way better for locality because on collisions you will just look at the next element in ram.
- drewg123 4y agoThis table is not well suited for that, but it did get me interested in re-structuring it. Thanks for the suggestion!
- montecarl 4y agoSmall tangent. Would you mind sharing how you calculate CPI? Do you just do timing and use some base clock rate? With the CPU frequency being so variable (with boost clocks) I imagine the correct way is with some fancy instrumentation.
- pca006132 4y agoPerhaps cachegrind or linux perf? CPU frequency being variable is not an issue because you can disable turbo boost and limit the frequency to something that the CPU will not throttle. You can also pin the core with taskset to avoid migration. cset shield can prevent the CPU from executing other tasks for latency measurement (although you will still experience some jitter due to interrupts).
- janwas 4y agoHash function quality varies a lot. Especially if you are memory-limited, it can help to use a round-reduced cryptographic hash to rule out unnecessary collisions. Example: Speck (= add/rotate/xor), but just reducing the number of rounds. And if that is again too expensive on the CPU side, we can always vectorize by inserting or looking up batches of keys at a time.
- pca006132 4y agoIO is often still the bottleneck. Although the bandwidth is larger, main memory access latency is still high, that's why AMD's 3D cache can enable performance improvement by just providing more cache.
- PragmaticPulp 4y ago> We seem to be getting to the point that CPUs are no longer I/O bound. These memory modules are for server and HPC use, where memory bandwidth is still a major limitation for many workloads. Your desktop CPU may not be memory I/O bound for your average single-task desktop use case, but a 128-core server running intense workloads or doing HPC can definitely be I/O bound. Even desktop gaming applications show benefits from memory overclocking in most cases, so it’s not something that can be dismissed.
- rbanffy 4y ago> Your desktop CPU may not be memory I/O bound for your average single-task desktop use case, but a 128-core server running intense workloads or doing HPC can definitely be I/O bound. Indeed. From my measurements (very unscientific), processes stall first for IO, then for CPU resources, then from memory.
- deleted 4y ago[deleted]
- Eleison23 4y ago
- g42gregory 4y agoDeep Learning training is usually I/O bound these days. Definitely on GPU side, I believe the same thing on CPUs. Not clear if many people are using CPUs for the DL training, though. CPUs are used mostly for the inference, when response time is not critical and models are large (with large RAM requirement).
- iamchp 4y agoThis would benefit sequential access, but it'd either be disabled for random-access or pollute the caches with unused lines. But in cases where sequential memory bandwidth is required, this is pretty cool! (But I assume Intel only, which would also be a bummer)
- dinvlad 4y agoThey really need to step up their game with making higher capacity modules available to consumer HEDT market. I think the current roadmap is to intro 48 and possibly 64GB modules at the end of 2023. Without that, many folks who’ve used 4x32GB DDR4 configuration for professional work are left out, since the current MCs and modules can’t support that for DDR5 at reasonable speeds. In other words, HEDT market doesn’t need faster RAM as much as it needs more of it.
- moneycantbuy 4y agoHow noticeably slower is running 128GB DDR5 on AM5? Is it perceptible? I’m building a 7950x rig and am perplexed by the ram. The specs from amd are: Max Memory Speed 2x1R DDR5-5200 2x2R DDR5-5200 4x1R DDR5-3600 4x2R DDR5-3600 Does anyone know if cas latency (CL) also drops if using 4 sticks? For example, if I use 4x32GB DDR5 5600 CL36-36-36-89 will it drop to 3600 while maintaining CL36 or will CL also slow to like CL 40?
- dinvlad 4y agoBasically, on AM5 4x32GB sticks nominally run at only 3,600 (i.e. no better than DDR4, and at probably slightly higher latency). On Level1Techs forums, there’re some folks that got it working as high as 4,800, which seems to be the barrier, but even that is far from guaranteed. On Intel the situation isn’t really any better. Technically on paper, the stock speed is 4,000 (i.e. +400MT/s compared to AMD), but I’m yet to hear about anyone running 5,200 fully stable in this config. Also, primary timings like CL36 don’t really matter in DDR5. There’s a whole ActuallyHardwareOverclocking YouTube video on it.
- the_pwner224 4y agoThose are the bare minimum speeds that AMD guarantees. You can find real world info about this on reddit. My memory of this is a bit old, but iirc the Zen 4 memory controller can pretty much always do 4800 MT/s on 4 sticks. And you might be able to do 5000/5200 or maybe even a bit more depending on your motherboard & RAM. The situation has been getting better with newer BIOS versions; speeds were much lower around the initial Zen 4 release.
- coolspot 4y agoCan we get modular GDDR6X VRAM for machine learning please?
- rbanffy 4y agoThe Xeon Max has HBM built-in. Kind of the same idea that came with Xeon Phis, but updated.
- qwertox 4y agoYesterday I got presented an ad disguised as an educational YouTube video, but the content was really good and is worth watching if you have some time on your hands. "How does Computer Memory Work?" [0] Uploaded 1 month ago, 35 minutes playing time. It even goes into explaining what the timings mean while showing an animation for it. [0] https://www.youtube.com/watch?v=7J7X7aZvMXQ https://www.youtube.com/watch?v=7J7X7aZvMXQ
- 0x000xca0xfe 4y agoThanks, this video is amazing. I wonder if future students will just watch weeks of super high quality videos like this for the basic topics instead of listening to bored professors reciting the same slides for the 20th time. Would be a lot more time effective, you'd think!