3 ms·
You can't just multiply width*frequency for DRAM these days, as much as I wish we still lived in the days of ubiquitous SRAM. The chip in some of the 2GB RPI4s
by monocasa 6y ago
You can't just multiply width*frequency for DRAM these days, as much as I wish we still lived in the days of ubiquitous SRAM.
The chip in some of the 2GB RPI4s is rated for only 3.7Gbps.
https://www.samsung.com/semiconductor/dram/lpddr4/K4F6E304HB-MGCJ/ https://www.samsung.com/semiconductor/dram/lpddr4/K4F6E304HB...
- mmastrac 6y agoIs there a way to see if you are hitting memory bandwidth issues in Linux?
- monocasa 6y agoNot in a holistic way AFAIK, and for sure not rigged up to the Raspbian kernel (since all of that lives on the videocore side), but I bet Broadcom or the RPi foundation has access to some undocumented perf counters on the DRAM controller that could illuminate this if they were the ones debugging it.
- wmf 6y agoNo, that chip is rated for 3.7 Gbps per pin and it's 32 bits wide. Even at ~60% efficiency you're an order of magnitude off.
- monocasa 6y agoReal world tests are seeing around 3 to 4 Gbps of memory bandwidth. https://medium.com/@ghalfacree/benchmarking-the-raspberry-pi-4-73e5afbcd54b https://medium.com/@ghalfacree/benchmarking-the-raspberry-pi... LPDDR cannot sustain anywhere near the max speed of the interface. It's more of a hope that you can burst something out and go to sleep rather than trying to maintain that speed. In a lot of ways DRAM hasn't gotten faster in decades when you look at how latency clocks nearly always increase at the same rate of interface speed increases. And LPDDR is the niche where that shines the most, because it doesn't have oodles of dies to interleave to hide that issue.
- hedgehog 6y agoThose numbers look way off, maybe they mixed up the units? Should be a few GBps at least.
- wmf 6y agoInnumeracy strikes again. It's actually 4-5 Gbytes/s [1] plus whatever bandwidth the video scanout is stealing (~400 Mbytes/s?). That's only ~40% efficient which is simultaneously terrible and pretty much what you'd expect from Broadcom. However 4 Gbytes/s is 32 Gbits/s which leaves plenty of headroom to do 5 Gbits/s of network I/O. [1] https://www.raspberrypi.org/forums/viewtopic.php?t=271121 https://www.raspberrypi.org/forums/viewtopic.php?t=271121
- mlyle 6y agoBits aren't bytes.
- monocasa 6y agoThe y axis is labeled "megabits per second".
- Dylan16807 6y agoThe y axis is wrong.