Hacker News new | ask | show | jobs
by close04 22 days ago
On many machines with DDR5 you get the lengthy memory training every boot and that comes on top of the already long UEFI initialization time.
2 comments

Surely that could run in parallel with initializing everything else, with the amount of CPU cache modern CPUs have?

Also the soldered ram couldn't have changed from last boot, so reuse the last training? That's exactly what I mean.

The memory training happens before UEFI is initialized proper, though it provides a minimal framework for handling such parts - it's mainly so that every bit of very early code can properly pass information later on.

As for reusing the training, that's what normally happens, but there are various things that can trigger retraining beyond swapping anything in memory modules, and it's perfectly possible the vendor somehow managed to write an add-on that triggers that on every boot (just like intel managed to wreck NVRAM on every netboot, for example)

The training reuse is already happening on machines with regular user-replaceable DIMM modules. It's why there is such a scary long wait on the first boot of a newly-assembled system, but not subsequent ones.

So even if it can change, starting out with a simple "Are the same modules still installed?" check saves a lot of time.

> training every boot

except this should only happen _once_ (until you remove/replace components, reset the BIOS etc.). Which is why it normally doesn't happen for laptops, it was run once in the factory and DDR being soldered one mean they can just "fixed" disable the retraining avoiding bugs in the "retraining needed" detection

but yes, there are pretty bad motherboards out there, like the one I have turned out to be a complete shit show with multiple sever design issues I unluckily "lucked out of not running into" in the first 2 years of usage making a return unlikely and a replacement is useless as this is are fundamental issue affecting all models AFIK.