Browse parent directory

unimportant/all_data_in_ram.html


2025-04-23

All data in RAM

I have found it increasingly obvious that there is no technical barrier to all the world's data ending up stored in RAM in the next 10-20 years. Disks could become obsolete for most use cases. I figured I should write about it publicly too, so it's obvious to others too.

(All data in this article is being measured in petabytes for ease, 1 PB = 1024 TB. Your consumer laptop probably has 0.25-1.0 TB storage in it, so a petabyte is a thousand times that.)

Hobby project that can be done today:

Latency

As of today, RAM latency < Network latency < Disk latency

See Latency numbers every developer should know

Latency is the primary reason why developers will prefer storing this data in RAM rather than on disk or tape.

You can also read my other post on AI cloud gaming for extended discussion on latency. The short version is that it will likely soon be possible to stream your entire computer experience from a datacenter at <10 ms latency. Since human body operates at latency higher than 10 ms, it will be indistinguishable to you from something running locally on your machine.

Data size

All data formats are ultimately some mix of text, image and video.

For now if we consider just text:

RAM Cost

As of 2023, RAM costs $1M/PB as per Our World in Data. See our world in data historical data on RAM costs.

(If you want off-the-shelf cost for consumers, it's noticeable higher. Hetzner EX44 cloud machines cost $44/mo for 64 GB RAM, or $8.5M/PB/year. This also includes cost of network, disk, support staff, etc. not just Hetzner's profit margin.)

Seems reasonable that RAM could cost below $100k/PB by 2030. Assuming RAM lasts for 5 years before it gives up, this is $20k/PB/year.

At hypothetical $20k/PB/year it costs:

It is possible we don't end up acquiring this much data by 2030, but if so the reasons will be culture and incentives, not technical reasons.

Also please remember these are only 2030 numbers. If Moore's law does not stop and research into reducing RAM cost does not stop, these numbers could go down by a few more OOMs by 2040 or 2050.

Disk cost, disk weight

I figured I'd include this section just for completeness.

As of 2025, aws s3 deep archive offers tape storage for $12k/PB/year. Assume this cost reduces to $1000/PB/year by 2030.

At hypothetical $1000/PB/year it costs:

In terms of weight, as of 2025, LTO-9 stores 45 TB at weight of 200 grams, or ~4.4 kg/PB. Assume this too reduces 10x, so it will weigh ~0.44 kg/PB by 2030.

Data transport

Cold storage

Datacenters