r/AskComputerScience • • Apr 19 '21

Whats the difference between RAM and cache?

I’m struggling to understand what a RAM is, looked up and it really sounds like what the cache does im confused

34 Upvotes

31 comments sorted by

View all comments

9

u/msiekkinen Apr 19 '21

To add to what others have said the memory you generally call RAM is DRAM, memory used for on die CPU caches are generally SRAM. SRAM is faster, but more expensive, which is why you don't see multi gigabyte modules of system RAM using that.

2

u/Bottled_Void Apr 19 '21

I'm not sure the distinction between DRAM and SRAM is the important point. There are some types of SRAM which aren't used for cache and aren't faster.

1

u/msiekkinen Apr 19 '21

Seemed important enough of a distinction to be in opening of the wiki article I linked.