Jump to content

using ram as storage

ynnHvHyt

this is a dumb idea, but dumb enough to work? i was looking into it and although a costly solution  that would wipe after a power down is there some possible way to use ram as storage.

Link to comment
Share on other sites

Link to post
Share on other sites

Its called a RAM Disk, its been a thing since at least the 90s.

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
Share on other sites

Link to post
Share on other sites

Linus did a video about this some time ago on LTT. That's actually a thing.

If someone did not use reason to reach their conclusion in the first place, you cannot use reason to convince them otherwise.

Link to comment
Share on other sites

Link to post
Share on other sites

49 minutes ago, ynnHvHyt said:

this is a dumb idea, but dumb enough to work? i was looking into it and although a costly solution  that would wipe after a power down is there some possible way to use ram as storage.

RAM disks are a thing, but they're usually pointless without having the bandwidth.

 

So for example, DDR2 memory has 4.6GB/sec transfer, but SATAIII has only 0.5GB/sec transfer, so you're basically wasting 88% of the bandwidth. Now if you could connect old DDR2 modules up to a PCIe3.0 M2 slot, PCIE 3.0 at 4 lanes (the same as an NVMe drive) is 4000MB/sec, so you would only be wasting 14% of the bandwidth. The other obvious problem here is that DDR2 modules only went up to 4GB. So you would likely need 128GB to fit the largest games if you really wanted to do this, and by that point you're just making things too difficult.

 

So let's move on to DDR4. The cheapest, lowend DDR4 memory is DDR4-1600 with 12.8GB/sec transfer. So to put this on the secondary storage side of a PC, you would need at least 12 PCIe 3.0 lanes or 6 PCIe 4.0 lanes to get there. So let's assume we have a mythological DDR4 ramdisk using reclaimed DDR4-1600 modules from old Skylake systems. If you run it all as a single channel, 128GB could be assembled rather easily with 16 sticks of 8GB, but it would be even easier to assemble using 8 sticks of 16GB modules. This is still over complicated and also hasn't covered the other problems. 

Dual channel, Quad channel, Triple channel? Why limit ourselves to one channel for any reason than it being wasted. So as I just mentioned, 12 PCI 3.0 lanes in single channel mode, but what if we ran it in dual channel? you'd need 24 lanes 3.0 lanes or 12 4.0 lanes. What about triple channel? 36 3.0 lanes or 16 4.0 lanes. There's the number we want to see. So let's say we put a triple-channel ramdisk on a 16 lane card instead of a 16 lane GPU.

 

Now you also need some NVMe to DDR4 translation chip, and a BBU (Battery Backup Unit)

 

So what is the end result? I couldn't find anyone selling this memory, particularly as a 128GB set, so I'm just going to guess using the DDR4-2333 memory at $125 per 32GB. So $500USD for a 128GB drive when you could spend the same amount and get a Samsung 2TB EVO 970 Plus NVMe drive for $480, and that wouldn't involve inventing a DDR4 ramdisk controller.

 

Now, before we get ahead of ourselves. There are some MB's that let you create a ramdisk as well. Below is a Frost Canyon NUC Intel board.

 

IMG_20200227_214021_575px.jpg

IMG_20200227_214043_575px.jpg

 

https://www.anandtech.com/show/15571/intel-nuc10i7fnh-frost-canyon-review

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×