News for hackers. Stuff that matters.
Re:DDR5 memory is on its way, twice as fast as DDR4 by trey-jones on Friday March 31, 2017 @09:17AM (#14003366)
So, it's been a while since I tinkered with hardware, but I'm making the blind assumption that although the bus speed is twice as fast as DDR4, there is also twice the read latency, as has always been the case with DDR memory, meaning the net read latency improvement is basically nil.

Of course we expect every generation of Double Data Rate memory to double the data rate. But it's always been a bit misleading to say "twice as fast".

Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @10:28AM (#14004122)
Latency is limited by the speed of electricity which is a large fraction of the speed of light, so unless you move DDR closer to the CPU it physically can't get 2x as fast... ever. light speed * 0.951 (electricity) / 2 (round trip) / 2 feet (CPU to furthest RAM chip along a wire) ~= 250 million cycles per second.

However, cache is now huge. So, it's latency is usually less of an issue than sequential reads/writes and total size.

Re:DDR5 memory is on its way, twice as fast as DDR4 by ajross on Friday March 31, 2017 @12:42PM (#14005548)
Out of curiosity, why did you ballpark the length of the wire to "2 feet" (close to an order of magnitude high, way under 1 digit of precision) but specify the wave propagation speed along that wire to one part in a thousand (way more precision than appropriate: line capacitance changes significantly with trace width, pcb thickness to ground plane, pcb composition, etc...)?

You're point isn't invalid but it's sort of misapplied. In fact the latency of DRAM on modern systems is dominated almost entirely by precharge time within the memory IC, which is about an order of magnitude slower than signal propagation. And it's not changing, either. DRAM cycles have been sitting at around 60 MHz for a decade and a half. We're dropping voltage as we shrink the cells, and so there's no net increase. Realistically signal propagation will never be the limit.

Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @01:07PM (#14005798)
I very much rounded the output to represent minimal accuracy and while 9.51 e-1 is not accurate to 3 digits 1 digits of accuracy * 1 digits of accuracy = less than 1 digits of accuracy.

Anyway, if you actually trace the furthest bit of a ram chip to the CPU it's a longer path than you might think > 1 foot but < 3 feet.

As to my point tCL is a round trip latency and actually not that far from optimal. DDR is not designed for pure random access so much as cheap access to lot's of ram so yes there are many trade offs, but they are more reasonable when your close to hard limits.

Re:DDR5 memory is on its way, twice as fast as DDR4 by gatsby99 on Friday March 31, 2017 @02:15PM (#14006447)
Best practice is to have traces less than 3"
Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @02:46PM (#14006825)
Traces only go from CPU pin to Module, latency includes from memory controller CPU pin, CPU pin to PCB, PCB to module, module to RAM chip edge, ram chip edge to actual memory location.

Here is a picture, from the center of the CPU, to the bottom edge of the furthest part of the DIM then up. http://harddiskdirect.com/media/catalog/product/cache/1/imag...

PS: A DIMM is just over 5 inches wide and 0.7 inches tall so if was centered physically on top of a CPU that's 3 inches right there.

Re:DDR5 memory is on its way, twice as fast as DDR4 by gatsby99 on Friday March 31, 2017 @02:57PM (#14006982)
You don't know what you are talking about. Memory controllers are typically onchip.
Re:DDR5 memory is on its way, twice as fast as DDR4 by koverstreet on Saturday April 01, 2017 @01:44AM (#14010680)
"You don't know what you are talking about" is not a great response to someone who's writing more substantive posts than you.
Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @03:18PM (#14007194)
If by on chip you mean on CPU I agree: https://en.wikipedia.org/wiki/Memory_controller

But, that's part of the CPU packaging, a signal needs to get to these pins on the bottom of the CPU and that takes time.

Re:DDR5 memory is on its way, twice as fast as DDR4 by jjoonathan on Friday March 31, 2017 @11:02AM (#14004478)
I keep hearing this, but it doesn't jibe with the RAM timings I see. tRAS is usually 50ns or so, and propagation delay is 2ns or so (see below). What gives?

My suspicion is that amplifying the differential voltages produced by femtocoulombs of charge at 100% reliability is a harder problem than moving the DRAM chips closer to the CPU, and that speed-of-light has gotten the blame in "pop architecture" due to sloppy overgeneralization.

    2*2 feet is long for a memory bus, but it's partially cancelled
    out by the high velocity factor (sorry, "speed of electricity")
    of 0.951 in parent's calculations. Instead, I'm going with 0.5*2
    feet at a velocity factor of 0.5 for a 2ns roundtrip propagation delay.
Re:DDR5 memory is on its way, twice as fast as DDR4 by dfox on Friday March 31, 2017 @12:37PM (#14005495)
Major factor in DRAM latency is in moving these charges around the chip (between the array and sense amplifiers). The wires in the array have some finite conductivity and current handling capability thus this cannot happen instantenuosly.

On the other hand sequential access bandwith is limited almost entirely by the external interface and has more to with economical factors (pin count is major part of IC price) than any physical limitations.

Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @11:10AM (#14004576)
https://en.wikipedia.org/wiki/CAS_latency

First word latency: DDR3 SDRAM 6.37ns = 1/156,985,871 of a second.

Re:DDR5 memory is on its way, twice as fast as DDR4 by jjoonathan on Friday March 31, 2017 @11:11AM (#14004587)
tCL is (very) roughly the RAM equivalent of sequential access time. I'm talking random access time, tRAS, which includes closing the last row (precharging the diff amps) and opening the next (waiting for the amps to stabilize). It's called Random Access Memory, so I think it's more fair to judge it by its random access time.
Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @12:20PM (#14005294)
tCL is very much a round trip latency not just sequential access. If you want sequential access 4 times you can pay for tCL once. https://www.altera.com/ja_JP/pdfs/literature/hb/external-mem...

DDR is not really setup for random access, because it's setup for talking to L2/L3 cache not registers. tRAS ~= tCL + tRCD + tRP which kind of but not exactly exactly what you want for random access.

Re:DDR5 memory is on its way, twice as fast as DDR4 by jjoonathan on Friday March 31, 2017 @08:51PM (#14009680)
Yes, tCL is a round trip time for accessing an already open row, and it puts a sharp upper bound of ~5ns on propagation delay. Random access time, approximated by tRAS, is still ~50ns. You contend that tCL is the bigger problem, I contend that tRAS is the bigger problem. The key statistic is <#CAS/#RAS>, which I haven't been able to find easy values for.

I don't understand your argument that the L2 and L3 caches tip the balance in favor of <#CAS>. If anything, I'd expect them to do the opposite, because the SRAM and DRAM both aim to exploit locality, meaning that better L2 and L3 caches would reduce #CAS faster than #RAS. Of course, armchair reasoning about such complex systems as memory controllers and caches can only go so far, so I wouldn't be shocked to be wrong, but I would certainly demand actual statistics before changing my view.

Re:DDR5 memory is on its way, twice as fast as DDR4 by adrianratnapala on Friday March 31, 2017 @03:12PM (#14007143)
All this means is that we should stop thinking of this stuff as RAM. Only the L1 cache is really RAM. Everything else is just a kind of fast, volatile, solid state disk that just happens to share an address space with the RAM.
Re:DDR5 memory is on its way, twice as fast as DDR4 by mamon on Friday March 31, 2017 @09:25AM (#14003472)
Yes, I always considered that inflated bus speeds a scam. It is like having a subway line driving trains every 2 minutes, but only 1 train in 15 taking passengers, rest going completely empty.

If you look at CAS latencies [1] then it's clear that memory speeds stagnated a long time ago:

[1] https://en.wikipedia.org/wiki/CAS_latency

Re:DDR5 memory is on its way, twice as fast as DDR4 by dom0 on Friday March 31, 2017 @09:47AM (#14003702)
That's not a very accurate analogy, since sequential reads do improve. CAS latency is one limiting factor on random reads, which has been constant / only slightly improving for a very long time; significant improvements last happened here around with DDR and SDR (i.e. 20 years ago).

This is a central reason why the cache size per thread has not changed much in the last 20 years (beside of course fabbing/yield limits). (And because caches are subject to a similar effect as Dennard scaling)

(btw. I wonder if it'd have been smarter by the memory industry if they specified latencies in absolute numbers (or relative to the memory array clock, not the bus clock), not bus cycles, since the rising latency numbers have been a marketing issue in every generation.)

Re:DDR5 memory is on its way, twice as fast as DDR4 by petra on Friday March 31, 2017 @09:52AM (#14003755)
If cas latency haven't changed for 20 years, and the memory wall in general being a huge pain, does anybody know why didn't some sort of 2.5D memory(even using low-resolution lithography and carriers cheaper than silicon), haven't entered the market ?
Re:DDR5 memory is on its way, twice as fast as DDR4 by Retric on Friday March 31, 2017 @10:37AM (#14004212)
Heat, RAM puts out a lot more than you might think. That said, for low power devices like cellphones you can use different packaging and cut latency.

Also, AMD for example uses stacked ram (HBM), but that needs very special packaging and active cooling. http://www.amd.com/en-us/innovations/software-technologies/h... https://en.wikipedia.org/wiki/High_Bandwidth_Memory

Re:DDR5 memory is on its way, twice as fast as DDR4 by petra on Friday March 31, 2017 @12:52PM (#14005640)
If heat is the problem, and since the memory wall is a 20-year problem, was there some new cooling tech ? or is it just standard industry inertia(and just being satisfied with half solutions) ?
Re:DDR5 memory is on its way, twice as fast as DDR4 by dom0 on Friday March 31, 2017 @01:51PM (#14006231)
No, it's a fundamental issue with the technology. Roughly, the ratio of power density to capacity-that-can-hold-information-for-a-refresh-interval stays more or less constant, independent of fab node. In fact, newer generations (DDR3, DDR4) have been pushing it here (cf. rowhammer).

I doubt we will see a drastic improvement in DRAM latency unless the underlying process changes a lot (i.e. different physical storage mechanism or very different manufacturing).

Re:DDR5 memory is on its way, twice as fast as DDR4 by theandrewbailey on Friday March 31, 2017 @12:22PM (#14005320)
I think that's what HBM tries to do, with stacking memory dies on top of each other, along with locating them next to its associated processor.