News for hackers. Stuff that matters.
Re:Even a laptop can run RAM externally thanks to a little-k... by xhrpost on Thursday October 19, 2023 @12:33PM (#37945073)
The slowest clock speed for DDR5 is 2,000Mhz or 0.5ns per cycle. At 2/3c, electricity should be able to travel about 10cm max in one cycle. I suppose 4Ghz RAM would be only 5cm. Is having an external unit with much greater than 10cm of copper travel ultimately a limiting factor here with modern day RAM speeds?
Re:Even a laptop can run RAM externally thanks to a little-k... by dragontamer on Thursday October 19, 2023 @12:40PM (#37945162)
Note that modern RAM protocols assume that multiple bits are in the transmission line that is the wires connecting your CPU to RAM.

Electrical Engineers since at least DDR2, probably earlier, need to ensure that all lines are delay matched to about 100picoseconds.

That is, in DDR2, if DataBit#1 takes 1.1nanoseconds from start-of-wire to end-of-wire, then all other bits must be somewhere between 1.0ns to 1.2ns in length.

This requires impedance controlled pcbs from the manufacturer, and length tracking software for PCB design.

-------

The dielectric of FR4 (the glass/resin used to make PCBs) is what determines the speed of light of the copper actually. And it can be 3.6 or 4.2 or whatever, but the PCB manufacturer will tell you in the PCB specsheets.

-------

I think I heard that DDR4 is now 10picosecomds (10x more accuracy in delay matching), which is doable with modern CAD and PCB software. I dunno the delay requirements of DDR5.

Re:Even a laptop can run RAM externally thanks to a little-k... by _trampeltier on Thursday October 19, 2023 @01:01PM (#37945448)
Long long time ago, when Ethernet used coax cables, the max. length of the segment was not because of the signal strength. It was because with the max. length of an Ethernet segment the first half of the ethernet data packet was on the cable, if now the computer on the other side started to send a packet too, a collision would not be detected, and the packet would be lost.
Re:Even a laptop can run RAM externally thanks to a little-k... by ooterness on Thursday October 19, 2023 @12:37PM (#37945122)
You're conflating latency vs. bandwidth.

It is entirely possible to have many bits in transit on a single channel, wired or wireless.

Re:Even a laptop can run RAM externally thanks to a little-k... by cmrdporcupine on Thursday October 19, 2023 @12:57PM (#37945389)
The article seems to reference having external AI etc accelerators colocated with the RAM they use, but then tied to a host machine via CXL. So that makes a certain amount of sense. Latency sensitive stuff happens co-located with the RAM, and then you just take advantage of throughput back to the host.

I'm personally now imagining a specialized database appliance which takes the role of the whole of the pager and buffer pool management from a DB (or KV store or whatever); a physical box which ties secondary storage arrays + large quantities of RAM + buffer pool mgmt firmware together on a box, then connect to host system via CXL. Host system does query planning end execution and everything else...

Is anybody doing this? Does anybody want to found a startup with me to do this? <sips more and more coffee...>

Re:Even a laptop can run RAM externally thanks to a little-k... by pbalcer on Thursday October 19, 2023 @01:07PM (#37945536)
There are enterprise database offerings that do something like that with RDMA. I'm almost certain CXL is being looked at for improvements.
Re:Even a laptop can run RAM externally thanks to a little-k... by nikriek on Thursday October 19, 2023 @04:28PM (#37948289)
I just finished my master’s thesis on database buffer management with CXL [1]. It’s not published due confidential hardware information, but we are working on a paper.

[1] https://hpi.de/rabl/teaching/master-theses/ongoing-masters-t...

Re:Even a laptop can run RAM externally thanks to a little-k... by cmrdporcupine on Thursday October 19, 2023 @07:13PM (#37950066)
Very cool. I look forward to the paper!

For some reason the whole issue of buffer mgmt is something I nerd out on a bit.

Re:Even a laptop can run RAM externally thanks to a little-k... by wtallis on Thursday October 19, 2023 @02:43PM (#37946852)
DRAM latency is tens of clock cycles. There's a minimum of about 10ns of latency happening within the DRAM chip itself, so a slightly longer bus doesn't affect total latency by much.
Re:Even a laptop can run RAM externally thanks to a little-k... by xhrpost on Thursday October 19, 2023 @03:48PM (#37947764)
Wikipedia is showing a cycle time for CAS of less than 1ns for modern RAM

https://en.wikipedia.org/wiki/CAS_latency#Memory_timing_exam...

Re:Even a laptop can run RAM externally thanks to a little-k... by wtallis on Tuesday October 24, 2023 @01:14AM (#37995042)
The figures under 1ns are not latency numbers but merely the duration of a clock cycle.
Re:Even a laptop can run RAM externally thanks to a little-k... by brucethemoose2 on Thursday October 19, 2023 @03:10PM (#37947274)
This is not exactly the reason, but trace length/loss is a major problem.

Laptop SODIMMs are already severely limiting DDR5 bandwidth, server/desktop DIMMs are getting close.

Users aren't gonna like it, but unswappable packaged RAM is coming to most CPUs.

Re:Even a laptop can run RAM externally thanks to a little-k... by anonymousDan on Thursday October 19, 2023 @06:33PM (#37949702)
What do you mean by packaged RAM and what protocol does it use that would be faster than DDR5?
Re:Even a laptop can run RAM externally thanks to a little-k... by brucethemoose2 on Thursday October 19, 2023 @06:53PM (#37949912)
> What do you mean by packaged RAM

Depends. Apple uses LPDDR5X on a cheap substrate, which is basically just RAM chips soldered to a tiny motherboard, and that is already very fast. But it could also mean HBM on an expensive interposer or cheaper Intel EMIB, or something like Samsung's proposed Wide I/O, or even something new like stacked RAM with TSVs.

CPU/RAM packaging is getting increasingly complicated.

> what protocol does it use that would be faster than DDR5

Depends, but it can just be straight up DDR5. SODIMMS are terrible because they need 1.35V (vs 1.1V stock DDR5) for really slow speeds and terrible ram timings, while soldered DDR5 and LPDDR5X do not. The closer the DDR5 gets to the CPU, the faster, more power efficient and lower latency it gets.