Saturday, 17 October 2015

Cache memory explained



    Cache memory is not that common word for regular people, now some people know what a RAM or CPU is or motherboard is but cache memory? ... nuh!
That’s why I am here to explain cache memory, even if you know what a cache is then you probably don’t know it deeply or very well, or know it all wrong so, let’s start.
     Now don’t confuse with HDD cache and CPU cache , today we will talk about both of them but by saying cache memory we primarily understand CPU  cache,
Before 1980 there was no cache in computers.
CPU cache remain in between the RAM and CPU because RAM is way slower than CPU just see… a 3.7 GHz CPU has to work with a DDR3 1800 MHz RAM, the speed the not matching right?... So, t5he CPU will complete the work faster and the RAM will lag, to solve this bottleneck computer scientists introduced a much faster and costly memory called cache and to reduce the price the used the cache between RAM and CPU to synchronize the speed. The more your CPU has Cache the faster it can transfer data, don’t know what L1, L2, and L3 cache is?
 I am here to tell you…. 
L1 cache is costlier than L2 cache and faster also so L1 is smaller in size than L2, just the way CPU is transferring data from RAM through cache CPU also transfer data from L3 cache through faster and smaller L1 cache.

Time to talk about HDD cache
HDD cache is just situated in hard disk to make the hard disk more faster now when the cpu calls some data from hard disk the data transfers through RAM and hence HDD is much slower than RAM here data also bottlenecks, to solve this problem there is a Cache in HDD which is in between all other component of computer and the HDD. HDD cache is less costly than CPU cache and now-a-days HDD cache is normally be 8mb to 128mb and SSD contains up to 1 GB of cache.

No comments:

Post a Comment