3 ms·
DDR2 vs DDR4 has effectively zero impact on latency. Due to the physical distances between RAM modules and the CPU, that’s been stuck within a narrow range for
by Retric 7y ago
DDR2 vs DDR4 has effectively zero impact on latency. Due to the physical distances between RAM modules and the CPU, that’s been stuck within a narrow range for decades. https://en.wikipedia.org/wiki/CAS_latency https://en.wikipedia.org/wiki/CAS_latency
The specific implication details make a difference, but nothing is going to provide a 4x improvement in latency so other considerations take precedence. The real change is ever growing cache sizes allowing CPU’s to minimize random RAM reads.
- mantap 7y agoIs there a reason why they don't package a couple GB of DRAM in there?
- Retric 7y agoActually yes, the cache hit ratio is not linear with cache size so you get diminishing returns. http://www.dataram.com/blog/?p=112 http://www.dataram.com/blog/?p=112. On top of this, once a CPU core is operating at say 80% of the time the maximum possible speed up from more cache is 20%. Further, every layer of cache adds latency and cost as you need to check it before going to main memory. In the 486 and early pentium days External Cache was common, but it’s no longer useful.
- mantap 7y agoI had something more like a swap than a cache in mind. Expose it as additional physical address space and let the OS decide which pages live there vs main memory.
- coretx 7y agoYes. The very same reason why they waited years before they eventually moved the memory controller on to the CPU die. It's expensive m2 real estate and eats a big chunk of the waffer. Furthermore, there is diminishing returns regarding all kinds of cache. Most of the recent performance increases are attributed to the very dangerous practice called branche prediction.
- rasz 7y agoCAS has nothing to do with "distances between RAM modules and the CPU".
- Retric 7y agoThe memory controller referenced in CAS is in the CPU and the ram modules are part of those ram sticks so it’s not the only component of CAS latency but it is a big one. “For a completely unknown memory access (AKA Random access), the relevant latency is the time to close any open row, plus the time to open the desired row, followed by the CAS latency to read data from it. Due to spatial locality, however, it is common to access several words in the same row. In this case, the CAS latency alone determines the elapsed time.”
- rasz 7y agoNo, distance from memory controller is NOT a component of CAS. CAS is the time it takes for row amps to stabilize their levels after being connected to selected memory cells (capacitors). CAS is counted in clock cycles. Have you ever heard of a motherboard where you would have to add/subtract CAS cycles from memory module specification because of memory slot layout? ;-) btw 10cm of track on pcb is about 2 clock cycles at 3GHz, ~0.6ns. Now you will love this one - in the last 20 years we went from ~15ns CAS down to ... 7ns, twice as fast! Even better - we got down to 7ns in 2006 https://www.newegg.com/g-skill-2gb-240-pin-ddr2-sdram/p/N82E16820231086 https://www.newegg.com/g-skill-2gb-240-pin-ddr2-sdram/p/N82E... and stayed there for the last 14 years. What we got instead is higher density and susceptibility to rowhammer.
- Retric 7y agoCAS is the full round trip time, the controller does not care about individual components of the latency just the total latency. End users just see the CAS number, but what it’s repressing under the hood is not simply what’s going on inside a DIMM, which is why the numbers get higher with higher memory clock speeds. Further, MB traces are just part of the story. It’s the physical distance traveled from a CPU’s memory controller to the furthest physical cell location on a chip which is significantly more than 10cm and it’s a round trip timing. Even just the physical DIMM’s are 13 CM wide. A more accurate ~25 cm each way = 50 cm total ~= 3ns out of 6.56ns timing for a DDR3-2133 & CAS 7 ~47%. CAS 18 DDR4-4600 is 7.82 ns or ~40%. PS: As to progress, DDR2-1066 at CAS 4 was 7.5n where CAS 18 DDR4-4600 is 7.82 ns that’s some progress.